Category - ViewState
Results 1 - 5 of 7
19 Dec 2019 19 Dec 2019 0 Comments  905 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ViewState variable inside JavaScript in ASP.Net with C# and VB.Net.

ViewState is a Server Side class object which though stores the data on Client Side but it is in Encrypted Form (Hashed format) and hence cannot be read by Plain JavaScript.

Thus the ViewState variable is accessed inside JavaScript code with the help of Server Side Code Blocks in ASP.Net with C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  1430 Views
Here Mudassar Ahmed Khan has explained with an example, how to store (save) Temporary data in GridView in ASP.Net using C# and VB.Net.

When the Add Button is clicked, the data from the TextBoxes will be inserted into a DataTable which will be stored (saved) in ViewState and later used to populate the GridView in ASP.Net using C# and VB.Net.
24 Sep 2019 24 Sep 2019 0 Comments  2373 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  2522 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  2302 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.
Results 1 - 5 of 7