Rank: Member Groups: Member
Joined: 3/28/2007 Posts: 56 Points: 0
|
When using the 'Cancel All changes' button pressing OK to the dialog confirmation works fine, it cancels the changes. However, if I press Cancel, it gives me an error, "Unspecified Error" in IE, and if I debug it says the theForm.submit() is causing the error. This does not happen in Firefox.
I have another custom button that closes the popup window, and this button works fine. It asks if you really want to leave without saving changes, and if I press cancel to stay on the page it works as expected.
If you have seen this any help would be appreciated, otherwise I'll work on getting a reproduction from the sample.
Nate
|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 54 Points: 36
|
Hello, Nate! As I understand you try to use LinkButton for "Cancel all changes". I have reproduced your problem and have some "fast" solution that seems to be helpful. In solution, i have posted ( http://www.aurigma.com/Forums/FindPost6757.aspx) just replace: Code:butRestore.OnClientClick = "this.href = '#';if (this.disabled) return false;__doPostBack('" + butRestore.UniqueID+ "','');return false;";
with: Code:butRestore.OnClientClick = "this.href = '#';if (this.disabled) return false; try { __doPostBack('" + butRestore.UniqueID + "',''); } catch (e) {} return false;";
So, we just wrap place where exception is thrown with try {...} catch(e) {}.
Sincerely yours, Sergey Peshekhonov. Aurigma Technical Support Team.
|
Rank: Member Groups: Member
Joined: 3/28/2007 Posts: 56 Points: 0
|
wow... why didn't I think of that!
thanks Sergey!
|