开发者

Usercontrol doesnt support Webmethod?

开发者 https://www.devze.com 2023-02-26 03:08 出处:网络
I want to call a Scriptmanager webmethod in usercontrol. But Webusercontrol d开发者_高级运维oes not support WebMethod. Can it be achieved by Jquery Ajax or any other way?You need to put that web metho

I want to call a Scriptmanager webmethod in usercontrol. But Webusercontrol d开发者_高级运维oes not support WebMethod. Can it be achieved by Jquery Ajax or any other way?


You need to put that web method in your page's code behind class of the user control code.

For details take a look at this article https://web.archive.org/web/20211020131232/https://www.4guysfromrolla.com/articles/031704-1.aspx


I would put your web methods in web service.asmx file as it is easier to manage that way.

0

精彩评论

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