PageMethod and page control access? -


pagemethods static , why can not access page control pagemethod, heard can access user control pagemethod. true?

if yes, how can user control accessed static method? search google know reason in detail found none, if body knows reason please discuss in detail.

you cannot access user control objects part of page. can create new user control objects , call method etc ex: var myuc = new myusercontrol() , can call render method html of user control , send response "string" page method, not proper way of using user control , should avoided.


Comments