<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ScottGu's Blog - All Comments</title><link>http://weblogs.asp.net/scottgu/default.aspx</link><description>Scott Guthrie lives in Seattle and builds a few products for Microsoft</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Taller Code  &amp;raquo; Blog Archive   &amp;raquo; Loading a DTO from LINQ To SQL</title><link>http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx#6174668</link><pubDate>Fri, 09 May 2008 21:08:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6174668</guid><dc:creator>Taller Code  » Blog Archive   » Loading a DTO from LINQ To SQL</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Taller Code &amp;nbsp;&amp;amp;raquo; Blog Archive &amp;nbsp; &amp;amp;raquo; Loading a DTO from LINQ To SQL&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6174668" width="1" height="1"&gt;</description></item><item><title>Aún es tiempo para comprar buenos libros de ASP.NET (con descuento)</title><link>http://weblogs.asp.net/scottgu/archive/2008/05/06/professional-asp-net-3-5-book-only-16-on-amazon-for-a-short-time.aspx#6173929</link><pubDate>Fri, 09 May 2008 16:17:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6173929</guid><dc:creator>Carlos Figueroa</dc:creator><description>&lt;p&gt;El martes en la ma&amp;#241;ana Scott Guthrie anunci&amp;#243; que este libro estaba a s&amp;#243;lo $16 ; cuando normalmente cuesta&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6173929" width="1" height="1"&gt;</description></item><item><title>News &amp;raquo; Katherine Russel News ?? Blog Archive ?? NOW - Nowia</title><link>http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx#6173644</link><pubDate>Fri, 09 May 2008 14:08:53 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6173644</guid><dc:creator>News » Katherine Russel News ?? Blog Archive ?? NOW - Nowia</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;News &amp;amp;raquo; Katherine Russel News ?? Blog Archive ?? NOW - Nowia&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6173644" width="1" height="1"&gt;</description></item><item><title>re: Professional ASP.NET 3.5 Book (only $16 on Amazon for a short time)</title><link>http://weblogs.asp.net/scottgu/archive/2008/05/06/professional-asp-net-3-5-book-only-16-on-amazon-for-a-short-time.aspx#6173638</link><pubDate>Fri, 09 May 2008 14:05:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6173638</guid><dc:creator>durden81</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no way to contact you or to add comments in old posts, so I am adding one here.&lt;/p&gt;
&lt;p&gt;This is for &lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx"&gt;weblogs.asp.net/.../tip-trick-url-rewriting-with-asp-net.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please move it there.&lt;/p&gt;
&lt;p&gt;I have run into issues because of the wrong C# code that was posted in the comments of the page and I wanted to contribute with a corrected version so others will not go through this problem again. But it's difficult to contribute in this Blog or contact you.&lt;/p&gt;
&lt;p&gt;Comment for other blog post:&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do not use the C# code someone posted above or you will run into problems, use this fixed version:&lt;/p&gt;
&lt;p&gt;using System.Web;&lt;/p&gt;
&lt;p&gt;using System.Web.UI;&lt;/p&gt;
&lt;p&gt;public class FormRewriterControlAdapter : System.Web.UI.Adapters.ControlAdapter&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;protected override void Render(System.Web.UI.HtmlTextWriter writer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;base.Render(new RewriteFormHtmlTextWriter(writer));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;public class RewriteFormHtmlTextWriter : HtmlTextWriter&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public RewriteFormHtmlTextWriter(HtmlTextWriter writer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: base(writer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.InnerWriter = writer.InnerWriter;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public RewriteFormHtmlTextWriter(System.IO.TextWriter writer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: base(writer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;base.InnerWriter = writer;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public override void WriteAttribute(string name, string value, bool fEncode)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// If the attribute we are writing is the &amp;quot;action&amp;quot; attribute, and we are not on a sub-control, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// then replace the value to write with the raw URL of the request - which ensures that we'll&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// preserve the PathInfo value on postback scenarios&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (name == &amp;quot;action&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HttpContext Context = null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Context = HttpContext.Current;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Context.Items[&amp;quot;ActionAlreadyWritten&amp;quot;] == null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Because we are using the UrlRewriting.net HttpModule, we will use the &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Request.RawUrl property within ASP.NET to retrieve the origional URL&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// before it was re-written. &amp;nbsp;You'll want to change the line of code below&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// if you use a different URL rewriting implementation.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value = Context.Request.RawUrl;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Indicate that we've already rewritten the &amp;lt;form&amp;gt;'s action attribute to prevent&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// us from rewriting a sub-control under the &amp;lt;form&amp;gt; control&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Context.Items[&amp;quot;ActionAlreadyWritten&amp;quot;] = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;base.WriteAttribute(name, value, fEncode);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6173638" width="1" height="1"&gt;</description></item><item><title>Katherine Russel News  &amp;raquo; Blog Archive   &amp;raquo; NOW - Nowia</title><link>http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx#6173346</link><pubDate>Fri, 09 May 2008 12:06:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6173346</guid><dc:creator>Katherine Russel News  » Blog Archive   » NOW - Nowia</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Katherine Russel News &amp;nbsp;&amp;amp;raquo; Blog Archive &amp;nbsp; &amp;amp;raquo; NOW - Nowia&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6173346" width="1" height="1"&gt;</description></item><item><title>uninstall vista sp1</title><link>http://weblogs.asp.net/scottgu/archive/2006/12/16/installing-vs-2005-sp1-on-vista-and-how-to-uninstall-the-vs-2005-sp1-beta-on-vista.aspx#6173208</link><pubDate>Fri, 09 May 2008 11:06:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6173208</guid><dc:creator>uninstall vista sp1</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;uninstall vista sp1&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6173208" width="1" height="1"&gt;</description></item><item><title>Silverlight e le nuove applicazioni RIA: Servizi per l'Healthcare</title><link>http://weblogs.asp.net/scottgu/archive/2008/02/22/first-look-at-silverlight-2.aspx#6172785</link><pubDate>Fri, 09 May 2008 07:30:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6172785</guid><dc:creator>Il blog del team MSDN Italia</dc:creator><description>&lt;p&gt;Nelle scorse settimane ho fatto un post relativo ad una applicazione di esempio per il mondo finaziario&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6172785" width="1" height="1"&gt;</description></item><item><title>sample system of macro</title><link>http://weblogs.asp.net/scottgu/archive/2008/04/10/asp-net-dynamic-data-preview-available.aspx#6172694</link><pubDate>Fri, 09 May 2008 06:31:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6172694</guid><dc:creator>sample system of macro</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;sample system of macro&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6172694" width="1" height="1"&gt;</description></item><item><title>net xaml ui example code</title><link>http://weblogs.asp.net/scottgu/archive/2008/04/10/asp-net-dynamic-data-preview-available.aspx#6172620</link><pubDate>Fri, 09 May 2008 06:00:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6172620</guid><dc:creator>net xaml ui example code</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;net xaml ui example code&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6172620" width="1" height="1"&gt;</description></item><item><title>net xaml ui example code</title><link>http://weblogs.asp.net/scottgu/pages/silverlight-tutorial-part-1-creating-quot-hello-world-quot-with-silverlight-2-and-vs-2008.aspx#6172614</link><pubDate>Fri, 09 May 2008 05:59:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6172614</guid><dc:creator>net xaml ui example code</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;net xaml ui example code&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6172614" width="1" height="1"&gt;</description></item></channel></rss>