Monday 11 March 2013

Calling Server Side Method Using jQuery/Ajax

Place below code in .aspx page.
 In the below code url indicates path of your method, here my method is in Default.aspx page.
 data indicates parameters for the server side web method. 



Place below code in aspx.cs page.



If we click on submit button the above method will be called and returns a Date time string appended with the text which we have entered in the text box.


1 comment: