asp.net - How to pass the end of the URL to a Value=“” -
i want pass value url , value session... m using following syntax...
<a href="registration.aspx?userid=<%convert.toint32(session["userid"]); %>">link</a>
so solution???
you don't need onvert.toint32
the url doesn't mind type is.eventually - it's string.
try :
<a href='registration.aspx?userid=<%=session["userid"].tostring() %>'>link</a>
safer way :
<a href='registration.aspx?userid=<%=session["userid"]+"" %>'>link</a>
Comments
Post a Comment