can you pass a reference to a page control to a 'Page Method' ([WebMethod] and 'static')?http://forums.asp.net/t/1801623.aspx/1?can+you+pass+a+reference+to+a+page+control+to+a+Page+Method+WebMethod+and+static+Wed, 09 May 2012 17:59:41 -040018016234971637http://forums.asp.net/p/1801623/4971637.aspx/1?can+you+pass+a+reference+to+a+page+control+to+a+Page+Method+WebMethod+and+static+can you pass a reference to a page control to a 'Page Method' ([WebMethod] and 'static')? <p>subject says it all... wondering if I can pass in a reference to a control on a page so that I can access and manipulate it from within a static method (a Page Method).</p> <p>I'm guessing no, but looking for confirmation. I did try, and it doesn't seem to work, but that could just be me not doing something right.</p> <p>Should I give up on finding a way to access my page controls from a 'Page Method'? I can do what I need with parital page post back but I just started using Page Methods &nbsp;for certian scenarios and if I could only access a page control I would be all set for what I'm trying to accomplish now.</p> <p>this:<br> <a href="http://encosia.com/why-do-aspnet-ajax-page-methods-have-to-be-static/">http://encosia.com/why-do-aspnet-ajax-page-methods-have-to-be-static/</a></p> <p><a href="http://encosia.com/why-do-aspnet-ajax-page-methods-have-to-be-static/"></a>seems to plainly point out that you can't... just want to confirm I'm not missing something before giving up and just taking a different approach.</p> <p>thanks!&nbsp;</p> 2012-05-08T22:55:15-04:004971950http://forums.asp.net/p/1801623/4971950.aspx/1?Re+can+you+pass+a+reference+to+a+page+control+to+a+Page+Method+WebMethod+and+static+Re: can you pass a reference to a page control to a 'Page Method' ([WebMethod] and 'static')? I can confirm that you can't. You can't access form controls from any static methods. 2012-05-09T05:52:30-04:004973259http://forums.asp.net/p/1801623/4973259.aspx/1?Re+can+you+pass+a+reference+to+a+page+control+to+a+Page+Method+WebMethod+and+static+Re: can you pass a reference to a page control to a 'Page Method' ([WebMethod] and 'static')? <p>Thanks MetalAsp.Net. I appreciate it.</p> 2012-05-09T17:59:41-04:00