Reputation: 5620
I want to call a Scriptmanager webmethod in usercontrol. But Webusercontrol does not support WebMethod. Can it be achieved by Jquery Ajax or any other way?
Upvotes: 1
Views: 1249
Reputation: 52241
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
Upvotes: 2
Reputation: 10033
I would put your web methods in web service.asmx file as it is easier to manage that way.
Upvotes: 0