开发者

How to call c# server side method through javascript

开发者 https://www.devze.com 2022-12-29 04:10 出处:网络
I need to call a c# server method through the javascript. I have a gridview in which i have a column开发者_开发知识库 with dropdown list. When i change the dropdown\'s value i need to call a server si

I need to call a c# server method through the javascript. I have a gridview in which i have a column开发者_开发知识库 with dropdown list. When i change the dropdown's value i need to call a server side method through javascript and change the value of another text box in the gridview.

I am able to do this on the selected index change. but i am slightly worried about the performance.

i am using asp.net c#.

Please let me know how to do this.


Can also use PageMethods with ajax like here

http://aspalliance.com/1922_PageMethods_In_ASPNET_AJAX


You're going to need to use AJAX in a manner similar to this: http://www.codeproject.com/KB/aspnet/Ajax_Samplecode_in_C_Net.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消