Results 6 - 7 of 7
20 May 2019 20 May 2019 0 Comments  864 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Session variable in JavaScript in ASP.Net using C# and VB.Net.

JavaScript is a Client Side language and hence directly it is not possible to set Session variable in JavaScript.

Thus, the solution is to make an AJAX call using XmlHttpRequest (XHR) and pass the value of JavaScript variable to a WebMethod and inside the WebMethod the value will be set in Session variable in ASP.Net using C# and VB.Net.
16 May 2018 16 May 2018 0 Comments  3917 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) GridView using Session data in ASP.Net using C# and VB.Net.

The concept is to create a dynamic DataTable, save it to Session and bind it to GridView.

Later whenever a new row is added, the DataTable is fetched from Session, it is updated and then again used to bind the GridView.
Results 6 - 7 of 7