New Additions
30 May 2020 30 May 2020 0 Comments  73 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web Service (ASMX) in HTML Page using jQuery AJAX in ASP.Net using C# and VB.Net.

The Web Method of Web Service (ASMX) in HTML Page will be called using jQuery AJAX Post Method.
20 Jun 2018 28 May 2020 0 Comments  40517 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Bootstrap DatePicker (Calendar) with TextBox ASP.Net.

This article will also illustrate how to get the selected Date of the Bootstrap DatePicker (Calendar) on Server Side (Code Behind) on Button click in ASP.Net using C# and VB.Net.

The Date format for the selected Date will be set to dd/MM/yyyy format.
28 May 2020 28 May 2020 0 Comments  293 Views
Here Mudassar Ahmed Khan has explained with an example, how to send Form Data to Email in ASP.Net using C# and VB.Net.

The Contact Us Form contains some TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email and the File is attached to the Email.
28 May 2020 28 May 2020 0 Comments  273 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  252 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  206 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  211 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  299 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.
26 Jun 2013 26 May 2020 10 Comments  603227 Views
Here Mudassar Ahmed Khan has explained with an example, how to create a Contact Us Page in ASP.Net using C# and VB.Net.

The Contact Us Form contains some TextBox controls and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email and the File is attached to the Email.
26 May 2020 26 May 2020 0 Comments  319 Views
Here Mudassar Ahmed Khan has explained with an example, how to send email using jQuery in ASP.Net using C# and VB.Net.

The jQuery AJAX function will call a Web Service (Web Method) which will send email using Gmail SMTP Mail Server.

Once the Email is sent, a Confirmation will be sent back to the jQuery AJAX function which in turn will be display a Success message using JavaScript Alert Message Box.
26 May 2020 26 May 2020 0 Comments  302 Views
Here Mudassar Ahmed Khan has explained with an example, how to send email using Contact Us Form in ASP.Net using C# and VB.Net.

The Contact Us Form contains some TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email and the File is attached to the Email.
04 Aug 2009 21 May 2020 22 Comments  135385 Views
Here Mudassar Ahmed Khan has explained with an example, how to create a Contact Us Form with HTML Rich Text Editor in ASP.Net using C# and VB.Net.

The Contact Us Form contains some TextBox controls and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email and the File is attached to the Email.
04 Aug 2009 21 May 2020 10 Comments  47093 Views
Here Mudassar Ahmed Khan has explained the cause and solution for the error A potentially dangerous Request.Form value was detected from the client in ASP.Net.

The error exception A potentially dangerous Request.Form value was detected from the client occurs when ValidateRequest is set true and someone tries to submit HTML content to server example <a>Hello</a>. This error comes since ASP.Net tries to protect the application from Script Attacks.
28 Jun 2013 21 May 2020 2 Comments  157067 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to filter GridView records using TextBox in ASP.Net. To accomplish the task I have made use of SqlDataSource with FilterExpression along with FilterParameters to filter records and bind the ASP.Net GridView control.

The TextBox will be specified as ControlParameter in the SqlDataSource FilterParameters, so that when text or value is entered in the TextBox and the Search Button is clicked, it will filter the GridView Records based on Starts with LIKE Search.
15 Mar 2016 20 May 2020 0 Comments  5160 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) GridView control using SqlDataSource in ASP.Net.
20 May 2020 20 May 2020 0 Comments  456 Views
Here Mudassar Ahmed Khan has explained with an example, how to send email using Web Service in ASP.Net using C# and VB.Net.

In this article, Gmail SMTP Mail Server will be used for sending emails.

To send email with Gmail SMTP Server, you will need to use an email address and password of a valid Gmail account and along with that you will need the Gmail SMTP Mail Server settings.
23 Mar 2016 19 May 2020 0 Comments  12849 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with example on how to use SqlDataSource with GridView control in ASP.Net.
19 May 2020 19 May 2020 0 Comments  450 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete Cookie using jQuery i.e. remove Cookie from Browser using jQuery.
27 Jun 2018 17 May 2020 1 Comments  11142 Views
Here Mudassar Ahmed Khan has explained with an example, how to highlight GridView Row based on some condition in ASP.Net using C# and VB.Net.

A loop will be executed and values of each GridView Row will be checked, then based on some condition the GridView Row will be highlighted by changing its Background color.
16 May 2020 16 May 2020 0 Comments  399 Views
Here Mudassar Ahmed Khan has explained with an example, how to add Cookie using jQuery i.e. set (save) Cookie in Browser using jQuery.
25 Jun 2014 16 May 2020 0 Comments  51091 Views
Here Mudassar Ahmed Khan has explained how to download and install the Microsoft's Northwind and Pubs databases and then attach them to the SQL Server or SQL Server Express editions.

The Northwind and Pubs databases are available for free by Microsoft and can be downloaded and used in any SQL Server or SQL Server Express version namely 2005, 2008, 2008R2, 2012, 2014, 2017 and 2019.
09 Feb 2013 16 May 2020 5 Comments  153548 Views
Here Mudassar Ahmed Khan has explained how to download and install the Microsoft's Northwind and Pubs databases and then attach it to the SQL Server database server using the SQL Server Management Studio.
23 May 2016 16 May 2020 0 Comments  17922 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Browser Cookies in jQuery i.e. reading values stored in Cookies, writing (saving) values in Cookies and also how to remove (delete) Cookies using jQuery.

The jQuery Cookie plugin will be used to carry out the various functions of reading, writing and removing (deleting) Cookies.
28 Mar 2015 14 May 2020 0 Comments  31408 Views
Here Mudassar Ahmed Khan has explained how to dynamically change background color of GridView Row using RowDataBound event in ASP.Net using C# and VB.Net.
28 Mar 2015 14 May 2020 2 Comments  74865 Views
Here Mudassar Ahmed Khan has explained how to dynamically change GridView Cell Background Color based on condition in ASP.Net using C# and VB.Net.

The GridView Cell’s background color will be dynamically changed based on its value in the RowDataBound event of GridView.