Thursday, January 14, 2010

posting the aspx page to server using javascript

How to postback the aspx page to server Using Javascript posting and raise an Event.

Resolution: Below code will post back the form to server and raises the TextChanged Event handler of TextBox1 if defined in the aspx.cs file.
This code must be written in Head section of aspx page in javascript tag.

__doPostBack('window.document.forms[0]. TextBox1','TextChanged');

1 comment: