How to access page controls inside a static web method? [duplicate]

As mentioned by @Tim Schmelter This doesn’t answer this question because you can’t access page’s controls from a webmethod.

Please go through
asp.net access a control from static function

The whole point of [WebMethod]s is that they don’t run the ASP.Net page lifecycle. This way, they’re fast and parallelizable.
Your controls don’t exist.

your question is duplicate of How to get controls in static web method

Leave a Comment