Call a c# method from Javascript

前端 未结 3 2086
面向向阳花
面向向阳花 2020-12-22 06:51

Hi i want to call a C# method.. I already tryed with webmethod, but in the c# method i will not have acces to textbox or others controls.

this is how i done without

3条回答
  •  [愿得一人]
    2020-12-22 07:42

    You need to look at how to use an UpdatePanel, or a straight ajax callback.

    With the UpdatePanel, you go through most of the page lifecycle, so you have access to the textboxes etc.

提交回复
热议问题