how to use Request.QueryString in aspx page?

.net, asp.net

Solution

You can use scriptlets

'~/Dir/Home?Id=<%= Convert.ToString(Request.QueryString["ID"]) %>';

You can learn more about using QueryString here

Problem

In aspx page I have anchor tags. My URL already has Id parameter which I want to reuse. Requirement is to redirect user to a mentioned page with current url id e.g. ``` "~/Dir/Home?Id=" & Request.QueryString ``` Please note I have to do this in aspx page as cant use code behind pages. Thanks a lot

Original source

Related problems