Call ASP.NET function from JavaScript?

后端 未结 20 2302
暗喜
暗喜 2020-11-22 07:21

I\'m writing a web page in ASP.NET. I have some JavaScript code, and I have a submit button with a click event.

Is it possible to call a method I created in ASP with

20条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 08:02

    If the __doPostBack function is not generated on the page you need to insert a control to force it like this:

    
    

提交回复
热议问题