<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>contact us page using asp.net &#8211; Amazing Things</title>
	<atom:link href="https://www.amazingthings.in/tag/contact-us-page-using-asp-net/feed" rel="self" type="application/rss+xml" />
	<link>https://www.amazingthings.in</link>
	<description>Amazing Things is for Everyone. Everything which is amazing. Amazing wallpapers, entertainment, creativity, technology updates &#38; knowledge.</description>
	<lastBuildDate>Thu, 20 Sep 2018 12:26:53 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.4</generator>

<image>
	<url>https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2017/12/AmazingThings.png?fit=32%2C32&#038;ssl=1</url>
	<title>contact us page using asp.net &#8211; Amazing Things</title>
	<link>https://www.amazingthings.in</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">44718163</site>	<item>
		<title>Fancy Contact us Page Using ASP.NET</title>
		<link>https://www.amazingthings.in/fancy-contact-us-page-using-asp-dot-net.html</link>
					<comments>https://www.amazingthings.in/fancy-contact-us-page-using-asp-dot-net.html#comments</comments>
		
		<dc:creator><![CDATA[Vinayak Bamane]]></dc:creator>
		<pubDate>Sun, 25 Nov 2012 14:48:37 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[contact us page using asp.net]]></category>
		<guid isPermaLink="false">http://www.amazingthings.in/?p=992</guid>

					<description><![CDATA[<p>Title : Contact us page using ASP.NET Description : I am going to design contact us page where you will fill up necessary fields and click button to submit it. I will make use of few textboxes to enter some necessary fields and then at the end there will be a button called submit which [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.amazingthings.in/fancy-contact-us-page-using-asp-dot-net.html">Fancy Contact us Page Using ASP.NET</a> appeared first on <a rel="nofollow" href="https://www.amazingthings.in">Amazing Things</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong style="font-family: georgia, palatino; font-size: medium; text-align: justify;"><span style="color: #ff6600;">Title</span> : Contact us page using ASP.NET</strong></p>
<p><strong style="color: #ff6600; font-family: georgia, palatino; font-size: medium;">Description <span style="color: #000000;">:</span></strong></p>
<p><span style="font-family: georgia, palatino; font-size: medium;">I am going to design contact us page where you will fill up necessary fields and click button to submit it.</span></p>
<p><span style="font-family: georgia, palatino; font-size: medium;">I will make use of few textboxes to enter some necessary fields and then at the end there will be a button called submit which will send data in form of an email notification.</span></p>
<p><strong style="font-family: georgia, palatino; font-size: medium;"><span style="color: #ff6600;">Demo</span> :</strong></p>
<p><a href="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif"><img fetchpriority="high" decoding="async" data-attachment-id="1426" data-permalink="https://www.amazingthings.in/fancy-contact-us-page-using-asp-dot-net.html/croppercapture1-4" data-orig-file="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif?fit=521%2C339&amp;ssl=1" data-orig-size="521,339" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="CropperCapture[1]" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif?fit=300%2C195&amp;ssl=1" data-large-file="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif?fit=521%2C339&amp;ssl=1" class="alignnone size-full wp-image-1426" title="Asp contact us form" src="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif?resize=521%2C339" alt="Asp contact us form" width="521" height="339" srcset="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif?w=521&amp;ssl=1 521w, https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/CropperCapture14.gif?resize=300%2C195&amp;ssl=1 300w" sizes="(max-width: 521px) 100vw, 521px" data-recalc-dims="1" /></a></p>
<p><strong><span style="font-family: georgia, palatino; font-size: medium;"><span style="color: #ff6600;">Email Notification</span> : </span></strong></p>
<p><a href="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png"><img decoding="async" data-attachment-id="989" data-permalink="https://www.amazingthings.in/capture" data-orig-file="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png?fit=381%2C204&amp;ssl=1" data-orig-size="381,204" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Email Notifiaction ASP.NET" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png?fit=300%2C160&amp;ssl=1" data-large-file="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png?fit=381%2C204&amp;ssl=1" class="size-full wp-image-989" title="Email Notifiaction ASP.NET" src="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png?resize=381%2C204" alt="Email Notifiaction ASP.NET" width="381" height="204" srcset="https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png?w=381&amp;ssl=1 381w, https://i0.wp.com/www.amazingthings.in/wp-content/uploads/2012/11/Capture.png?resize=300%2C160&amp;ssl=1 300w" sizes="(max-width: 381px) 100vw, 381px" data-recalc-dims="1" /></a></p>
<p style="text-align: justify;"><span style="color: #ff0000; font-family: georgia, palatino; font-size: medium;"><strong>.aspx Code :</strong></span></p>
<p><code lang="asp[lines]"><br />
</code></p>
<p><code></code><code></code></p>
<p><code></code><code></code></p>
<p><code></code><code></code></p>
<form id="form1">
<table class="auto-style1">
<tbody>
<tr>
<td class="auto-style2"></td>
<td>Contact Us</td>
</tr>
<tr>
<td class="auto-style2"></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</form>
<p><code lang="asp[lines]"><br />
</code></p>
<p><code lang="asp[lines]"><br />
</code></p>
<p style="text-align: justify;"><span style="color: #ff6600; font-size: medium; font-family: georgia, palatino;"><strong>Code Behind Button <span style="color: #000000;">:</span></strong></span></p>
<p><code lang="asp[lines]">using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Net;<br />
using System.Net.Mail;<br />
using System.Web;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;</code></p>
<p><code></code><code></code></p>
<p>namespace AmazingThingsDemoOG<br />
{<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{</p>
<p><code></code><code></code></p>
<p>}</p>
<p><code></code><code></code></p>
<p>//This function will be called on button click to send email<br />
protected void SendEMail()<br />
{<br />
try<br />
{<br />
//url of your website<br />
String url = &#8220;YourURL&#8221;;</p>
<p><code></code><code></code></p>
<p>//Email id and Password of that Email id which you will be using to send email<br />
NetworkCredential loginInfo = new NetworkCredential(&#8220;EmailId&#8221;, &#8220;Password&#8221;);</p>
<p><code></code><code></code></p>
<p>//Declare new MailMessage object and initialize with values such as from address, to address, bcc address, subject etc<br />
MailMessage msg = new MailMessage();<br />
msg.From = new MailAddress(&#8220;FromAddress&#8221;);<br />
msg.To.Add(new MailAddress(emailTextBox.Text));<br />
msg.Bcc.Add(new MailAddress(&#8220;BccAddress&#8221;));<br />
msg.Subject = &#8220;Notification from:Your Website Name&#8221;;<br />
msg.Body = &#8220;Hi,&#8221; + nameTextBox.Text + &#8221;<br />
Thanks for contacting us. We will contact you soon.<br />
&#8221; + &#8220;Our System has recorded a message<br />
&#8221; + messageTextBox.Text + &#8221;<br />
Thanks and Regards<br />
&#8221; + url;<br />
msg.IsBodyHtml = true;</p>
<p><code></code><code></code></p>
<p>//Name the client which you will be using to send email.<br />
SmtpClient client = new SmtpClient(&#8220;smtp.gmail.com&#8221;);</p>
<p><code></code><code></code></p>
<p>client.EnableSsl = true;<br />
client.UseDefaultCredentials = false;<br />
client.Credentials = loginInfo;<br />
client.Send(msg);<br />
}<br />
catch (Exception ex)<br />
{<br />
confirmationLabel.Text = ex.Message;<br />
}</p>
<p><code></code><code></code></p>
<p>}</p>
<p><code></code><code></code></p>
<p>protected void submit_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
//It Will call function SendEmail and confirms that message sent succesfully.<br />
SendEMail();<br />
confirmationLabel.Text = &#8220;Thanks for contacting us. We will get back to you in 24Hrs.&#8221;;<br />
confirmationLabel.Visible = true;<br />
subjectTextBox.Text = &#8220;&#8221;;<br />
emailTextBox.Text = &#8220;&#8221;;<br />
nameTextBox.Text = &#8220;&#8221;;<br />
messageTextBox.Text = &#8220;&#8221;;<br />
}<br />
catch (Exception) { }<br />
}<br />
}</p>
<p><code lang="asp[lines]"><br />
</code></p>
<p><code>}</code></p>
<p><span style="font-family: georgia, palatino;"> <span style="font-size: medium; font-family: georgia, palatino;"><strong>I have used CSS to make contact us page attractive.</strong></span></span></p>
<p><span style="font-family: georgia, palatino;"><strong><span style="color: #ff6600; font-size: medium;">CSS Code :</span></strong></span></p>
<p><span style="font-family: georgia, palatino;"><code lang="css[lines]">.TextBox<br />
{<br />
padding: 9px;<br />
border: solid 1px #E5E5E5;<br />
outline: 0;<br />
font: normal 13px/100% Verdana, Tahoma, sans-serif;<br />
width: 200px;<br />
background: #FFFFFF url('bg_form.png') left top repeat-x;<br />
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));<br />
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);<br />
box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;<br />
-moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;<br />
-webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;<br />
}       </code></span></p>
<p><code></code><code></code></p>
<p>.TextBox:hover, textarea:hover,<br />
.TextBox:focus, textarea:focus<br />
{<br />
border-color: #C9C9C9;<br />
-webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px;<br />
}</p>
<p><code lang="css[lines]"><br />
</code></p>
<p><code lang="css[lines]">        .Button<br />
{<br />
width: auto;<br />
padding: 9px 15px;<br />
background: #617798;<br />
border: 0;<br />
font-size: 14px;<br />
color: #FFFFFF;<br />
-moz-border-radius: 5px;<br />
-webkit-border-radius: 5px;<br />
cursor: pointer;<br />
}</code></p>
<p>[box type=&#8221;success&#8221; align=&#8221;aligncenter&#8221; width=&#8221;620&#8243; ]This project was successfully compiled using  <strong>Microsoft Visual Studio 2012</strong> [/box]</p>
<p>The post <a rel="nofollow" href="https://www.amazingthings.in/fancy-contact-us-page-using-asp-dot-net.html">Fancy Contact us Page Using ASP.NET</a> appeared first on <a rel="nofollow" href="https://www.amazingthings.in">Amazing Things</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.amazingthings.in/fancy-contact-us-page-using-asp-dot-net.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">992</post-id>	</item>
	</channel>
</rss>
