PostBackUrl + PostBack problem is a bug
The PostBackUrl problem I wrote about before (How to fix AutoPostBack and PostBack error for ASP.NET pages with PostBackUrl button) is a bug. Got a mail from Microsoft which confirms it. No wonder I didn't find anything about it on Google when I tried to solve the problem. My solution would probably be to change __doPostBack function to always reset the action before submitting the form.
| JavaScript |
1
2
3
4
5
6
7
8
9
|
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.action = "http://<page's url>";
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
|
2006-06-18 15:35:00 | Posted in
ASP.NET
| Link | digg this