I faced this problem when i was developing my site with url rewrite facility. When i click on any button it gives me error. So, i was googling and found solution. So i provide that here for you.
Every ASP.NET Web Form use postback event to maintain server-side control's state on the web page. Because of postback URL rewriting is somehow complecated for ASP.NET page. When we added one server side form control to the web page, ASP.Net will automatically render the response with HTML
tag, which contains an ACTION attribute pointing back to the page where the form control is placed. So, if we use URL rewrite for the page, then the ACTION attribute of the form tag will point back to the rewritten URL, not to the original URL which was requested from the browser.
For Example :
Suppose we have a website which has one page called default.aspx. In this page we have one button control which makes postback. Now put http://localhost/urlrewritetest/default
on the browser's address bar. As i used the rule to rewrite the URL from http://localhost/urlrewritetest/Default.aspx
. After clicking on go button of browser it goes back and rewrite takes place and it converts to it's original url on server side. After the execution of the page it sends response to the web browser. Now check the source of the response. You will see that the page contains the
element, which looks like below: