Want to work with us? We're on the lookout for digital experts.

We're hiring

ASP.NET postbacks loses URL Rewriting

Web Bureau

01 May 2012 by Web Bureau

You may have noticed in ASP.NET when you do a postback on the page it loses the URL rewriting so something like becomes

I found a solution to this here

In the Master Page page load event place the following code:

form1.Action = Request.RawUrl;

form1 being the id of your form tag.

Grow your businessStart a project with us today.

This site uses essential cookies for parts of the site to operate and have already been set. Find out more about how we use cookies and how you may delete them. You may delete cookies, but parts of the site will not work.