Results 21 - 25 of 2063
21 May 2019 21 May 2019 0 Comments  1123 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Session variable in JavaScript using jQuery in ASP.Net MVC Razor.

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 jQuery AJAX and pass the value of JavaScript variable to a Controller and inside the Controller the value will be set in Session variable in ASP.Net MVC Razor.
20 May 2019 20 May 2019 0 Comments  1033 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.
20 May 2019 20 May 2019 0 Comments  885 Views
Here Mudassar Ahmed Khan has explained with an example, how to enable and disable Button in GridView based on condition in ASP.Net using C# and VB.Net.

The Enabled property of the Button is set with an Inline Expression which compares the value of the column and based on the value, True or False value is returned which is used to enable or disable the Button respectively.
17 May 2019 17 May 2019 0 Comments  847 Views
Here Mudassar Ahmed Khan has explained with an example, how to show and hide Button in GridView based on condition in ASP.Net using C# and VB.Net.

The Visible property of the Button is set with an Inline Expression which compares the value of the column and based on the value, True or False value is returned which is used to show or hide the Button respectively.
16 May 2019 16 May 2019 0 Comments  1156 Views
Here Mudassar Ahmed Khan has explained with an example, how to remove HyperLink when exporting GridView to Excel in ASP.Net using C# and VB.Net.

When the GridView TemplateField columns contain controls like HyperLink, TextBox, Button, LinkButton, RadioButton or CheckBox controls then such controls need to be replaced with Literal control and then the GridView is exported to Excel file in ASP.Net using C# and VB.Net.
Results 21 - 25 of 2063