How to get an url parameter in inline ASP code?

Cass404

New member
I have a page that passes an 'id' parameter in the url like so viewCategory.aspx?id=24

On this page I would like to place a hyperlink to another page that requires the same parameter by doing something like NavigateUrl='/users/viewSection.aspx?id=<%= Request["id"]%>' in a HyperLink control.

Is this possible or should I set the NavigateUrl property of the HyperLink on PageLoad in the codebehind file ?
NavigateUrl='/users/viewSection.aspx?id=
<%= Request["id"]%>'

Code got cut off in original post.
 
Back
Top