Click here to Skip to main content
15,886,795 members

Comments by Daniel Lo Nigro (Top 2 by date)

Daniel Lo Nigro 1-Nov-11 18:33pm View    
Deleted
Glad it helped, I only discovered it while reading through tutorials. :)

Your code would still be very helpful if you wanted to do this outside of a controller (as UpdateModel is a controller method, it can't really be used elsewhere).
Daniel Lo Nigro 13-Sep-11 20:56pm View    
Deleted
Reason for my vote of 2
I think you're missing the point of AJAX. If you're doing a normal redirect when it's successful, how is it any different to a normal form post? Additionally, AJAX methods should go either in a WebMethod in the .aspx file, or an .ashx (handler) file. Putting the AJAX stuff in a Page_Load means the AJAX request will incur all the overhead of the ASP.NET request pipeline, which is not necessary.