Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
suppose i have one static method and i need to access viewstate from that web method.i know it is not possible but there must be some way out.
Posted

Viewstate is not accessible in AJAX methods or Web methods and hence you cannot modify it, use Session instead
 
Share this answer
 
Comments
CHill60 25-Feb-15 9:12am    
Essentially a repost of the solution posted over 2 years ago.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900