Create contact us form/page and Ajax HtmlEditorExtender control to format textbox text and send formatted text in email in asp.net

Introduction: In this article I will
explain with example How to create Contact Us form/page and send the inquiry details
by email in asp.net using C# and VB.Net. Also I have used the HtmlEditorExtender control
of Ajax so that visitors can format their comments/message/feedback and send formatted
comments to the admin of the website.

Click on image toview clear enlarged demo

Description: So basically through
this article you will learn the following

How to create contact us
page/form in asp.net

How to format the text in text
box using Ajax’s HtmlEditorExtender control and send formatted text in email.

Add a page and name it “ContactUs.aspx”
and in the <Form> tag of this design page (ContactUs.aspx) Place 4 TextBox
controls, a Label and a Button controls from the standard category and place ScriptManager from the AJAX Extension category
of the visual studio toolbox. Also place HtmlEditorExtender control of Ajax
from the installed AjaxControlToolkit.

is automatically added on dragging the HtmlEditorExtender control form Ajax toolkit in the very second line just
below the <@page> directive which is always very first line of the design
page(.aspx). This means Ajax is now registered to be used. If this line is not added then add it manually.

Asp.Net C# Code to create contact us form and use Ajax HtmlEditorExtender control

"If you like my work; you can appreciate by leaving your comments,
hitting Facebook like button, following on Google+, Twitter, Linked in and
Pinterest, stumbling my posts on stumble upon and subscribing for receiving
free updates directly to your inbox . Stay tuned and stay connected for more
technical updates."

If you have any question about any post, Feel free to ask.You can simply drop a comment below post or contact via Contact Us form. Your feedback and suggestions will be highly appreciated. Also try to leave comments from your account not from the anonymous account so that i can respond to you easily..
ConversionConversionEmoticonEmoticon