Category - ViewState
24 Sep 2019 24 Sep 2019 0 Comments  1068 Views
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.
11 Oct 2018 11 Oct 2018 0 Comments  2016 Views
Here Mudassar Ahmed Khan has explained with examples, different ways to disable ViewState in ASP.Net.

ViewState can be disabled at the following levels:
1. Control Level.
2. Page Level.
3. Application Level.

This article will also explain how to completely remove the ViewState Hidden Field from the Page.
11 Oct 2018 11 Oct 2018 0 Comments  2131 Views
Here Mudassar Ahmed Khan has explained what is ViewState in ASP.Net. This article will also cover the following information about ViewState: -

1. Where and how does ViewState store data.
2. Scope of ViewState.
3. Uses of ViewState.
4. Benefits of ViewState.
5. Disadvantages of ViewState.
16 Jul 2018 16 Jul 2018 0 Comments  7848 Views
Here Mudassar Ahmed Khan has explained with an example, how to store (save) GridView data in ViewState in ASP.Net using C# and VB.Net.

When a new row is added to GridView, the row data will be added to a DataTable and the DataTable will be saved in ViewState in ASP.Net.
15 Apr 2011 16 Oct 2018 3 Comments  44251 Views
Here Mudassar Ahmed Khan has explained with an example, how to disable or remove ViewState Hidden Field in ASP.Net Page using C# and VB.Net.