1

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?

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

1 Comment

oops yes just been doing something with ashx so wrote the wrong thing down :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.