<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by lesmemphis</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by lesmemphis</title>
		<link>http://channel9.msdn.com/Niners/lesmemphis/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/lesmemphis/Discussions</link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 09:40:16 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 09:40:16 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - using Response.Flush() to send specific data to client</title>
		<description><![CDATA[<p>Hi, same data gets sent (flushed), but .End() will end the entire thread. So no code will be executed after I called .End()</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/using-ResponseFlush-to-send-specific-data-to-client/5c3b2271999f4516a279a14d007c08b7#5c3b2271999f4516a279a14d007c08b7</link>
		<pubDate>Mon, 21 Jan 2013 07:31:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/using-ResponseFlush-to-send-specific-data-to-client/5c3b2271999f4516a279a14d007c08b7#5c3b2271999f4516a279a14d007c08b7</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>6</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - using Response.Flush() to send specific data to client</title>
		<description><![CDATA[<p>Hi all!</p><p>I need to send an accepted response to the client. However, I need to send only the specific data and not all the extra html page data.</p><p>Currently my code behind looks like this:</p><p>Response.Write(&quot;&lt;CallBackResponse&gt;Accepted&lt;/CallBackResponse&gt;&quot;);<br>Response.Flush();</p><p>This however sends a response that looks like this: (I only want the portion in bold to be sent.)</p><p><strong>&lt;CallBackResponse&gt;Accepted&lt;/CallBackResponse&gt;&nbsp;</strong>&nbsp;&nbsp; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;&nbsp;&nbsp;&nbsp; &lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;&nbsp; &lt;head&gt;&lt;title&gt;&nbsp;&nbsp; Payment Approved&nbsp; &lt;/title&gt;&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;style type=&quot;text/css&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #makePayment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 247px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; body&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; font-family : Calibri;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/style&gt;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;/head&gt;&nbsp; &lt;body&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;BookSave.aspx&quot; id=&quot;form1&quot; style=&quot;width:100%; height:100%; text-align:center;&quot;&gt;&nbsp; &lt;input type=&quot;hidden&quot; name=&quot;__VIEWSTATE&quot; id=&quot;__VIEWSTATE&quot; value=&quot;/wEPDwULLTEzOTM0ODg4MzMPZBYCAgMPZBYCAgEPZBYCAgUPZBYEAgMPDxYCHgRUZXh0BRM5NDIzMTIxMjEzMTU0NjE4OTM3ZGQCCw9kFgxmD2QWAgIBD2QWAgIDDw8WAh8ABQczNjAwLjAwZGQCAQ9kFgICAQ9kFgICAQ8PFgIfAAUEVmlzYWRkAgIPZBYCAgEPZBYCAgEPDxYCHwAFD0RlcG9zaXQgUGF5bWVudGRkAgMPZBYCAgEPZBYCAgEPDxYCHwAFCk5SIHZhbiBXeWt</p><p>&nbsp;</p><p>Any ideas on how to accomplish this?</p><p>Thanks in advance!&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/using-ResponseFlush-to-send-specific-data-to-client/e617e35d23734e708d74a14d00775718#e617e35d23734e708d74a14d00775718</link>
		<pubDate>Mon, 21 Jan 2013 07:14:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/using-ResponseFlush-to-send-specific-data-to-client/e617e35d23734e708d74a14d00775718#e617e35d23734e708d74a14d00775718</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>6</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Computer names on network c#?</title>
		<description><![CDATA[<p>Hey, I got it working, was very close to your example:</p><p><pre class="brush: csharp">ArrayList nets = new ArrayList();

DirectoryEntry entryPC;
entryPC = new DirectoryEntry();
entryPC.Path = &quot;WinNT://domainName&quot;;

foreach (DirectoryEntry child in entryPC.Children)
{
   if (child.Name != &quot;Schema&quot;)
   nets.Add(child.Name);
  }

return nets;</pre></p><p>&nbsp;</p><p>(obviously using <code class="csharp spaces"></code><code class="csharp plain">System.DirectoryServices)</code></p><p>Thanks!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Computer-names-on-network-c/46abda1ea0d0496f93ea9e9f009265c0#46abda1ea0d0496f93ea9e9f009265c0</link>
		<pubDate>Mon, 07 Mar 2011 08:53:01 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Computer-names-on-network-c/46abda1ea0d0496f93ea9e9f009265c0#46abda1ea0d0496f93ea9e9f009265c0</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Computer names on network c#?</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/Computer-names-on-network-c#c7408a27cb4ea477eacac9e9c01104495">xgamer</a>: hey, I've found a lot of entries similar to what you've just given me, but none of them return anything. What I assume is, is that for this code to work, I need a domain set up, but I'm trying to get the computer names in a normal workgroup.</p><p>I've tried your code * well, but no luck. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-6.gif?v=c9' alt='Sad' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Computer-names-on-network-c/052ba73dc7cf489ca0209e9f0069b323#052ba73dc7cf489ca0209e9f0069b323</link>
		<pubDate>Mon, 07 Mar 2011 06:24:50 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Computer-names-on-network-c/052ba73dc7cf489ca0209e9f0069b323#052ba73dc7cf489ca0209e9f0069b323</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Computer names on network c#?</title>
		<description><![CDATA[<p>How do I get all the Computer names (or details) on a local network or on the same workgroup via C#? I've Googled all over the place and have found nothing that works! Thanks in advance! <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif?v=c9' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Computer-names-on-network-c/bd0d7d402cf84b0094fb9e9c00f7b573#bd0d7d402cf84b0094fb9e9c00f7b573</link>
		<pubDate>Fri, 04 Mar 2011 15:01:52 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Computer-names-on-network-c/bd0d7d402cf84b0094fb9e9c00f7b573#bd0d7d402cf84b0094fb9e9c00f7b573</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Style Sheets and code behind</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<p>You're doing sometihng wrong. The appearance/style of data is independent of content,
<em>unless</em> things like colour convey some kind of meaningful information, in which case that information should be in the document XHTML (ideally in a style=&quot;&quot; attribute) and not the common stylesheet.</p>
</div></blockquote>
<p>no, I wanted to load the information from a seperate C# class that is initiated in code behind. It's ok though, I just set the values in code behind (server side) directly to the elements I want effected. Each venue that uses our BookNow pages can specify
 their own color theme.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554670-Style-Sheets-and-code-behind/31de8616cfcd4341b65f9dea00aa432b#31de8616cfcd4341b65f9dea00aa432b</link>
		<pubDate>Wed, 23 Jun 2010 08:56:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554670-Style-Sheets-and-code-behind/31de8616cfcd4341b65f9dea00aa432b#31de8616cfcd4341b65f9dea00aa432b</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">lesmemphis said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">W3bbo said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>It seems the problem was to do with sessions. Sometimes when I call a variable in a session it returns a null, but if I just call it again, it returns the value. So now I just build a check in. Haven't had the problem since. Still holding fingers crossed
 that it won't happen again.</p>
</div></blockquote>
<p>Well, it seems my problem is STILL not solved. Wow, this is turning out to be a headache of note.</p>
<p>&nbsp;</p>
<p>I'm convinced that the problem lies with my sessions. It seems that under stress testing; after certain time periods; and at other random intervals, the site won't work.</p>
<p>&nbsp;</p>
<p>It can't be the session timeout period, because the default (according to <a href="http://www.w3schools.com/asp/asp_sessions.asp">
W3Schools</a>) is 20 minutes.</p>
<p>&nbsp;</p>
<p>Check out the problem on my <a href="http://www.semper.co.za/booknow/Request.aspx?venueID=33&amp;ResponseUrl=<a href="http://www.semper-backpacking.com/&quot;>">http&#58;&#47;&#47;www.semper-backpacking.com&#47;&#34;&#62;</a>
BookNow</a> pages. Try it with different browsers and add and remove numerous times when it does work. (Note that this site is in test phase).</p>
<p>&nbsp;</p>
<p>---------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p>&nbsp;</p>
<p>Update : Apparently Sessions are designed to handle only very small amounts of data like a sinle name or ip adress. Which means the 2 datatables i'm saving is too large. So I'll be writing to a db instead of using a session. Hopefully this will resolve the
 issue.</p>
<p>&nbsp;</p>
<p>Any thoughts on this? </p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/88cdb62c99f543c689139dea00aa4461#88cdb62c99f543c689139dea00aa4461</link>
		<pubDate>Wed, 23 Jun 2010 08:41:35 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/88cdb62c99f543c689139dea00aa4461#88cdb62c99f543c689139dea00aa4461</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">lesmemphis said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>Save a copy of the generated markup from both production and development, ensure it validates, then run a diff. Then report back your findings.</p>
</div></blockquote>
<p>It seems the problem was to do with sessions. Sometimes when I call a variable in a session it returns a null, but if I just call it again, it returns the value. So now I just build a check in. Haven't had the problem since. Still holding fingers crossed
 that it won't happen again.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/c6181580a6d14437a8c29dea00aa4453#c6181580a6d14437a8c29dea00aa4453</link>
		<pubDate>Thu, 17 Jun 2010 14:49:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/c6181580a6d14437a8c29dea00aa4453#c6181580a6d14437a8c29dea00aa4453</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">lesmemphis said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>MTU just affects efficiency of transfer, the same data is received by the client from the server, it just takes longer.</p>
</div></blockquote>
<p>Cool, will do.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/d8eb9ea4b30b438caf6a9dea00aa444b#d8eb9ea4b30b438caf6a9dea00aa444b</link>
		<pubDate>Tue, 15 Jun 2010 11:36:13 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/d8eb9ea4b30b438caf6a9dea00aa444b#d8eb9ea4b30b438caf6a9dea00aa444b</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">lesmemphis said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>MTU just affects efficiency of transfer, the same data is received by the client from the server, it just takes longer.</p>
</div></blockquote>
<p>damn, ok. So any idea what could be causing my problem? I've reviewed the code countless times and tried to debug from local host on numerous occassions and not once have I gotten the error, but as soon as the site is live, it happens.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/18621f008e4e4e6784319dea00aa443c#18621f008e4e4e6784319dea00aa443c</link>
		<pubDate>Tue, 15 Jun 2010 11:31:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/18621f008e4e4e6784319dea00aa443c#18621f008e4e4e6784319dea00aa443c</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p>I've found a related topic on a forum that suggested the MTU (maximum transmission unit) settings on the server be changed. Does this sound like a viable solution and could this be the cause of my problem?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/5eb24551a3c1431b9e339dea00aa442c#5eb24551a3c1431b9e339dea00aa442c</link>
		<pubDate>Wed, 09 Jun 2010 07:37:20 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/5eb24551a3c1431b9e339dea00aa442c#5eb24551a3c1431b9e339dea00aa442c</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">itsnotabug said:</div><div class="quoteText">
<p>i've seen&nbsp;something similar&nbsp;before but i have not been able to duplicate it. it happens so rarely that i haven't investigated it too much. it usually manifests itself with a phone call once or twice a year.</p>
<p>&nbsp;</p>
<p>them: the links on the page don't do anything</p>
<p>me: press f5</p>
<p>them: oh that did it, now they work. thank you.</p>
<p>&nbsp;</p>
<p>i attribute it to &quot;wonkiness&quot; of the browser (very technical term). if it happened more, i'd probably have them view source and send me the html so i could verify that it looked okay. as always, your situation may be caused by something else, but i've had
 similar problems on paypal and other high visibility sites.</p>
</div></blockquote>
<p>The randomness of the occurrences is quite baffling, but it does happen a lot in my case. Problem is, the &quot;they&quot; an &quot;me&quot; in your example is both me.
</p>
<p>&nbsp;</p>
<p>My logic says that when I run from local host, both the client and server is on the same pc, whereas when the site is live, the client and server is on remote locations. This could possibly indicate to time-out issues between postback; interruptions in connection;
 or packets lost during post back. The latter 2 possibilities seem less likely though. I think my problem is either again with standards compliance (using asp:tools incorrectly) or some other minor detail I've overlooked, but I'm at a loss to what it is!&nbsp; <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif' alt='Perplexed' />
</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/81640126627d412985fd9dea00aa4424#81640126627d412985fd9dea00aa4424</link>
		<pubDate>Wed, 09 Jun 2010 07:17:00 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/81640126627d412985fd9dea00aa4424#81640126627d412985fd9dea00aa4424</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Post back issues with ASP Button</title>
		<description><![CDATA[<p>I've got an asp:button that calls server side code. But sometimes when the page loads, none of the buttons will post back. Nothing happens. Then I navigate away from the page and come back, then everything works. I've tried to debug, but I don't get the
 same problem when running from localhost and debugging through Visual Studio. It only happens when the site is live.</p>
<p>&nbsp;</p>
<p>Why does this happen? How do I fix this?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/554678#554678</link>
		<pubDate>Tue, 08 Jun 2010 11:30:06 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554678-Post-back-issues-with-ASP-Button/554678#554678</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Style Sheets and code behind</title>
		<description><![CDATA[<p>I need to load values via code behind as such:</p>
<p>&nbsp;</p>
<p>SPMS2CRS.SdlVenue venueDetails = new SPMS2CRS.SdlVenue();<br>
venueDetails.load(getVenueID(), SPMS2CRS.SdlDB.newConnection());</p>
<p>&nbsp;</p>
<p>I need to set the page background color, table header colors, panel colors etc via values I recieved from this class.</p>
<p>&nbsp;</p>
<p>(venueDetails.BodyBGColor etc.)</p>
<p>&nbsp;</p>
<p>can this be loaded into a stylesheet that can be loaded from multiple pages, or will I need to set the attributes through each page's code behind? And how do I do either of these?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/554670-Style-Sheets-and-code-behind/554670#554670</link>
		<pubDate>Tue, 08 Jun 2010 09:26:49 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/554670-Style-Sheets-and-code-behind/554670#554670</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - POST through code behind in asp.net</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">lesmemphis said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>If that's your problem then you're probably doing something wrong, because &quot;those open source browsers&quot; do considerably better than IE when it comes to standards compliance.</p>
<p>&nbsp;</p>
<p>I also note that your solutions all require that scripting be supported on the client. This is a huge no-no.</p>
</div></blockquote>
<p>Hey, I've managed to get it working. Although, I've no idea if what I'm doing is correct. Lately I've become more and more aware of my lack of knowledge when it comes to standards compliance. The POST and redirect does however work in numerous browsers I've
 tested, I haven't found one that doesn't work anymore. So that's at least good! Hehe</p>
<p>&nbsp;</p>
<p>Basically I used Dr Herbie's method, all I changed was to write the document in full (html, head, title, body, and form tags; then the script)</p>
<p>It seems that IE just looks at the script and looks for the form to post. Whereas Firefox and Chrome for example, requires all the tags of a conventional web-page to be present for it to execute the POST.</p>
<p>&nbsp;</p>
<p>Thanks for all the help, the help and advice is part of why I love IT as much as I do. IT is one of the only industries I know of that bases success on one's willingnes to learn, and while being extremely competitive, knowledge is still shared freely!</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/bb55d1c2a86248af9fd09deb000dc97c#bb55d1c2a86248af9fd09deb000dc97c</link>
		<pubDate>Mon, 07 Jun 2010 21:00:09 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/bb55d1c2a86248af9fd09deb000dc97c#bb55d1c2a86248af9fd09deb000dc97c</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>13</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Standards Compliance in ASP Web Development</title>
		<description><![CDATA[<p>Basically I'm a C# developer, but over the last couple of months I've been put on a website project. C# being the foundation of my knowledge, I naturally chose ASP.NET to design the website in.</p>
<p>&nbsp;</p>
<p>I’ve learned a lot and I am quite proud of what I’ve accomplished so far. But I’ve noticed that my biggest mistake is standards compliance and using the right tools for what I want to achieve.</p>
<p>&nbsp;</p>
<p>So, I’d like to hear your opinions on the matter and give advice, suggestions, or alternatives to some concepts I’ve come to use, but am not sure is the best choice:</p>
<ul>
<li>asp:menu – I’ve had a couple of problems, like the z-index bug in IE. </li><li>scripts – when and how to use them? </li><li>posting data between pages and to 3<sup>rd</sup> party sites? http post? sessions?
</li><li>sending emails – I’ve heard many different opinions on the best way to do that!
</li><li>multi-views? </li><li>datagrids vs asp:table? </li><li>What’s the best way to keep a website dynamic? When should css sheets be used?
</li><li>Another thing is, I’ve noticed IE being way more lenient on code than open source browsers, why is this?
</li></ul>
<p>I’d love any further advice on standards compliance. Also, go check out the website and let me know what you think, I’d love some suggestions and advice! Learning is after all the base class for success!</p>
<p>&nbsp;</p>
<p><a href="http://www.semper-backpacking.com">http//:www.semper-backpacking.com/</a></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/554544-Standards-Compliance-in-ASP-Web-Development/554544#554544</link>
		<pubDate>Mon, 07 Jun 2010 20:45:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/554544-Standards-Compliance-in-ASP-Web-Development/554544#554544</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Dropdownlist does not cause postback asp.net</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">cheong said:</div><div class="quoteText">
<p>I don't know it they have fixed it, but remember that when I was working on .NET v1.1, both DropDownList and select tag won't work.</p>
<p>&nbsp;</p>
<p>I have to implement select tag then explicitly write any &lt;submit button&gt;.click() on onchange event. (Apparently the SelectedIndexChanged event has been queued in the postback metadata, just that postback somehow not triggered. The event handler will run
 the event on the next postback occurred)</p>
<p>&nbsp;</p>
<p>Just remember that you MUST turn off <span class="nonLinkTerms"><strong>AutoEventWireup</strong> in order to use this workaround.</span></p>
</div></blockquote>
<p>I'm not sure I understand your solution. You mean that the event will fire once a postback occurs, but that you have to insert a seperate submit field to invoke the postback?</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/553298-Dropdownlist-does-not-cause-postback-aspnet/f5f1263fddd4463cb4739deb000ea0f5#f5f1263fddd4463cb4739deb000ea0f5</link>
		<pubDate>Wed, 02 Jun 2010 12:53:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/553298-Dropdownlist-does-not-cause-postback-aspnet/f5f1263fddd4463cb4739deb000ea0f5#f5f1263fddd4463cb4739deb000ea0f5</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>7</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Dropdownlist does not cause postback asp.net</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">spivonious said:</div><div class="quoteText">
<p>Are there any items in the list? The event won't fire unless the selection can actually be changed.</p>
</div></blockquote>
<p>yes, I add the items from ann Asp:table.</p>
<p>&nbsp;</p>
<p>you can view an example of the page here:</p>
<p>&nbsp;</p>
<p><a rel="lightbox" href="http://www.facebook.com/album.php?aid=218351&amp;id=567059746&amp;saved#!/photo.php?pid=5532774&amp;id=567059746"><img src="http://www.facebook.com/album.php?aid=218351&amp;id=567059746&amp;saved#!/photo.php?pid=5532774&amp;id=567059746" alt="Postback Issues"></a></p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/553298-Dropdownlist-does-not-cause-postback-aspnet/93a211dc20e7408d87cf9deb000ea09d#93a211dc20e7408d87cf9deb000ea09d</link>
		<pubDate>Tue, 01 Jun 2010 14:41:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/553298-Dropdownlist-does-not-cause-postback-aspnet/93a211dc20e7408d87cf9deb000ea09d#93a211dc20e7408d87cf9deb000ea09d</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>7</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Dropdownlist does not cause postback asp.net</title>
		<description><![CDATA[<p>Hey, I've got a dropdownlist in a asp:gridview , I've set the autopostback to true, but it's still not posting. Why?</p>
<p>&nbsp;</p>
<p>&lt;asp:DropDownList ID=&quot;Pax&quot; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; runat=&quot;server&quot; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoPostBack=&quot;True&quot;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OnSelectedIndexChanged=&quot;Pax_SelectedIndexChanged&quot;&gt;</p>
<p>&lt;/asp:DropDownList&gt;</p>
<p>&nbsp;</p>
<p>In code behind:</p>
<p>protected void Pax_SelectedIndexChanged(object sender, EventArgs e)<br>
&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int selectedPax = Convert.ToInt32(((DropDownList)sender).SelectedValue);<br>
&nbsp;&nbsp; &nbsp;}</p>
<p>&nbsp;</p>
<p>Now I don't know if it would call the code behind method in the first place, but currently it doesn't cause a postback at all. Why is this?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/553298-Dropdownlist-does-not-cause-postback-aspnet/553298#553298</link>
		<pubDate>Tue, 01 Jun 2010 08:23:56 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/553298-Dropdownlist-does-not-cause-postback-aspnet/553298#553298</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>7</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - POST through code behind in asp.net</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Dr Herbie said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">lesmemphis said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>ok, even though you're the competition, here's what I have used:</p>
<p>&nbsp;</p>
<p></p>
<pre class="brush: csharp">System.Web.HttpContext.Current.Response.Clear();
System.Web.HttpContext.Current.Response.Write(&quot;&lt;html&gt;&lt;head&gt;&quot;);
System.Web.HttpContext.Current.Response.Write(string.Format(CultureInfo.InvariantCulture, &quot;&lt;/head&gt;&lt;link text=\&quot;text/css\&quot; rel=\&quot;stylesheet\&quot; href=\&quot;../../styles/styles.css\&quot; /&gt;&quot;));
System.Web.HttpContext.Current.Response.Write(string.Format(CultureInfo.InvariantCulture, &quot;&lt;body onload=\&quot;document.{0}.submit(); \&quot;&gt;&quot;, &quot;mainform&quot;));
System.Web.HttpContext.Current.Response.Write(string.Format(CultureInfo.InvariantCulture, &quot;&lt;body&gt;&quot;));
System.Web.HttpContext.Current.Response.Write(string.Format(CultureInfo.InvariantCulture, &quot;&lt;form name=\&quot;{0}\&quot; method=\&quot;{1}\&quot; action=\&quot;{2}\&quot;&gt;&quot;, &quot;mainform&quot;, &quot;post&quot;, Url));
for (int i = 0; i &lt; Inputs.Keys.Count; i&#43;&#43;)
{
	System.Web.HttpContext.Current.Response.Write(string.Format(CultureInfo.InvariantCulture, &quot;&lt;input name=\&quot;{0}\&quot; type=\&quot;hidden\&quot; value=\&quot;{1}\&quot;&gt;&quot;, Inputs.Keys[i], Inputs[Inputs.Keys[i]]));
}
System.Web.HttpContext.Current.Response.Write(&quot;&lt;/form&gt;&quot;);
System.Web.HttpContext.Current.Response.Write(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);
</pre>
<p></p>
<p>&nbsp;</p>
<p><img src="http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif" alt="Smiley"></p>
<p>Share and share alike -- I believe I picked this up somewhere on the internet, so it's only fair that I pass it on.</p>
<p>&nbsp;</p>
<p>Inputs is a NameValueCollection of the variables to add in the post.</p>
<p>Url is the taget Url.</p>
<p>&nbsp;</p>
<p>Herbie</p>
<p>&nbsp;</p>
</div></blockquote>
<p>Thanks for the help!!! Much appreciated! I'll try the code out and let you know if I managed!
</p>
<p>&nbsp;</p>
<p>blowdart... I need to write&nbsp; then post the script, because there is a lot that needs to be done before the site submits and redirects. It does work in IE. It's all those open source browsers that's giving me the headache! LOL</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/6f976fef29984773b4b09deb000dc921#6f976fef29984773b4b09deb000dc921</link>
		<pubDate>Wed, 12 May 2010 09:56:31 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/6f976fef29984773b4b09deb000dc921#6f976fef29984773b4b09deb000dc921</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>13</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - POST through code behind in asp.net</title>
		<description><![CDATA[<p>I've been doing tests, and it turns out that my Post does not redirect when not in Internet Explorer. I need to post, because the payment gateway only receives the post and not querystring. Help! <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif' alt='Perplexed' />
</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/4295ab400e824cb283ed9deb000dc86a#4295ab400e824cb283ed9deb000dc86a</link>
		<pubDate>Wed, 05 May 2010 13:31:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/4295ab400e824cb283ed9deb000dc86a#4295ab400e824cb283ed9deb000dc86a</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>13</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - POST through code behind in asp.net</title>
		<description><![CDATA[<p>Problem solved. </p>
<p>&nbsp;</p>
<p>I did not manage with HttpWebRequest, reason being I actually wanted to navigate to the page I was posting to. Maybe I just didn't know what I was doing! LOL</p>
<p>Haven't tried WebClient, only got this reply after I solved my problem. </p>
<p>&nbsp;</p>
<p>Found a work-around though:</p>
<p>&nbsp;</p>
<p>private void submitForm()<br>
&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(&quot;&lt;form name='newForm' target='_parent' method=post
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; action='https:// targetUrl'&gt;&quot;);<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;p1\&quot; value=\&quot;{0}\&quot;&gt;&quot;, p1TerminalID));</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;p2\&quot; value=\&quot;{0}\&quot;&gt;&quot;, p2Reference));</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;p3\&quot; value=\&quot;{0}\&quot;&gt;&quot;, p3Description));</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;p4\&quot; value=\&quot;{0}\&quot;&gt;&quot;,
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p4TransactionAmount));</p>
<p><br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;p5\&quot; value=\&quot;{0}\&quot;&gt;&quot;, p5Currency));</p>
<p><br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;p11\&quot; value=\&quot;{0}\&quot;&gt;&quot;,
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p11ReceiptEmail));</p>
<p><br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;Budget\&quot; value=\&quot;{0}\&quot;&gt;&quot;,
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isBudgetAllowed));</p>
<p><br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(string.Format(&quot;&lt;input type=hidden name=\&quot;m_1\&quot; value=\&quot;{0}\&quot;&gt;&quot;, m1BookID));<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(&quot;&lt;/form&gt;&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;System.Web.HttpContext.Current.Response.Write(&quot;&lt;/body&gt;&quot;);<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Response.Write(&quot;&lt;SCRIPT LANGUAGE='JavaScript'&gt;document.forms[0].submit();&lt;/SCRIPT&gt;&quot;);</p>
<p>}</p>
<p>&nbsp;</p>
<p>Thanks for help though!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/7d3ca81e8e83485996be9deb000dc7b2#7d3ca81e8e83485996be9deb000dc7b2</link>
		<pubDate>Sun, 02 May 2010 09:20:34 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/7d3ca81e8e83485996be9deb000dc7b2#7d3ca81e8e83485996be9deb000dc7b2</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>13</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - POST through code behind in asp.net</title>
		<description><![CDATA[<p>I've got a booking that needs to send data to a payment gateway. I do not want to use query string, seeing as this is not a secure method of sending data. Currently I have a 2nd form with hidden fields and a submit button that sends the data via the form's
 POST action. Problem is this:</p>
<p>&nbsp;</p>
<p>I first need to execute a whole bunch of code before this form can be submitted. The ideal would be to be able to post all the data via code behind, alternatively to invoke the form submit through code behind. How do I do this? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif' alt='Perplexed' />
</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/546370#546370</link>
		<pubDate>Mon, 26 Apr 2010 11:34:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/546370-POST-through-code-behind-in-aspnet/546370#546370</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>13</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Asp mail in code behind</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">figuerres said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">figuerres said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>if the server is remote and or if you need to auth before send then use this:</p>
<p>&nbsp;</p>
<p>SendEmail SM = new SendEmail();</p>
<p>SM.ServerName = &quot;smtp.domain.com&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SM.Credential = new NetworkCredential(<a href="mailto:sendinguser@domain.com">sendinguser@domain.com</a>, &quot;SecretPassword&quot;);</p>
<p>replace server name and other values as needed.</p>
</div></blockquote>
<p>Thanks for the advice! Worked great!!!!</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/534297-Asp-mail-in-code-behind/9f81f1d05f954b57be859deb000c9601#9f81f1d05f954b57be859deb000c9601</link>
		<pubDate>Wed, 10 Mar 2010 12:50:02 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/534297-Asp-mail-in-code-behind/9f81f1d05f954b57be859deb000c9601#9f81f1d05f954b57be859deb000c9601</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>7</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Asp mail in code behind</title>
		<description><![CDATA[<p>Hey,</p>
<p>&nbsp;</p>
<p>I need to send info from a contact page to both administrator and also the client (if send copy checkbox is checked). It is an aspx page, and my code keeps bombing. Could someone look for a problem in my code? (also, maybe the problem lies with the server?)</p>
<p>&nbsp;</p>
<p>protected void ButtonSubmit_Click(object sender, EventArgs e)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (Page.IsValid)//if captcha is entered correctly, this will be true<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;bool error = false;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxSurname.Text == &quot;&quot;)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelSurnameError.Visible = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;error = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;else<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelSurnameError.Visible = false;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxEmail.Text == &quot;&quot;)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelEmailError.Visible = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;error = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;else<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelEmailError.Visible = false;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxEmail.Text != TextBoxConfirmEmail.Text)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelConfirmEmailError.Visible = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;error = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;else<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelConfirmEmailError.Visible = false;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxEnquiry.Text == &quot;&quot;)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelEnquiryError.Visible = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;error = true;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;else<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LabelEnquiryError.Visible = false;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (error == true)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return;<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;MailMessage msg = new MailMessage(TextBoxEmail.Text, &quot;juan.venter@hotmail.com&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Subject = &quot;Backpackers portal Enquiry&quot;;<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (CheckBoxCopy.Checked)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Bcc.Add(TextBoxEmail.Text);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Body = &quot;Submitted By: &quot; &#43; DropDownListTitle.Text &#43; &quot; &quot; &#43; TextBoxSurname.Text &#43; &quot;\n&quot;;<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxFirstname.Text != &quot;&quot;)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Body &#43;= &quot;Firstname : &quot; &#43; TextBoxFirstname.Text &#43; &quot;\n&quot;;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxContactNum.Text != &quot;&quot;)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Body &#43;= &quot;Contact Number : &quot; &#43; TextBoxContactNum.Text &#43; &quot;\n&quot;;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (TextBoxCell.Text != &quot;&quot;)<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Body &#43;= &quot;Cell Number : &quot; &#43; TextBoxCell.Text &#43; &quot;\n&quot;;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msg.Body &#43;= &quot;Enquiry : &quot; &#43; TextBoxEnquiry.Text;<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;SmtpClient sm = new SmtpClient();<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;sm.Host = &quot;196.22.134.22&quot;;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;sm.Send(msg);<br>
<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;&lt;script&gt;&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;Set myMail=CreateObject('CDO.Message')&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;myMail.Subject='Sending email with CDO'&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;myMail.From='juan.venter@hotmail.com'&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;myMail.To='juan@semper.co.za'&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;myMail.TextBody='This is a message.'&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;myMail.Send&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;set myMail=nothing&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;//Response.Write(&quot;&lt;/script&gt;&quot;);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}</p>
<p>&nbsp;</p>
<p>Thanks!!!! <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-13.gif' alt='Angel' /> </p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/534297-Asp-mail-in-code-behind/534297#534297</link>
		<pubDate>Fri, 05 Mar 2010 07:27:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/534297-Asp-mail-in-code-behind/534297#534297</guid>
		<dc:creator>Juan Venter</dc:creator>
		<slash:comments>7</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/lesmemphis/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>