<?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/"
	>

<channel>
	<title>The Blog of Travis Gneiting &#187; ASP.NET</title>
	<atom:link href="http://www.blog.travisgneiting.com/category/software-engineering/asp_net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.travisgneiting.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 03:45:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:7px; float: right; padding-right: 0; margin: 3px;"><!-- Ad number: 1 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-3961093531196233"; google_alternate_color = "FFFFFF";
		google_ad_width = 234; google_ad_height = 60;
		google_ad_format = "234x60_as"; google_ad_type = "text_image";
		google_ad_channel ="1685894941"; google_color_border = "336699";
		google_color_link = "0000FF"; google_color_bg = "FFFFFF";
		google_color_text = "000000"; google_color_url = "008000";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>Notes on SQLMembership Provider using the MembershipProvider Class</title>
		<link>http://www.blog.travisgneiting.com/2011/11/15/notes-on-sqlmembership-provider-using-the-membershipprovider-class/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=notes-on-sqlmembership-provider-using-the-membershipprovider-class</link>
		<comments>http://www.blog.travisgneiting.com/2011/11/15/notes-on-sqlmembership-provider-using-the-membershipprovider-class/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 01:42:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Membership]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=277</guid>
		<description><![CDATA[1. Set the tag to use &#8220;forms&#8221; in the config 2. use the reg_sql to generate the SQL tables for use with SQLMembership Provider. 3. Add]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>1. Set the <authentication> tag to use &#8220;forms&#8221; in the config<br />
2. use the reg_sql to generate the SQL tables for use with SQLMembership Provider.<br />
3. Add <membership default provider = Sqlprovider and set application name in config.<br />
4. Can use membership.createuser(&#8220;UN&#8221;,&#8221;PW&#8221;,&#8221;Email&#8221;) to create user.<br />
5. Methods include:Createuser, ValidateUser, DeleteUser, FinduserByName,finduserByEmail,GenPassword<br />
6.Options to capture other user info with ProfileSystem, and defining provider properties in webconfig. Or simply adding additional tables.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2011/11/15/notes-on-sqlmembership-provider-using-the-membershipprovider-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Table to Excel XLS code</title>
		<link>http://www.blog.travisgneiting.com/2011/11/15/table-to-excel-xls-code/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=table-to-excel-xls-code</link>
		<comments>http://www.blog.travisgneiting.com/2011/11/15/table-to-excel-xls-code/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 20:37:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=274</guid>
		<description><![CDATA[Dim StringWriter1 As IO.StringWriter Dim StringBuilder1 As StringBuilder = New StringBuilder StringWriter1 = New IO.StringWriter(StringBuilder1) Dim TextWriter1 As HtmlTextWriter = New HtmlTextWriter(oStringWriter) label.RenderControl(oTextWriter) Response.Clear() Response.ClearHeaders() Response.ContentType = &#8220;application/vnd.xls&#8221; Response.AddHeader(&#8220;Content-Disposition&#8221;, &#8220;attachment;filename=WLMS-exlfile.xls&#8221;) Response.Write(StringWriter1.ToString()) Response.Flush() Response.End()]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p> Dim StringWriter1 As IO.StringWriter<br />
            Dim StringBuilder1 As StringBuilder = New StringBuilder<br />
            StringWriter1 = New IO.StringWriter(StringBuilder1)<br />
            Dim TextWriter1 As HtmlTextWriter = New HtmlTextWriter(oStringWriter)<br />
            label.RenderControl(oTextWriter)<br />
            Response.Clear()<br />
            Response.ClearHeaders()<br />
            Response.ContentType = &#8220;application/vnd.xls&#8221;<br />
            Response.AddHeader(&#8220;Content-Disposition&#8221;, &#8220;attachment;filename=WLMS-exlfile.xls&#8221;)<br />
            Response.Write(StringWriter1.ToString())<br />
            Response.Flush()<br />
            Response.End()</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2011/11/15/table-to-excel-xls-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting the SelectedValue of RadioButtonList &amp; DropDownList in GridView EditItemTemplate</title>
		<link>http://www.blog.travisgneiting.com/2011/06/19/setting-the-selectedvalue-of-radiobuttonlist-dropdownlist-in-gridview-edititemtemplate/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-the-selectedvalue-of-radiobuttonlist-dropdownlist-in-gridview-edititemtemplate</link>
		<comments>http://www.blog.travisgneiting.com/2011/06/19/setting-the-selectedvalue-of-radiobuttonlist-dropdownlist-in-gridview-edititemtemplate/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 03:54:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=238</guid>
		<description><![CDATA[Here is a trick one, because IntelliSense doesn&#8217;t bring up the &#8220;SelectedValue&#8221; property for a RadioButtonList, or a DropDownList in an EditItemTemplate for GridViews you may forget that &#8220;SelectedValue&#8221; is an actual property of these controls. Here is how you can set the selected value of a RadioButtonList inside an EditItemTemplate]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Here is a trick one, because <em>IntelliSense </em>doesn&#8217;t bring up the &#8220;SelectedValue&#8221; property for a RadioButtonList, or a DropDownList in an EditItemTemplate for GridViews you may forget that &#8220;SelectedValue&#8221; is an actual property of these controls.</p>
<p>Here is how you can set the selected value of a RadioButtonList inside an EditItemTemplate</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.blog.travisgneiting.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.blog.travisgneiting.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.blog.travisgneiting.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.blog.travisgneiting.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;asp:TemplateField HeaderText<span class="sy0">=</span><span class="st0">&quot;Payment&quot;</span>&gt;</span>
<span class="sc2">&lt;ItemTemplate&gt;</span>
    <span class="sc2">&lt;asp:<span class="kw3">Label</span> <span class="kw3">ID</span><span class="sy0">=</span><span class="st0">&quot;lablePayment&quot;</span> runat<span class="sy0">=</span><span class="st0">&quot;server&quot;</span> <span class="kw3">Text</span><span class="sy0">=</span><span class="st0">'&lt;%#Eval(&quot;PayName&quot;)%&gt;</span></span>' /&gt;
<span class="sc2">&lt;<span class="sy0">/</span>ItemTemplate&gt;</span>
<span class="sc2">&lt;EditItemTemplate&gt;</span>
  <span class="sc2">&lt;asp:RadioButtonList Runat <span class="sy0">=</span> <span class="st0">&quot;server&quot;</span> <span class="kw3">ID</span><span class="sy0">=</span><span class="st0">&quot;rblPaymentType&quot;</span> SelectedValue<span class="sy0">=</span><span class="st0">'&lt;%#Eval(&quot;PayTypeID&quot;)%&gt;</span></span>'&gt;
    <span class="sc2">&lt;asp:ListItem <span class="kw3">Text</span><span class="sy0">=</span><span class="st0">&quot;Check&quot;</span> <span class="kw3">Value</span><span class="sy0">=</span><span class="st0">&quot;1&quot;</span>&gt;&lt;<span class="sy0">/</span>asp:ListItem&gt;</span>
    <span class="sc2">&lt;asp:ListItem <span class="kw3">Text</span><span class="sy0">=</span><span class="st0">&quot;Credit Card&quot;</span> <span class="kw3">Value</span><span class="sy0">=</span><span class="st0">&quot;2&quot;</span>&gt;&lt;<span class="sy0">/</span>asp:ListItem&gt;</span>
  <span class="sc2">&lt;<span class="sy0">/</span>asp:RadioButtonList&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span>EditItemTemplate&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span>asp:TemplateField&gt;</span></pre></div></div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2011/06/19/setting-the-selectedvalue-of-radiobuttonlist-dropdownlist-in-gridview-edititemtemplate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:7px; float: left; padding-left: 0px; margin: 3px;"><!-- Ad number: 2 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-3961093531196233"; google_alternate_color = "FFFFFF";
		google_ad_width = 468; google_ad_height = 60;
		google_ad_format = "468x60_as"; google_ad_type = "text_image";
		google_ad_channel ="1685894941"; google_color_border = "E3FA11";
		google_color_link = "FFFFFF"; google_color_bg = "A2AB2B";
		google_color_text = "000000"; google_color_url = "FFFFFF";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>Conditional Hyperlink in template</title>
		<link>http://www.blog.travisgneiting.com/2011/01/11/conditional-hyperlink-in-template/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=conditional-hyperlink-in-template</link>
		<comments>http://www.blog.travisgneiting.com/2011/01/11/conditional-hyperlink-in-template/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 02:44:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=208</guid>
		<description><![CDATA[&#60;% #IIf((Eval(&#8220;id&#8221;) Is System.DBNull.Value), Eval(&#8220;Last&#8221;) &#38; &#8220;, &#8220; &#38; Eval(&#8220;First&#8221;), &#8220;&#60;a href=&#8221; ../default.aspx?id=&#8221; &#38; Eval(&#8220;id&#8221;) &#38; &#8220;&#62;&#8221; &#38; Eval(&#8220;Last&#8221;) &#38; &#8220;, &#8220; &#38; Eval(&#8220;First&#8221;) &#38; &#8220;&#60;/a&#62;&#8221;)%&#62;]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><span style="font-size: xx-small;"><font size="1">&lt;%</p>
<p></font></span><span style="color: #0000ff; font-size: xx-small;"><span style="color: #0000ff; font-size: xx-small;">#</span></span><span style="font-size: xx-small;">IIf((Eval(</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;id&#8221;</span></span><span style="font-size: xx-small;">) </span><span style="color: #0000ff; font-size: xx-small;"><span style="color: #0000ff; font-size: xx-small;">Is</span></span><span style="font-size: xx-small;"> System.DBNull.Value), Eval(</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;Last&#8221;</span></span><span style="font-size: xx-small;">) &amp; </span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;, &#8220;</span></span><span style="font-size: xx-small;"> &amp; Eval(</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;First&#8221;</span></span><span style="font-size: xx-small;">), </span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;&lt;a href=&#8221;</span></span><span style="font-size: xx-small;"> ..</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">/default.aspx?id=&#8221;</span></span><span style="font-size: xx-small;"> &amp; Eval(</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;id&#8221;</span></span><span style="font-size: xx-small;">) &amp; </span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;&gt;&#8221;</span></span><span style="font-size: xx-small;"> &amp; Eval(</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;Last&#8221;</span></span><span style="font-size: xx-small;">) &amp; </span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;, &#8220;</span></span><span style="font-size: xx-small;"> &amp; Eval(</span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;First&#8221;</span></span><span style="font-size: xx-small;">) &amp; </span><span style="color: #a31515; font-size: xx-small;"><span style="color: #a31515; font-size: xx-small;">&#8220;&lt;/a&gt;&#8221;</span></span><span style="font-size: xx-small;">)%&gt; </span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2011/01/11/conditional-hyperlink-in-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebMethods For Use With Visual Studio and AJAX</title>
		<link>http://www.blog.travisgneiting.com/2009/01/05/webmethods-for-use-with-visual-studio-and-ajax/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=webmethods-for-use-with-visual-studio-and-ajax</link>
		<comments>http://www.blog.travisgneiting.com/2009/01/05/webmethods-for-use-with-visual-studio-and-ajax/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 20:48:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[webmethod]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=20</guid>
		<description><![CDATA[The webmethod tag is an attribute added to a Public methods to indicate the method should be exposed as part of an XML Web service.  Below is an example of applying the WebMethod attribute. &#60;WebMethod()&#62; _ Public Shared Function FunctionName(ByVal Parameter As String) As ObjectName Dim ObjectName As Object = Object Return ObjectName End Function [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>The webmethod tag is an attribute added to a Public methods to indicate the method should be exposed as part of an XML Web service.  Below is an example of applying the WebMethod attribute.</p>
<p><code><br />
&lt;WebMethod()&gt; _<br />
Public Shared Function FunctionName(ByVal Parameter As String) As ObjectName<br />
Dim ObjectName As Object = Object<br />
Return ObjectName<br />
End Function</code></p>
<p>The Web method can now be called via javascript on the client. Below is an example of calling the webmethod from the client.<br />
<code><br />
PageMethods.FunctionName(Parameter1, onComplete, OnTimeOut, onError);</code></p>
<p>Here is a great link with additional information for web methods:</p>
<p><a href="http://www.novologies.com/post/2009/05/06/Cleaner-Faster-Ajax-in-ASPNET.aspx">http://www.novologies.com/post/2009/05/06/Cleaner-Faster-Ajax-in-ASPNET.aspx</a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2009/01/05/webmethods-for-use-with-visual-studio-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Project Code Name “Velocity”</title>
		<link>http://www.blog.travisgneiting.com/2008/09/25/microsoft-project-code-name-%e2%80%9cvelocity%e2%80%9d/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=microsoft-project-code-name-%25e2%2580%259cvelocity%25e2%2580%259d</link>
		<comments>http://www.blog.travisgneiting.com/2008/09/25/microsoft-project-code-name-%e2%80%9cvelocity%e2%80%9d/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 13:00:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Velocity]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=15</guid>
		<description><![CDATA[Microsoft Velocity provides distributed in-memory web application caching. This provides highly scalable, high-performance application caching. “Velocity Caching” can be used to cache any Common Language Runtime (CLR is the Virtual Machine of Microsoft’s .NET initiative) through simple API’s. From a general standpoint, Velocity was created with the goal of providing performance, scalability and availability. The [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Microsoft Velocity provides distributed in-memory web application caching. This provides highly scalable, high-performance application caching. “Velocity Caching” can be used to cache any Common Language Runtime (CLR is the Virtual Machine of Microsoft’s .NET initiative) through simple API’s. From a general standpoint, Velocity was created with the goal of providing performance, scalability and availability.</p>
<p class="MsoNormal">
<p class="MsoNormal">The main application for providing scalable, available, high-performance applications using Velocity is by fusing the memory between multiple computers to give a single/unified cache view for the application to employ.<span> </span>The application can they store any CLR object that is serializable.</p>
<p class="MsoNormal">
<p class="MsoNormal"><a href="http://blogs.msdn.com/velocity/">http://blogs.msdn.com/velocity/</a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2008/09/25/microsoft-project-code-name-%e2%80%9cvelocity%e2%80%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A better way to get a querystring</title>
		<link>http://www.blog.travisgneiting.com/2008/08/01/a-better-way-to-get-a-querystring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-better-way-to-get-a-querystring</link>
		<comments>http://www.blog.travisgneiting.com/2008/08/01/a-better-way-to-get-a-querystring/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 19:04:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Patterns & Practices]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[querystring]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=13</guid>
		<description><![CDATA[If (Not String.IsNullOrEmpty(Request.QueryString(&#34;qString&#34;))) Then qString = Request.QueryString(&#34;qString&#34;) End if]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><code>
<pre class="brush: vb.net">If (Not String.IsNullOrEmpty(Request.QueryString(&quot;qString&quot;))) Then qString = Request.QueryString(&quot;qString&quot;)
End if</pre>
<p></code></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2008/08/01/a-better-way-to-get-a-querystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:7px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Ad number: 3 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-3961093531196233"; google_alternate_color = "FFFFFF";
		google_ad_width = 234; google_ad_height = 60;
		google_ad_format = "234x60_as"; google_ad_type = "text_image";
		google_ad_channel ="1685894941"; google_color_border = "336699";
		google_color_link = "0000FF"; google_color_bg = "FFFFFF";
		google_color_text = "000000"; google_color_url = "008000";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>Software Development: Patterns And Practices</title>
		<link>http://www.blog.travisgneiting.com/2008/07/31/software-development-patterns-and-practices/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=software-development-patterns-and-practices</link>
		<comments>http://www.blog.travisgneiting.com/2008/07/31/software-development-patterns-and-practices/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 16:11:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Patterns & Practices]]></category>
		<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=12</guid>
		<description><![CDATA[http://msdn.microsoft.com/en-us/practices/default.aspx http://msdn.microsoft.com/en-us/library/cc467894.aspx http://www.codeplex.com/AppArchGuide According to Microsoft P&#38;P (Patterns and Practices) were created to meet the demands of architects and application developers. By following proven patterns and practices it is suggested that more sound applications will be the result. Included in P&#38;P How to design Develop Deploy Operate architecturally sound applications on a Microsoft platform. P&#38;P [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p class="MsoNormal"><a title="http://www.codeplex.com/AppArchGuide" href="http://www.codeplex.com/AppArchGuide" target="_blank">http://msdn.microsoft.com/en-us/practices/default.aspx</p>
<p>http://msdn.microsoft.com/en-us/library/cc467894.aspx</p>
<p>http://www.codeplex.com/AppArchGuide</a></p>
<p class="MsoNormal">According to Microsoft P&amp;P (Patterns and Practices) were created to meet the demands of architects and application developers.<span> </span>By following proven patterns and practices it is suggested that more sound applications will be the result. Included in P&amp;P</p>
<ul>
<li><!--[if !supportLists]-->How to design</li>
<li><!--[if !supportLists]-->Develop</li>
<li><!--[if !supportLists]--><span><span><span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: "> </span></span></span><!--[endif]-->Deploy</li>
<li><!--[if !supportLists]--><span><span><span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: "> </span></span></span><!--[endif]-->Operate architecturally sound applications on a Microsoft platform.</li>
</ul>
<p class="MsoNormal">P&amp;P for Web Applications<br />
<a href="http://msdn.microsoft.com/en-us/practices/bb969054.aspx#web_apps">http://msdn.microsoft.com/en-us/practices/bb969054.aspx#web_apps</a></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">PHP Patterns and Practices<br />
<a href="http://www.phppatterns.com/docs/start">http://www.phppatterns.com/docs/start</a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2008/07/31/software-development-patterns-and-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Page and Application Tracing</title>
		<link>http://www.blog.travisgneiting.com/2008/04/17/aspnet-page-and-application-tracing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aspnet-page-and-application-tracing</link>
		<comments>http://www.blog.travisgneiting.com/2008/04/17/aspnet-page-and-application-tracing/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 13:30:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Trace Debug ASP.NET]]></category>

		<guid isPermaLink="false">http://www.blog.travisgneiting.com/?p=4</guid>
		<description><![CDATA[Tracing The tracing feature in ASP.NET is useful in tracking the execution of an application. This is helpful to display the trace in a way that doesn&#8217;t affect the programs output. To enable tracing on a page-by-page level, set the Page directive in any ASP.NET page to True: &#60;%@ Page Language=&#8221;C#&#8221; Trace=&#8221;true&#8221; TraceMode = &#8220;SortByCategory&#8221; [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><!--[if gte mso 9]><xml> Normal   0               false   false   false      EN-US   X-NONE   X-NONE                                                     MicrosoftInternetExplorer4 </xml><![endif]--><!--[if gte mso 9]><xml> </xml><![endif]--> <!--[if gte mso 10]></p>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Verdana","sans-serif";}
</style>
<p><![endif]--></p>
<p><strong>Tracing</strong></p>
<p>The tracing feature in ASP.NET is useful in tracking the execution of an application.  This is helpful to display the trace in a way that doesn&#8217;t affect the programs output.</p>
<p>To enable tracing on a page-by-page level, set the Page directive in any ASP.NET page to True:</p>
<p>&lt;%@ Page Language=&#8221;C#&#8221; Trace=&#8221;true&#8221; TraceMode = &#8220;SortByCategory&#8221; Inherits  = &#8220;System.Web.UI.Page&#8221; CodeFile=&#8221;Default.aspx.cs&#8221; %&gt;</p>
<p>To enable tracing for an entire application add tracing settings to the web.config:</p>
<p>&lt;configuration&gt;<br />
&lt;appSettings/&gt;<br />
&lt;connectionStrings/&gt;<br />
&lt;system.web&gt;<br />
&lt;compilation debug=&#8221;false&#8221; /&gt;<br />
&lt;authentication mode=&#8221;Windows&#8221; /&gt;<br />
&lt;trace enabled =&#8221;true&#8221; pageOutput =&#8221;True&#8221; requestLimit =&#8221;20&#8243; traceMode =&#8221;SortByTime &#8221; /&gt;<br />
&lt;/system.web&gt;<br />
&lt;/configuration&gt;</p>
<p>The page-level setting will take precedence over the web.config setting.</p>
<p><strong>How to view Trace Data.</strong></p>
<p>In the Page_Load event call System.Diagnostics.Trace.Write(). Make sure the pageOutput=True in the webConfig.</p>
<p><strong>What&#8217;s being displayed</strong></p>
<p>1. Request Details<br />
ASP.NET Session ID, Character encoding of the request.</p>
<p>2. Trace information<br />
All Trace.write methods called in the HTTP request. This is helpful to find methods that are taking a long time to execute.</p>
<p>3. Control Tree<br />
HTML of ASP.NET Control Tree.</p>
<p>4. Session State<br />
List all keys and values for users session .</p>
<p>5. Application State<br />
List all keys and values for application.</p>
<p>6. Request Cookies Collection<br />
List all cookies passed in during page request.</p>
<p>7. Response Cookies Collection<br />
List all cookies passed back during page response.</p>
<p>8. Headers Collection<br />
Shows all headers passed in during request from browser.</p>
<p>9. Response Headers Collection<br />
Shows all headers passed back during response.</p>
<p>10. Form Collection<br />
Displays dump of Form Collection and all keys and values.</p>
<p>11. Querystring Collection<br />
Displays dump of Querystring collection and all keys and values.</p>
<p>12. Server Variables<br />
Displays dump of Server Variables with keys and values.</p>
<p><strong>The Trace.axd</strong><br />
Page output only displays information of the current page. If you want to create a collection use Trace.axd.</p>
<p><a href="http://localhost/application-name/trace.axd">http://localhost/application-name/trace.axd</a></p>
<p>Trace.axd will display all tracing data up to the present limit.</p>
<p><strong>Trace Forwarding</strong></p>
<p>ASP.NET allows to forward trace message to System.Diagnostics.Trace:write to DiagnosticsTrace</p>
<p>&lt;trace enabled =&#8221;true&#8221; requestLimit =&#8221;20&#8243; writeToDiagnosticsTrace =&#8221;true &#8221; pageOutput =&#8221;true&#8221;/&gt;</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.blog.travisgneiting.com/2008/04/17/aspnet-page-and-application-tracing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

