Results 1 - 5 of 12
30 Sep 2019 30 Sep 2019 0 Comments  941 Views
Here Mudassar Ahmed Khan has explained how to make solve the problem of ValidateRequest = 'false' not working in .Net 4.0 and 4.5 in ASP.Net.

ValidateRequest = 'false' is used to supress the exception: A potentially dangerous Request.Form value was detected from the client in ASP.Net and allow posting scripts and HTML content in ASP.Net.

The ValidateRequest property is a .Net 2.0 and .Net 3.5 property and hence in order to work on .Net 4.0 and .Net 4.5 an additional property is needed.
06 Nov 2018 06 Nov 2018 0 Comments  3080 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) AppSettings Key Value from Web.Config in HTML Markup of ASP.Net page using C# and VB.Net.

In the HTML Markup of ASPX Page, the AppSetting values will be read from Web.Config file using Server-Side code blocks (<% %>).
06 Nov 2018 06 Nov 2018 0 Comments  3750 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value from the AppSettings section of the Web.Config file in jQuery in ASP.Net using C# and VB.Net.

It is not possible to read the AppSetting value directly in jQuery and hence an AJAX call will be made to a WebMethod which will read the AppSetting value and return it to the Client Side script.
05 Nov 2018 06 Nov 2018 0 Comments  5278 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value from the AppSettings section of the Web.Config file in JavaScript in ASP.Net MVC Razor.

It is not possible to read the AppSetting value directly in JavaScript and hence using jQuery, an AJAX call will be made to the Controller’s Action method which will read the AppSetting value and return it to the JavaScript function.
02 Nov 2018 06 Nov 2018 0 Comments  3014 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value from the AppSettings section of the Web.Config file in JavaScript in ASP.Net using C# and VB.Net.

It is not possible to read the AppSetting value directly in JavaScript and hence using JavaScript XmlHttpRequest (XHR), an AJAX call will be made to a WebMethod which will read the AppSetting value and return it to the JavaScript function.
Results 1 - 5 of 12