Last post Apr 11, 2009 05:08 PM by murre
Mar 22, 2009 11:45 AM|murre|LINK
I have implemented urlrewriting in my web application and it works fine , I used this solution www.urlrewriting.net
but I am haveing some problems with postbacks and AJAX, they simply dont work. I know there is a solution for this out there but I can't find it. i have googled alot but i havent an answer.
urlrewritin postback ajax
Mar 24, 2009 10:49 AM|dazza1973|LINK
I had the same issue, caused by the fact that the action of the form is the rewritten url rather than the submitted url. If you're using .net 3.5 SP1 you can change the form action in page_load using formName.Action = Request.RawUrl. This was working fine
for me until I deployed to a production server which has .net 3.5 but not SP1. In the short term (until I wait for downtime to deploy SP1) I had a look at this fix:-
See the bit about the form control adapter.
After that I had another problem on the production server where a Response.Redirect would not take into account the supplied url but would redirect relative to the rewritten url.
eg if the browser was showing
and the rewritten url was www.abcd.com/test1home.aspx
Then the following code
would redirect to www.abcd.com/testpage.aspx rather than
This only happened on a server that didn't have SP1. Under VS2008 and a test server with SP1, I didn't get this behaviour.
Anyone any ideas?
Mar 30, 2009 03:45 PM|murre|LINK
thanks for the response. I agree this dosent work in VS2008.
anyone got a solution?
Apr 11, 2009 05:08 PM|murre|LINK
turns out to be that when i set a postback url for my imagebutton , the clickevent for my other buttons will not fire!!