Assign Current Url Parameters to Asp.net Tags

Assigning Url Parameters (www.udara.com?Id=230 – url parameter is “Id”) to asp.net Tags.

url – http://www.udara.com?Id=230

Method Used – <%=Request.QueryString[“Url Parameter Name”] %>

This method can use any where in Asp.net to get parameters of current url.

Example :

<a href=”http://udaradocs.aspx?Doc=<%=Request.QueryString%5B“Id”%5D %>”

Advertisements