I have a simple Jquery dialog box, that dialog contains a button which sends the page to the server. After some checking, the server redirects the page to another page.
When I call response.redirect(url+params), it appends the HTML in the URL and displays a bad-request on the browser.
What am I doing wrong here?
I don’t have any update panels or non-asp controls on the page.
I am not sure if its important but I am using .Net 1.1
Edit:
Sorry guys, I just found the bug, I was sending the page to the server using ajax call, and the querystring had two “?”. Thanks all.
Thanks,
Ali
If you’re sending this data to the Server through an Ajax call, .NEt will not be able to redirect it.
You will need to either do a JavaScript redirect (http://www.tizag.com/javascriptT/javascriptredirect.php), or do a full server round trip.
A SO question on this: Cannot do response.redirect from page with Ajax controls