<?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>Paulo Nobre &#187; ASP .NET</title>
	<atom:link href="http://www.paulonobre.net/categories/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulonobre.net</link>
	<description></description>
	<lastBuildDate>Mon, 08 Feb 2010 23:42:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Webserver here, please</title>
		<link>http://www.paulonobre.net/2010/02/08/webserver-here-please/</link>
		<comments>http://www.paulonobre.net/2010/02/08/webserver-here-please/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 23:41:32 +0000</pubDate>
		<dc:creator>Paulo Nobre</dc:creator>
				<category><![CDATA[ASP .NET]]></category>

		<guid isPermaLink="false">http://www.paulonobre.net/2010/02/08/webserver-here-please/</guid>
		<description><![CDATA[I’ve seen some blog posts with this already, but every time I reinstall my computer I have to google for it, so hopefully now it will be here, right at hand. Those registry hacks will display an entry in windows explorer context menu, to start local web development server (aka cassini) in target folder.
Visual Studio [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve seen some blog posts with this already, but every time I reinstall my computer I have to google for it, so hopefully now it will be here, right at hand. Those registry hacks will display an entry in windows explorer context menu, to start local web development server (aka cassini) in target folder.</p>
<p><strong>Visual Studio 2008 – X86 Windows</strong> </p>
<pre>Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer]
@=&quot;ASP.NET Web Server Here&quot;

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer\command]
@=&quot;C:\\Program Files\\Common Files\\microsoft shared\\DevServer\\9.0\\
Webdev.WebServer.exe /port:8080 /path:\&quot;%1\&quot;&quot;</pre>
<p><strong>Visual Studio 2008 – X64 Windows</strong> </p>
<pre>Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer]
@=&quot;ASP.NET Web Server Here&quot;

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer\command]
@=&quot;C:\\Program Files (x86)\\Common Files\\microsoft shared\\DevServer\\9.0\\
Webdev.WebServer.exe /port:8080 /path:\&quot;%1\&quot;&quot;</pre>
<p><strong>Visual Studio 2010 – X86 Windows</strong></p>
<pre>Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer]
@=&quot;ASP.NET 4 Web Server Here&quot; 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer\command]
@=&quot;C:\\Program Files\\Common Files\\microsoft shared\\DevServer\\10.0\\
Webdev.WebServer40.exe /port:8081 /path:\&quot;%1\&quot;&quot;</pre>
<p><strong>Visual Studio 2010 – X64 Windows</strong></p>
<pre>Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer]
@=&quot;ASP.NET 4 Web Server Here&quot; 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer\command]
@=&quot;C:\\Program Files (x86)\\Common Files\\microsoft shared\\DevServer\\10.0\\
Webdev.WebServer40.exe /port:8081 /path:\&quot;%1\&quot;&quot;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.paulonobre.net/2010/02/08/webserver-here-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t mess with my textboxes</title>
		<link>http://www.paulonobre.net/2009/09/07/textbox-funny-behavior/</link>
		<comments>http://www.paulonobre.net/2009/09/07/textbox-funny-behavior/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 15:06:35 +0000</pubDate>
		<dc:creator>Paulo Nobre</dc:creator>
				<category><![CDATA[ASP .NET]]></category>

		<guid isPermaLink="false">http://www.paulonobre.net/?p=73</guid>
		<description><![CDATA[As I was putting together some quick &#8216;n dirty code to render some user controlled number of text boxes, I got this funny behavior.
This was the code for my aspx file:
&#60;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&#62;
&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;

&#60;html xmlns="http://www.w3.org/1999/xhtml" &#62;
&#60;head runat="server"&#62;
    &#60;title&#62;Untitled Page&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;form id="form1"&#62;
&#60;div&#62;
  [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As I was putting together some quick &#8216;n dirty code to render some user controlled number of text boxes, I got this funny behavior.</p>
<p>This was the code for my aspx file:</p>
<pre class="brush: xhtml">&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id="form1"&gt;
&lt;div&gt;
    &lt;asp:DropDownList ID="n" runat="server" AutoPostBack="true" OnSelectedIndexChanged="NSelectedIndexChanged"&gt;
         &lt;asp:ListItem Text="1" Value="1" /&gt;
         &lt;asp:ListItem Text="2" Value="2" /&gt;
         &lt;asp:ListItem Text="3" Value="3" /&gt;
         &lt;asp:ListItem Text="4" Value="4" /&gt;
         &lt;asp:ListItem Text="5" Value="5" /&gt;
         &lt;asp:ListItem Text="6" Value="6" /&gt;
         &lt;asp:ListItem Text="7" Value="7" /&gt;
    &lt;/asp:DropDownList&gt;&lt;br /&gt;
        &lt;% for(int i= 0; i &lt; Total; i++)  {%&gt;
&lt;asp:TextBox ID="txt" runat="server" Text="" /%&gt;&lt;br /%&gt;
        &lt;%  }%&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>and this was the code-behind:</p>
<pre class="brush: c-sharp">using System;
using System.Web.UI;

public partial class _Default : Page
{
	private int _total;

	public int Total
	{
		get { return _total; }
		set { _total = value; }
	}

	protected void NSelectedIndexChanged(object sender, EventArgs e)
	{
		_total = Convert.ToInt32(n.SelectedValue);
	}
}</pre>
<p style="text-align: justify;">Now&#8230; when I run the app, and choose some value from the dropdown list it runs OK (beside all the text boxes having the same id). But when i select some, different value 2 or 3 times, some funny values (random number of &#8216;,&#8217; come in to play on each of text box&#8217;s value).</p>
<p>I&#8217;m running Visual Studio 2005 here, targeting .NET Framework 2.0. Is the same happening to you ?</p>
<p>Here is the attached <a title="Code" rel="attachment wp-att-74" href="http://www.paulonobre.net/2009/09/07/textbox-funny-behavior/testcode/">TestCode</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulonobre.net/2009/09/07/textbox-funny-behavior/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
