Category - ViewState
Results 1 - 5 of 8
19 Mar 2020 19 Mar 2020 0 Comments  402 Views
Here Mudassar Ahmed Khan has explained with an example, how to add new Row to existing DataTable using C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  1391 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  2025 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  2879 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  3008 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.
Results 1 - 5 of 8