I have a master page and links like this:
<asp:Hyperlink .... NavigateURL = "default.aspx?PageId=9" />
My coworker says we need to encode the URL. I've found these 2 links but still not sure how to do it.
This one has Response.Redirect("default
=" + HttpUtility.UrlEncode(valu
but I need to add "pageId=9" to it
Scroll down, says to encode and decode and redirect in a separate page.
That one has a live demo with code to tamper proof a URL.
How can I do encode a URL?