Here Mudassar Ahmed Khan has explained with an example, how to use ViewState inside Static WebMethod in ASP.Net using C# and VB.Net.
ViewState is an ASP.Net State management technique in which the state (data) is maintained on Page across PostBack.
ViewState is not accessible inside Static WebMethod and hence Session or Cache state management techniques can be used in ASP.Net.
↧