
Type mismatch when comparing session variable to page variable
I have a page which dynamically displays one user's data at a time. I wish
that user 1234 be allowed access only to personaldata.asp?User=1234 .
I set a session variable - Session("UserID") when a user logs in to my site
and I wish to compare the ?User=BEID in my query string to
Session("UserID").
I'm getting a type mismatch when I do the following, even though both
variables Response.Write the same number.
What simple item am I missing here?
<%
intBEID = Request.QueryString("BEID")
intUserID = Session("UserID")
If intBEID=intUserID Then ' type mismatch error at this line
Response.write "this finally stinking worked"
Response.End
End If
%>
Thanks,
Kurt