Ajax
By rashmigs
@rashmigs (400)
Singapore
January 29, 2008 11:19am CST
Hello,
I want to know the way to handle server side exceptions using Update Panel (or) Page Method. If an error occured while saving an object into the database, then when it is displayed to the user, there will be a postback. I do not want this postback. So, I wish to use Update Panel of Ajax for this.
I found a few links in the internet, but nothing seemed to be useful. So if someone can suggest me the approach, it would be great.
Thanks in advance.
1 person likes this
2 responses
@scammerwear (1433)
• Singapore
29 Jan 08
My .net is a little rusty but see if this helps... In Ajax there is a way to submit a form into another layer and capture the resulting output as a variable (with javascript) In that way, you can submit the data, get the response and still remain on the same page.
@rashmigs (400)
• Singapore
30 Jan 08
Ok. I have actually done with the implementation the way told... that is; using javascript. But there are some javascript errors that have come up. My knowledge in Javascript is not all that good. I am still a beginner.
It would be great if you can point me to some links with Javascript tutorials.
Thank you.
1 person likes this
@scammerwear (1433)
• Singapore
30 Jan 08
http://www.captain.at/howto-ajax-form-post.request.php
The example was done with php but it should work with .net with a little modification. Good luck! :)
@mnsrwt123 (2057)
• India
1 Apr 08
Ohh, yeah i am also interesting in AJAX programming and need to know about the answer of this discussion...