<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Webmaster-Talk.com - .NET Programming Forum</title>
		<link>http://www.webmaster-talk.com/</link>
		<description>VB.NET, ASP.NET coding discussions and help.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 03:54:41 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://img.webmaster-talk.com/bluesky/vb_img/misc/rss.jpg</url>
			<title>Webmaster-Talk.com - .NET Programming Forum</title>
			<link>http://www.webmaster-talk.com/</link>
		</image>
		<item>
			<title><![CDATA[Button doesn't submit form]]></title>
			<link>http://www.webmaster-talk.com/net-programming-forum/191578-button-doesnt-submit-form.html</link>
			<pubDate>Fri, 13 Nov 2009 07:12:59 GMT</pubDate>
			<description><![CDATA[I'm having an issue with IE where clicking the button won't send the email. It works fine in FF. Any ideas? 
 
Html: 
 
Code: 
--------- 
   ...]]></description>
			<content:encoded><![CDATA[<div>I'm having an issue with IE where clicking the button won't send the email. It works fine in FF. Any ideas?<br />
<br />
Html:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &lt;asp:Button onclick=&quot;sentButton_Click&quot; type=&quot;submit&quot; ID=&quot;sentButton&quot; runat=&quot;server&quot; Text=&quot;Send&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TabIndex=&quot;5&quot; /&gt;</code><hr />
</div>code behind:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; protected void sentButton_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (Page.IsValid)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string output = &quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MailMessage mail = new MailMessage();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string hostAddress = &quot;mail.trailsticker.com&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string message = messageTextBox.Text.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = message.Replace(Environment.NewLine, &quot;&lt;br /&gt;&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string fromEmail = emailTextBox.Text.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string subject = subjectDropDown.Text.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output = &quot;&lt;p&gt;Name: &quot; + nameTextBox.Text.ToString() + &quot;.&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output += &quot;&lt;p&gt;E-mail: &quot; + emailTextBox.Text.ToString() + &quot;.&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output += &quot;&lt;p&gt;Subject: &quot; + subjectDropDown.Text.ToString() + &quot;.&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output += &quot;&lt;p&gt;Message: &quot; + message + &quot;.&lt;/p&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Subject = subject;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.From = new MailAddress(fromEmail);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.To.Add(&quot;xxxxxxx@trailsticker.com&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Body = message;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.IsBodyHtml = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SmtpClient smtp = new SmtpClient(hostAddress);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smtp.Send(mail);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response.Redirect(&quot;http://www.trailsticker.com/sent.aspx&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception err)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notificatoinLabel.Text = &quot;E-mail wasn't sent. There was an exception: &quot; + err.ToString() + &quot;.&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/net-programming-forum/">.NET Programming Forum</category>
			<dc:creator>bige2533</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/net-programming-forum/191578-button-doesnt-submit-form.html</guid>
		</item>
		<item>
			<title>Contact Page Works in FF but not IE</title>
			<link>http://www.webmaster-talk.com/net-programming-forum/191388-contact-page-works-ff-but-not.html</link>
			<pubDate>Wed, 11 Nov 2009 04:45:13 GMT</pubDate>
			<description><![CDATA[Here is the page http://www.trailsticker.com/contact.aspx 
 
 It sends and/or errors out fine in FF but doesn't seem to work in IE. Any suggestions?...]]></description>
			<content:encoded><![CDATA[<div>Here is the page <a href="http://www.trailsticker.com/contact.aspx" target="_blank">http://www.trailsticker.com/contact.aspx</a><br />
<br />
 It sends and/or errors out fine in FF but doesn't seem to work in IE. Any suggestions?<br />
<br />
The code behind<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Web;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Net.Mail;<br />
using System.Drawing;<br />
using System.Configuration;<br />
using System.Web.Configuration;<br />
using System.Net.Configuration;<br />
<br />
<br />
public partial class contact : System.Web.UI.Page<br />
{<br />
&nbsp; &nbsp; protected void Page_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; protected void sentButton_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (Page.IsValid)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string output = &quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MailMessage mail = new MailMessage();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string hostAddress = &quot;mail.trailsticker.com&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string message = messageTextBox.Text.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = message.Replace(Environment.NewLine, &quot;&lt;br /&gt;&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string fromEmail = emailTextBox.Text.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string subject = subjectDropDown.Text.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output = &quot;&lt;p&gt;Name: &quot; + nameTextBox.Text.ToString() + &quot;.&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output += &quot;&lt;p&gt;E-mail: &quot; + emailTextBox.Text.ToString() + &quot;.&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output += &quot;&lt;p&gt;Subject: &quot; + subjectDropDown.Text.ToString() + &quot;.&lt;/p&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output += &quot;&lt;p&gt;Message: &quot; + message + &quot;.&lt;/p&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Subject = subject;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.From = new MailAddress(fromEmail);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.To.Add(&quot;xxxxxx@trailsticker.com&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.Body = message;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail.IsBodyHtml = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SmtpClient smtp = new SmtpClient(hostAddress);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smtp.Send(mail);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response.Redirect(&quot;http://www.trailsticker.com/sent.aspx&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception err)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notificatoinLabel.Text = &quot;E-mail wasn't sent. There was an exception: &quot; + err.ToString() + &quot;.&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/net-programming-forum/">.NET Programming Forum</category>
			<dc:creator>bige2533</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/net-programming-forum/191388-contact-page-works-ff-but-not.html</guid>
		</item>
		<item>
			<title>ASP.NET: Passing Credentials from one site to another.</title>
			<link>http://www.webmaster-talk.com/net-programming-forum/191054-asp-net-passing-credentials-one-site.html</link>
			<pubDate>Fri, 06 Nov 2009 18:07:39 GMT</pubDate>
			<description><![CDATA[Essentially what is going to happen, is our company (X) will host a login page for a program hosted on two other companie's servers (Y & Z). 
  
If...]]></description>
			<content:encoded><![CDATA[<div>Essentially what is going to happen, is our company (X) will host a login page for a program hosted on two other companie's servers (Y &amp; Z).<br />
 <br />
If your credentials match up to one (Y) then you will be directed to that site. If your credentials match up to the other (X) then you will be directed to <i>that</i> site. Both of which will be loging you in by the credentials posted in the login form.<br />
 <br />
I thought of two ways to do this:<br />
 <br />
1) via query string (not the best idea)<br />
2) via check box that says you are logging in to company (X) or company (Y)... then redirecting you to the appropriate location and passing the information by something like This:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Request.ServerVariables(&quot;HTTP_REFERER&quot;)</code><hr />
</div>Do you think either of these would work? If so, how would I go about getting that connection between the sites?<br />
 <br />
This one has me baffled.</div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/net-programming-forum/">.NET Programming Forum</category>
			<dc:creator>mb2000inc</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/net-programming-forum/191054-asp-net-passing-credentials-one-site.html</guid>
		</item>
		<item>
			<title>How to count clicks on Grid View List in C#?</title>
			<link>http://www.webmaster-talk.com/net-programming-forum/191027-how-count-clicks-grid-view-list.html</link>
			<pubDate>Fri, 06 Nov 2009 09:28:07 GMT</pubDate>
			<description>I was wondering how to count clicks on Grid View cell ?</description>
			<content:encoded><![CDATA[<div>I was wondering how to count clicks on Grid View cell ?</div>

]]></content:encoded>
			<category domain="http://www.webmaster-talk.com/net-programming-forum/">.NET Programming Forum</category>
			<dc:creator>edesimusic</dc:creator>
			<guid isPermaLink="true">http://www.webmaster-talk.com/net-programming-forum/191027-how-count-clicks-grid-view-list.html</guid>
		</item>
	</channel>
</rss>
