Category - Web.Config
28 May 2020 28 May 2020 0 Comments  25295 Views
Here Mudassar Ahmed Khan has explained with an example, how to send email in ASP.Net using C# and VB.Net.

The SMTP Mail settings are stored in the mailSettings sub-section of the system.net section of the Web.Config file.

The SmtpSection class of the System.Net.Configuration namespace is used to read the SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.
28 May 2020 28 May 2020 0 Comments  11843 Views
Here Mudassar Ahmed Khan has explained with an example, how to configure GMAIL SMTP settings in ASP.Net using C# and VB.Net.

The SMTP Mail settings are stored in the mailSettings sub-section of the system.net section of the Web.Config file.

The SmtpSection class of the System.Net.Configuration namespace is used to read the SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.
28 May 2020 28 May 2020 0 Comments  15738 Views
Here Mudassar Ahmed Khan has explained with an example, how to configure Email SMTP Settings in Web.Config file in ASP.Net using C# and VB.Net.

The SMTP Mail settings are stored in the mailSettings sub-section of the system.net section of the Web.Config file.

The SmtpSection class of the System.Net.Configuration namespace is used to read the SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.
28 May 2020 28 May 2020 0 Comments  15823 Views
Here Mudassar Ahmed Khan has explained with an example, how to send Email with App Settings in Web.Config file in ASP.Net using C# and VB.Net.

The SMTP Mail settings are stored in the mailSettings sub-section of the system.net section of the Web.Config file.

The SmtpSection class of the System.Net.Configuration namespace is used to read the SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.
28 May 2020 28 May 2020 0 Comments  13372 Views
Here Mudassar Ahmed Khan has explained with an example, how to read SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.

The SMTP Mail settings are stored in the mailSettings sub-section of the system.net section of the Web.Config file.

The SmtpSection class of the System.Net.Configuration namespace is used to read the SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.
30 Sep 2019 30 Sep 2019 0 Comments  20709 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  14781 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  13104 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  29559 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  13646 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.
01 Nov 2018 01 Nov 2018 0 Comments  20054 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) key values of AppSettings section in ASPX page from ASP.Net Web.Config file using C# and VB.Net.

In ASP.Net Web Applications, one has to reference the System.Configuration Assembly in order to read AppSetting values from the Web.Config file.

In ASPX Page, the AppSetting values will be read from Web.Config file using Server-Side code blocks (<% %>).
23 Jun 2017 23 Jun 2017 1 Comments  48497 Views
Here Mudassar Ahmed Khan has explained with an example, how to set and read SQL Server Connection String for SQL Server Authentication in Web.Config file in ASP.Net using C# and VB.Net.

In ASP.Net Web Applications, one has to reference the System.Configuration Assembly in order to read the SQL Server Connection String for SQL Server Authentication from the ConnectionStrings section of the Web.Config file.
22 Jun 2017 22 Jun 2017 2 Comments  162447 Views
Here Mudassar Ahmed Khan has explained with an example, how to set and read SQL Server Connection String for Windows Authentication in Web.Config file in ASP.Net using C# and VB.Net.

In ASP.Net Web Applications, one has to reference the System.Configuration Assembly in order to read the SQL Server Connection String for Windows Authentication from the ConnectionStrings section of the Web.Config file.
21 Jun 2017 21 Jun 2017 0 Comments  14864 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Connection String from Web.Config file in ASP.Net WCF Service using C# and VB.Net by reading the value of the Connection String from the ConnectionStrings section of the Web.Config.

In ASP.Net WCF Service project, one has to reference the System.Configuration Assembly in order to read Connection String value from the Web.Config file.
21 Jun 2017 21 Jun 2017 0 Comments  55796 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) key values of AppSettings section from ASP.Net Web.Config file using C# and VB.Net.

In ASP.Net Web Applications, one has to reference the System.Configuration Assembly in order to read AppSetting values from the Web.Config file.
27 Apr 2016 27 Apr 2016 0 Comments  15726 Views
Here Mudassar Ahmed Khan has explained with an example, how to read or write Connection Strings in Web.Config file using ASP.Net using C# and VB.Net.
The Connection String will be read and written from the Connection String from the ConnectionStrings section of the Web.Config.
27 Mar 2016 27 Mar 2016 0 Comments  10287 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the following error (exception) that occurs when using the ASP.Net SqlDataSource control.
The connection name 'constr' was not found in the applications configuration or the connection string is empty.