ajax : call webmethod defined in user control

G

germ

I was trying to invoke a user control web method without much luck.
I can move this same web method to the page and it works fine.
I have seen some posts stating that you have to define the web method on the
page which in turn invokes the user control method.
While this does work , imho it is a compeletely brain-dead approach.
This may be fine for a site where every page requested is a physically
seperate page or where you have a web method that is required on every page.
But in the case of a site that only has one physical page ( master ) and has
many unrelated web methods where each method is only useful to a single
user control this is ludicrous. Not only does this break encapsualtion, the
size of the codebase for every request goes up and we also have to maintain
these methods in multiple locations ( page & user control ).

Maybe I am looking at old references and there is a way to get this to work
??

Gerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top