<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Code-Inside Blog International</title>
	
	<link>http://code-inside.de/blog-in</link>
	<description>Blogging about ASP.NET, .NET &amp; C#</description>
	<lastBuildDate>Fri, 12 Jun 2009 00:48:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Code-InsideBlogInternational" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="code-insidebloginternational" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Windows 7 RC Training Kit for Developer</title>
		<link>http://code-inside.de/blog-in/2009/06/12/windows-7-rc-training-kit-for-developer/</link>
		<comments>http://code-inside.de/blog-in/2009/06/12/windows-7-rc-training-kit-for-developer/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 00:48:07 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Traning Kit]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/06/12/windows-7-rc-training-kit-for-developer/</guid>
		<description><![CDATA[ Microsoft released the Training Kit for developer yesterday. It contains presentations, Hands on Labs and democode for the new Windows 7 APIs.     The Traing Kit is directed towards to C++ developers, but Microsoft offers Wrapper classen for .NET.

Topics:


Taskbar 
Libraries 
Multi Touch 
Sensors and Location 
Ribbon 
Trigger Start Services, 
Instrumentation and [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Windows 7 RC Training Kit for Developer", url: "http://code-inside.de/blog-in/2009/06/12/windows-7-rc-training-kit-for-developer/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image90.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="133" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb106.png" width="176" align="left" border="0" /></a> Microsoft released the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=12100526-ed26-476b-8e20-69662b8546c1&amp;displaylang=en"><strong>Training Kit for developer</strong></a> yesterday. It contains presentations, Hands on Labs and democode for the new Windows 7 APIs.     <br />The Traing Kit is directed towards to C++ developers, but Microsoft offers <strong><a href="http://code.msdn.microsoft.com/WindowsAPICodePack">Wrapper classen</a></strong> for .NET.</p>
<p><span id="more-364"></span></p>
<p><strong>Topics:</strong></p>
<ul>
<ul>
<li>Taskbar </li>
<li>Libraries </li>
<li>Multi Touch </li>
<li>Sensors and Location </li>
<li>Ribbon </li>
<li>Trigger Start Services, </li>
<li>Instrumentation and ETW </li>
<li>Application Compatability </li>
</ul>
</ul>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=12100526-ed26-476b-8e20-69662b8546c1&amp;displaylang=en"><strong>Download</strong></a>.</p>
<p><strong>.NET Devs:</strong></p>
<p>Some API will be integrated into the .NET 4.0 Framwork, e.g. Multitouch input, the taskbar &amp; jumplists in WPF. With the <a href="http://code.msdn.microsoft.com/WindowsAPICodePack"><strong>Wrapper</strong></a> from Microsoft you gain access to the other APIs. The wrapper classes are open source (and are not supported by Microsoft!).</p>
<p><em>Via </em><a href="http://blogs.msdn.com/swiss_dpe_team/archive/2009/06/10/windows-7-training-kit-f-r-entwickler.aspx"><em>Swiss MSDN Team Blog</em></a></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=Windows+7+RC+Training+Kit+for+Developer&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F06%2F12%2Fwindows-7-rc-training-kit-for-developer%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/TAXUpillXdE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/06/12/windows-7-rc-training-kit-for-developer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 &amp; .NET Framework 4 Training Kit – May Preview</title>
		<link>http://code-inside.de/blog-in/2009/05/25/visual-studio-2010-net-framework-4-training-kit-may-preview-2/</link>
		<comments>http://code-inside.de/blog-in/2009/05/25/visual-studio-2010-net-framework-4-training-kit-may-preview-2/#comments</comments>
		<pubDate>Mon, 25 May 2009 09:20:07 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Training Kit]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/05/25/visual-studio-2010-net-framework-4-training-kit-may-preview-2/</guid>
		<description><![CDATA[Microsoft released a preview Training Kit for .NET 4.0 &#38; VS 2010: Download. It includes 28 presentations, 13 demos &#38; 16 Hands-on Labs.
&#160;

Overview
The Visual Studio 2010 and .NET Framework 4 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2010 features and [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Visual Studio 2010 &#38; .NET Framework 4 Training Kit &#8211; May Preview", url: "http://code-inside.de/blog-in/2009/05/25/visual-studio-2010-net-framework-4-training-kit-may-preview-2/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image89.png"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="left" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb105.png" width="98" height="100" /></a>Microsoft released a preview Training Kit for <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&amp;displaylang=en">.NET 4.0 &amp; VS 2010</a>: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=752CB725-969B-4732-A383-ED5740F02E93&amp;displaylang=en">Download</a>. It includes 28 presentations, 13 demos &amp; 16 Hands-on Labs.</p>
<p>&#160;</p>
<p><span id="more-361"></span></p>
<p><strong>Overview</strong><a name="Description"></a></p>
<p>The Visual Studio 2010 and .NET Framework 4 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2010 features and a variety of framework technologies including: </p>
<ul>
<li>C# 4.0 </li>
<li>Visual Basic 10 </li>
<li>F# </li>
<li>Parallel Extensions </li>
<li>Windows Communication Foundation </li>
<li>Windows Workflow </li>
<li>Windows Presentation Foundation </li>
<li>ASP.NET 4 </li>
<li>Entity Framework </li>
<li>ADO.NET Data Services </li>
<li>Managed Extensibility Framework </li>
<li>Visual Studio Team System </li>
</ul>
<p> This version of the Training Kit works with Visual Studio 2010 Beta 1 and .NET Framework 4 Beta 1.   </p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=Visual+Studio+2010+%26amp%3B+.NET+Framework+4+Training+Kit+%26%238211%3B+May+Preview&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F05%2F25%2Fvisual-studio-2010-net-framework-4-training-kit-may-preview-2%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/B9OrIlkCT-Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/05/25/visual-studio-2010-net-framework-4-training-kit-may-preview-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inside Microsoft’s home of the future</title>
		<link>http://code-inside.de/blog-in/2009/05/13/inside-microsofts-home-of-the-future/</link>
		<comments>http://code-inside.de/blog-in/2009/05/13/inside-microsofts-home-of-the-future/#comments</comments>
		<pubDate>Wed, 13 May 2009 08:52:26 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[NUI]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/05/13/inside-microsofts-home-of-the-future/</guid>
		<description><![CDATA[ 
Microsoft shows in a Video how the “home of the future” might look like. Some photos of this house could be found here. Speak recognition &#38; “NUI”s are “key features” in this house.
&#160;


<script type="text/javascript">SHARETHIS.addEntry({ title: "Inside Microsoft&#8217;s home of the future", url: "http://code-inside.de/blog-in/2009/05/13/inside-microsofts-home-of-the-future/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image88.png"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="left" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb104.png" width="149" height="100" /></a> </p>
<p>Microsoft shows in a <a href="http://www.neowin.net/news/main/09/05/13/inside-microsofts-home-of-the-future-video">Video</a> how the “home of the future” might look like. Some photos of this house could be found <a href="http://seattletimes.nwsource.com/html/photogalleries/businesstechnology1430/1.html">here</a>. Speak recognition &amp; “<a href="http://en.wikipedia.org/wiki/Natural_User_Interface">NUI</a>”s are “key features” in this house.</p>
<p>&#160;</p>
<p><span id="more-357"></span><br />
<object width="512" height="400"><param name="movie" value="http://news.bbc.co.uk/player/emp/external/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="FlashVars" value="config_settings_showPopoutCta=false&amp;config_settings_language=default&amp;config=http://news.bbc.co.uk/player/emp/config/default.xml?1.3.105_2.10.7938_7967_20090406152952&amp;playlist=http://news.bbc.co.uk/media/emp/8040000/8046600/8046659.xml&amp;config_settings_showUpdatedInFooter=true&amp;config_settings_showFooter=true&amp;config_settings_showPopoutButton=false&amp;config_settings_showPopoutCta=false"></param><embed src="http://news.bbc.co.uk/player/emp/external/player.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="512" height="400" FlashVars="config_settings_showPopoutCta=false&#038;config_settings_language=default&#038;config=http://news.bbc.co.uk/player/emp/config/default.xml?1.3.105_2.10.7938_7967_20090406152952&#038;playlist=http://news.bbc.co.uk/media/emp/8040000/8046600/8046659.xml&#038;config_settings_showUpdatedInFooter=true&#038;config_settings_showFooter=true&#038;config_settings_showPopoutButton=false&#038;config_settings_showPopoutCta=false"></embed></object></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=Inside+Microsoft%26%238217%3Bs+home+of+the+future&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F05%2F13%2Finside-microsofts-home-of-the-future%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/XBxWm6KWYgc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/05/13/inside-microsofts-home-of-the-future/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free eBook: Practical .NET Unit Testing</title>
		<link>http://code-inside.de/blog-in/2009/05/03/free-ebook-practical-net-unit-testing/</link>
		<comments>http://code-inside.de/blog-in/2009/05/03/free-ebook-practical-net-unit-testing/#comments</comments>
		<pubDate>Sun, 03 May 2009 11:06:14 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[eBook]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/05/03/free-ebook-practical-net-unit-testing/</guid>
		<description><![CDATA[ Nice intro to unit testing (&#38; mocking) with .NET: 
- Practical .NET Unit Testing
<script type="text/javascript">SHARETHIS.addEntry({ title: "Free eBook: Practical .NET Unit Testing", url: "http://code-inside.de/blog-in/2009/05/03/free-ebook-practical-net-unit-testing/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image87.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="91" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb103.png" width="172" align="left" border="0" /></a> Nice intro to unit testing (&amp; mocking) with .NET: </p>
<p>- <a href="http://www.ytechie.com/2009/04/practical-net-unit-testing-free-paper-released.html">Practical .NET Unit Testing</a></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=Free+eBook%3A+Practical+.NET+Unit+Testing&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F05%2F03%2Ffree-ebook-practical-net-unit-testing%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/npZ_7q7ECq4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/05/03/free-ebook-practical-net-unit-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free eBook: Testing Chapter from Beginning ASP.NET MVC</title>
		<link>http://code-inside.de/blog-in/2009/04/30/free-ebooks-agile-principles-patterns-and-practices-in-c-testing-chapter-from-beginning-aspnet-mvc/</link>
		<comments>http://code-inside.de/blog-in/2009/04/30/free-ebooks-agile-principles-patterns-and-practices-in-c-testing-chapter-from-beginning-aspnet-mvc/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 09:19:32 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Agil]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[eBooks]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/04/30/free-ebooks-agile-principles-patterns-and-practices-in-c-testing-chapter-from-beginning-aspnet-mvc/</guid>
		<description><![CDATA[ Just found an interesting eBook:


- Free Chapter of Beginning ASP.NET MVC 1.0 – Testing ASP.NET MVC Applications (Blogpost)
<script type="text/javascript">SHARETHIS.addEntry({ title: "Free eBook: Testing Chapter from Beginning ASP.NET MVC", url: "http://code-inside.de/blog-in/2009/04/30/free-ebooks-agile-principles-patterns-and-practices-in-c-testing-chapter-from-beginning-aspnet-mvc/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image86.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" align="left" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb102.png" width="104" height="130" /></a> Just found an interesting eBook:</p>
</p>
</p>
<p>- <a href="http://p2p.wrox.com/book-beginning-asp-net-mvc-1-0-isbn-978-0-470-43399-7/74180-free-chapter-9-testing-asp-net-mvc-applications-preview.html#post240422">Free Chapter of Beginning ASP.NET MVC 1.0 – Testing ASP.NET MVC Applications</a> (<a href="http://codeclimber.net.nz/archive/2009/04/29/free-chapter-of-beginning-asp.net-mvc-1.0-ndash-testing-asp.net.aspx">Blogpost</a>)</p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=Free+eBook%3A+Testing+Chapter+from+Beginning+ASP.NET+MVC&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F04%2F30%2Ffree-ebooks-agile-principles-patterns-and-practices-in-c-testing-chapter-from-beginning-aspnet-mvc%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/YR2ROEQgJds" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/04/30/free-ebooks-agile-principles-patterns-and-practices-in-c-testing-chapter-from-beginning-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Create RSS Feeds with Linq to XML / XLinq</title>
		<link>http://code-inside.de/blog-in/2009/04/24/howto-create-rss-feeds-with-linq-to-xml-xlinq-2/</link>
		<comments>http://code-inside.de/blog-in/2009/04/24/howto-create-rss-feeds-with-linq-to-xml-xlinq-2/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 23:32:36 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[LINQ to XML]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/04/24/howto-create-rss-feeds-with-linq-to-xml-xlinq-2/</guid>
		<description><![CDATA[
It&#180;s very easy to create an RSS using Linq to XML. In my sample I create a ASP.NET page, which offers a RSS Feed. We add also a meta tag so that users can find our RSS Feed.
&#160;
&#160;

Project structure:
 
To let the user know that we offer a RSS Feed we create the following markup [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "HowTo: Create RSS Feeds with Linq to XML / XLinq", url: "http://code-inside.de/blog-in/2009/04/24/howto-create-rss-feeds-with-linq-to-xml-xlinq-2/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image83.png"><img style="border-right: 0px; border-top: 0px; margin: 0px 10px 0px 0px; border-left: 0px; border-bottom: 0px" height="108" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb98.png" width="107" align="left" border="0" /></a>
<p>It&#180;s very easy to create an RSS using Linq to XML. In my sample I create a ASP.NET page, which offers a RSS Feed. We add also a meta tag so that users can find our RSS Feed.</p>
<p>&#160;</p>
<p>&#160;</p>
<p><span id="more-346"></span></p>
<p><strong>Project structure:</strong></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image84.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="175" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb99.png" width="231" border="0" /></a> </p>
<p>To let the user know that we offer a RSS Feed we create the following markup in the head of our ASP.NET page:</p>
</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:50ae3ecc-c6dc-4b9c-80c9-38d5609d9613" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<pre name="code" class="c#">&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
    &lt;link rel="alternate" href="Rss.ashx" type="application/rss+xml" title="" id="rss" /&gt;
&lt;/head&gt;</pre>
</div>
<p><strong>&quot;RSS.ashx&quot;</strong></p>
<p>To create a RSS we use directly the ProcessRequest method of the ASHX:</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:64648015-9deb-447f-89c0-e70f11b13e11" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<pre name="code" class="c#">        public void ProcessRequest(HttpContext context)
        {

            XDocument document = new XDocument(
                                    new XDeclaration("1.0", "utf-8", "yes"),
                                    new XElement("rss",
                                        new XAttribute("version", "2.0"),
                                        new XElement("channel", this.CreateElements())
                                       ));

            context.Response.ContentType = "text/xml";
            document.Save(context.Response.Output);
            context.Response.End();
        }</pre>
</div>
<p>Each time we create a new level of the XML tree we &quot;chain&quot; our XElements and return at the end the <a href="http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.aspx">XDocument</a>. The RSS Items will be create in a seperate method called &quot;<strong>CreateElements</strong>&quot;:</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:11c28e5c-b853-46b1-ab86-9a80c6b250d1" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<pre name="code" class="c#">private IEnumerable&lt;XElement&gt; CreateElements()
        {
            List&lt;XElement&gt; list = new List&lt;XElement&gt;();

            for (int i = 1; i &lt; 100; i++)
            {
                XElement itemElement = new XElement("item",
                                            new XElement("title", i),
                                            new XElement("link", "http://code-inside.de")
                                       );
                list.Add(itemElement);
            }

            return list;
        }</pre>
</div>
<p>In this method we create the RSS Items and return this XElement list to the ASHX handler. </p>
<p>As you can see: Creating of an RSS Feed is really simple with Linq to&#160; Xml. <img src='http://code-inside.de/blog-in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><a href="http://code-inside.de/files/democode/xlinqrss/xlinqrss.zip">[ Download Source Code ]</a></strong></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=HowTo%3A+Create+RSS+Feeds+with+Linq+to+XML+%2F+XLinq&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F04%2F24%2Fhowto-create-rss-feeds-with-linq-to-xml-xlinq-2%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/Ysf3oE2ksv4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/04/24/howto-create-rss-feeds-with-linq-to-xml-xlinq-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Tweet with C#</title>
		<link>http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/</link>
		<comments>http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 23:33:01 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tweetsharp]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/</guid>
		<description><![CDATA[Twitter is the internet Microblogging Service &#8211; this is my acc BTW. Twitter has an API since the beginning (and IMHO is this one big reason why twitter is so successful). The Twitter API is REST based and so you can easily create Twitter-Clients with .NET. If you don&#180;t want to create the HTTP basic [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "HowTo: Tweet with C#", url: "http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image82.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="111" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb97.png" width="164" align="left" border="0" /></a><a href="http://twitter.com">Twitter</a> is <strong>the</strong> internet <a href="http://en.wikipedia.org/wiki/Micro-blogging">Microblogging Service</a> &#8211; this is <a href="http://twitter.com/robert0muehsig">my acc BTW</a>. Twitter has an <a href="http://apiwiki.twitter.com/">API</a> since the beginning (and IMHO is this one big reason why twitter is so successful). The Twitter API is <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a> based and so you can easily create Twitter-Clients with .NET. If you don&#180;t want to create the HTTP basic stuff, check out existing libraries, like <a href="http://code.google.com/p/tweetsharp/">Tweetsharp</a>. </p>
<p><span id="more-341"></span></p>
<p><strong>Twitter API      <br /></strong>You can find the Twitter API docs <a href="http://apiwiki.twitter.com/">here</a> and a <a href="http://apiwiki.twitter.com/Things-Every-Developer-Should-Know">good overview here</a>. </p>
<p><strong>Twittern via C# &#8211; &quot;low level&quot;</strong>     <br />You can use HttpRequest &amp; HttpResponse objects to use twitter: <a href="http://psantos-blog.zi-yu.com/?p=197">Sample here</a>.</p>
<p><strong>C# APIs for Twitter      <br /></strong>If you don&#180;t want do deal with the low level things, then you should look at these <a href="http://apiwiki.twitter.com/Libraries#C/NET">C# APIs</a></p>
<p><strong>One example: Tweetsharp      <br /></strong><a href="http://code.google.com/p/tweetsharp/">Tweetsharp</a> is a really cool, fluent interface for accessing Twitter, Url-Shorting-Services, Twitpic and so on. Here I create a simple update on twitter:</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:a14dbc2a-9b8a-4438-85a1-3829edb17bbb" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<pre name="code" class="c#">    class Program
    {
        static void Main(string[] args)
        {
            var twitter = FluentTwitter.CreateRequest()
            .AuthenticateAs("USERNAME", "PASSWORD")
            .Statuses().Update("testing, one, two, three!")
            .AsJson();

            var response = twitter.Request();
        }
    }</pre>
</div>
<p>Look at the <a href="http://code.google.com/p/tweetsharp/w/list">Google Code wiki</a> or on the <a href="http://tweetsharp.com/">homepage</a> for more information. </p>
<p><strong>Authorization</strong> </p>
<p>If you use a 3rd Party Twitter Client (like <a href="http://www.tweetdeck.com/">Tweetdeck</a>) you have to type in your credentials to get access to your Twitter-Data. This is from a security point of view not very smart. That&#180;s why Twitter enabled <a href="http://oauth.net/">OAuth</a> authorization, which is also provided by <a href="http://apiwiki.twitter.com/OAuth-FAQ">Tweetsharp</a> (look <a href="http://tweetsharp.com/?p=68">here</a> &amp; <a href="http://tweetsharp.com/?p=60">here</a>).</p>
<p><strong>Sample</strong> </p>
<p>You can find a nice WPF Twitter Client on <a href="http://digitweet.codeplex.com/">Codeplex</a>.</p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=HowTo%3A+Tweet+with+C%23&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F04%2F23%2Fhowto-tweet-with-c%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/4SvcncMrMuI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/04/23/howto-tweet-with-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Free eBooks: ADO.NET Entity Framework, Powershell &amp; C#</title>
		<link>http://code-inside.de/blog-in/2009/04/15/free-ebooks-adonet-entity-framework-powershell-c/</link>
		<comments>http://code-inside.de/blog-in/2009/04/15/free-ebooks-adonet-entity-framework-powershell-c/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 20:44:00 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[ADO.NET EF]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[eBooks]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/04/15/free-ebooks-adonet-entity-framework-powershell-c/</guid>
		<description><![CDATA[Just found 3 eBooks:
- ADO.NET Entity Framework: Learning Guide&#160; - Effective Windows Powershell     - Illustrated C# 2008
<script type="text/javascript">SHARETHIS.addEntry({ title: "Free eBooks: ADO.NET Entity Framework, Powershell &#38; C#", url: "http://code-inside.de/blog-in/2009/04/15/free-ebooks-adonet-entity-framework-powershell-c/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image81.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="123" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb96.png" width="105" align="left" border="0" /></a>Just found 3 eBooks:</p>
<p>- <a href="http://weblogs.asp.net/zeeshanhirani/archive/2008/12/18/my-christmas-present-to-the-entity-framework-community.aspx">ADO.NET Entity Framework: Learning Guide</a>&#160; <br />- <a href="http://cid-5a8d2641e0963a97.skydrive.live.com/self.aspx/Public/Effective%20Windows%20PowerShell.pdf">Effective Windows Powershell</a>     <br />- <a href="http://www.red-gate.com/products/ants_profiler/boost_app_performance_ebook5.htm?utm_source=cp&amp;utm_medium=email&amp;utm_term=1260&amp;utm_content=boostappperf-ebook2-060409&amp;utm_campaign=antsprofiler">Illustrated C# 2008</a></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=Free+eBooks%3A+ADO.NET+Entity+Framework%2C+Powershell+%26amp%3B+C%23&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F04%2F15%2Ffree-ebooks-adonet-entity-framework-powershell-c%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/dFrerYeOk6k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/04/15/free-ebooks-adonet-entity-framework-powershell-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: From the view to the controller in ASP.NET MVC with ModelBinders</title>
		<link>http://code-inside.de/blog-in/2009/04/06/howto-from-the-view-to-the-controller-in-aspnet-mvc-with-modelbinders/</link>
		<comments>http://code-inside.de/blog-in/2009/04/06/howto-from-the-view-to-the-controller-in-aspnet-mvc-with-modelbinders/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 19:03:23 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[ModelBinders]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/04/06/howto-from-the-view-to-the-controller-in-aspnet-mvc-with-modelbinders/</guid>
		<description><![CDATA[With ASP.NET MVC the developer has now full control about the HTML rendering and how the form data will be transmitted to the server. But how can you get the form values on the server side? There are better ways in MVC to do that than Request.Form[&#34;...&#34;].

Intro     If you are new [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "HowTo: From the view to the controller in ASP.NET MVC with ModelBinders", url: "http://code-inside.de/blog-in/2009/04/06/howto-from-the-view-to-the-controller-in-aspnet-mvc-with-modelbinders/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image-thumb411.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="117" alt="image_thumb4" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb4-thumb3.png" width="153" align="left" border="0" /></a>With ASP.NET MVC the developer has now full control about the HTML rendering and how the form data will be transmitted to the server. But how can you get the form values on the server side? There are better ways in MVC to do that than Request.Form[&quot;...&quot;].</p>
<p><span id="more-335"></span></p>
<p><strong>Intro</strong>     <br />If you are new to ASP.NET MVC, I recommend you to read <a href="http://code-inside.de/blog-in/2008/11/26/howto-first-steps-with-aspnet-mvc/">this post</a> or look at <a href="http://asp.net/mvc">asp.net/mvc</a>. </p>
<p><strong>&quot;Bindings&quot;</strong>     <br />In this HowTo you can learn how to access the form data in a more elegant way than Request.Form[&quot;...&quot;]. </p>
<p><strong>Structure</strong></p>
<p><strong></strong>    <br /><a href="http://code-inside.de/blog-in/wp-content/uploads/image-thumb810.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="279" alt="image_thumb8" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb8-thumb1.png" width="152" align="left" border="0" /></a></p>
<p>We have a &quot;BindingController&quot; and in the Model folder a &quot;Person&quot; class and 3 views:</p>
<p>- &quot;CreatePerson&quot; (form to create a person)    <br />- &quot;Result&quot; of the action     <br />- &quot;Index&quot; is the overview page</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>Person Class:</p>
</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:0b1e181d-3966-498f-aefd-8712a0c8d7e5" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span class="keyword">public</span><span>&#160;</span><span class="keyword">class</span><span> Person&#160;&#160; </span></span></li>
<li class=""><span>{&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160; </span><span class="keyword">public</span><span> Guid Id { </span><span class="keyword">get</span><span>; </span><span class="keyword">set</span><span>; }&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">public</span><span>&#160;</span><span class="keyword">string</span><span> Prename { </span><span class="keyword">get</span><span>; </span><span class="keyword">set</span><span>; }&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160; </span><span class="keyword">public</span><span>&#160;</span><span class="keyword">string</span><span> Surname { </span><span class="keyword">get</span><span>; </span><span class="keyword">set</span><span>; }&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">public</span><span>&#160;</span><span class="keyword">int</span><span> Age { </span><span class="keyword">get</span><span>; </span><span class="keyword">set</span><span>; }&#160;&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">    public class Person
    {
        public Guid Id { get; set; }
        public string Prename { get; set; }
        public string Surname { get; set; }
        public int Age { get; set; }
    }</pre>
</div>
<p>Form in CreatePerson.aspx:</p>
</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:e3f6bc9b-67a4-4dd1-acb6-2e470a6a230c" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>&lt;% </span><span class="keyword">using</span><span> (Html.BeginForm()) {%&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160; &lt;fieldset&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;legend&gt;Fields&lt;/legend&gt;&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;label </span><span class="keyword">for</span><span>=</span><span class="string">&quot;Id&quot;</span><span>&gt;Id:&lt;/label&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.TextBox(</span><span class="string">&quot;Id&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.ValidationMessage(</span><span class="string">&quot;Id&quot;</span><span>, </span><span class="string">&quot;*&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/p&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p&gt;&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;label </span><span class="keyword">for</span><span>=</span><span class="string">&quot;Prename&quot;</span><span>&gt;Prename:&lt;/label&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.TextBox(</span><span class="string">&quot;Prename&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.ValidationMessage(</span><span class="string">&quot;Prename&quot;</span><span>, </span><span class="string">&quot;*&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/p&gt;&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;label </span><span class="keyword">for</span><span>=</span><span class="string">&quot;Surname&quot;</span><span>&gt;Surname:&lt;/label&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.TextBox(</span><span class="string">&quot;Surname&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.ValidationMessage(</span><span class="string">&quot;Surname&quot;</span><span>, </span><span class="string">&quot;*&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/p&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p&gt;&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;label </span><span class="keyword">for</span><span>=</span><span class="string">&quot;Age&quot;</span><span>&gt;Age:&lt;/label&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.TextBox(</span><span class="string">&quot;Age&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;%= Html.ValidationMessage(</span><span class="string">&quot;Age&quot;</span><span>, </span><span class="string">&quot;*&quot;</span><span>) %&gt;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/p&gt;&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;p&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;input type=</span><span class="string">&quot;submit&quot;</span><span> value=</span><span class="string">&quot;Create&quot;</span><span> /&gt;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/p&gt;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; &lt;/fieldset&gt;&#160;&#160; </span></li>
<li class="alt"><span>&#160; </span></li>
<li class=""><span>&lt;% } %&gt;&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">    &lt;% using (Html.BeginForm()) {%&gt;

        &lt;fieldset&gt;
            &lt;legend&gt;Fields&lt;/legend&gt;
            &lt;p&gt;
                &lt;label for=&quot;Id&quot;&gt;Id:&lt;/label&gt;
                &lt;%= Html.TextBox(&quot;Id&quot;) %&gt;
                &lt;%= Html.ValidationMessage(&quot;Id&quot;, &quot;*&quot;) %&gt;
            &lt;/p&gt;
            &lt;p&gt;
                &lt;label for=&quot;Prename&quot;&gt;Prename:&lt;/label&gt;
                &lt;%= Html.TextBox(&quot;Prename&quot;) %&gt;
                &lt;%= Html.ValidationMessage(&quot;Prename&quot;, &quot;*&quot;) %&gt;
            &lt;/p&gt;
            &lt;p&gt;
                &lt;label for=&quot;Surname&quot;&gt;Surname:&lt;/label&gt;
                &lt;%= Html.TextBox(&quot;Surname&quot;) %&gt;
                &lt;%= Html.ValidationMessage(&quot;Surname&quot;, &quot;*&quot;) %&gt;
            &lt;/p&gt;
            &lt;p&gt;
                &lt;label for=&quot;Age&quot;&gt;Age:&lt;/label&gt;
                &lt;%= Html.TextBox(&quot;Age&quot;) %&gt;
                &lt;%= Html.ValidationMessage(&quot;Age&quot;, &quot;*&quot;) %&gt;
            &lt;/p&gt;
            &lt;p&gt;
                &lt;input type=&quot;submit&quot; value=&quot;Create&quot; /&gt;
            &lt;/p&gt;
        &lt;/fieldset&gt;

    &lt;% } %&gt;</pre>
</div>
<p><strong>Binding: 1. Option &#8211; FormCollection:</strong></p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:541bb5b8-17eb-49f7-b8ca-5c964f2a38db" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>[AcceptVerbs(HttpVerbs.Post)]&#160;&#160; </span></span></li>
<li class=""><span></span><span class="keyword">public</span><span> ActionResult FormCollection(FormCollection collection)&#160;&#160; </span></span></li>
<li class="alt"><span>{&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; Person person = </span><span class="keyword">new</span><span> Person();&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160; person.Prename = collection[</span><span class="string">&quot;Prename&quot;</span><span>];&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160; person.Surname = collection[</span><span class="string">&quot;Surname&quot;</span><span>];&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160; person.Age = </span><span class="keyword">int</span><span>.Parse(collection[</span><span class="string">&quot;Age&quot;</span><span>]);&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">return</span><span> View(</span><span class="string">&quot;Result&quot;</span><span>, person);&#160;&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult FormCollection(FormCollection collection)
        {
            Person person = new Person();
            person.Prename = collection[&quot;Prename&quot;];
            person.Surname = collection[&quot;Surname&quot;];
            person.Age = int.Parse(collection[&quot;Age&quot;]);
            return View(&quot;Result&quot;, person);
        }</pre>
</div>
<p>This option is the simplest possible way to access the form data, but not very elegant and hard to test, because you need to know which keys are in the FormCollection. </p>
<p><strong>Binding: 2. Option- Parameter Matching:</strong></p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:1e8d4262-2c08-41b7-828c-545d1e61a4ed" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>[AcceptVerbs(HttpVerbs.Post)]&#160;&#160; </span></span></li>
<li class=""><span></span><span class="keyword">public</span><span> ActionResult ParameterMatching(</span><span class="keyword">string</span><span> Prename, </span><span class="keyword">string</span><span> Surname, </span><span class="keyword">int</span><span> Age)&#160;&#160; </span></span></li>
<li class="alt"><span>{&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; Person person = </span><span class="keyword">new</span><span> Person();&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160; person.Prename = Prename;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; person.Surname = Surname;&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160; person.Age = Age;&#160;&#160; </span></li>
<li class=""><span>&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160; </span><span class="keyword">return</span><span> View(</span><span class="string">&quot;Result&quot;</span><span>, person);&#160;&#160; </span></span></li>
<li class=""><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult ParameterMatching(string Prename, string Surname, int Age)
        {
            Person person = new Person();
            person.Prename = Prename;
            person.Surname = Surname;
            person.Age = Age;

            return View(&quot;Result&quot;, person);
        }</pre>
</div>
<p>This option is very handy. The HTTP form values will be mapped to the parameters if the type and name are the same as the transmitted form value. This option is easy to test, but you have to map the parameters to your model manually.</p>
<p><strong>Binding: 3. Option &#8211; Default Binding:</strong></p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:7f829ed2-ca11-4995-8d10-f6cd19ae10a2" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>[AcceptVerbs(HttpVerbs.Post)]&#160;&#160; </span></span></li>
<li class=""><span></span><span class="keyword">public</span><span> ActionResult DefaultBinding(Person person)&#160;&#160; </span></span></li>
<li class="alt"><span>{&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">return</span><span> View(</span><span class="string">&quot;Result&quot;</span><span>, person);&#160;&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult DefaultBinding(Person person)
        {
            return View(&quot;Result&quot;, person);
        }</pre>
</div>
<p>Now we use our own model as parameter type. The default model binder, which is included in the ASP.NET MVC, will map the incomming HTTP form values to the properties of our person, if type and name match.</p>
<p><strong>Binding: 3. Option with addon &#8211; Default Binding with Include:</strong></p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:fad75f19-afaf-4cce-a86f-b3002463b407" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>[AcceptVerbs(HttpVerbs.Post)]&#160;&#160; </span></span></li>
<li class=""><span></span><span class="keyword">public</span><span> ActionResult DefaultBindingWithInclude([Bind(Include=</span><span class="string">&quot;Prename&quot;</span><span>)] Person person)&#160;&#160; </span></span></li>
<li class="alt"><span>{&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">return</span><span> View(</span><span class="string">&quot;Result&quot;</span><span>, person);&#160;&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult DefaultBindingWithInclude([Bind(Include=&quot;Prename&quot;)] Person person)
        {
            return View(&quot;Result&quot;, person);
        }</pre>
</div>
<p><a href="http://www.codethinked.com/post/2009/01/08/ASPNET-MVC-Think-Before-You-Bind.aspx">You should think bevor you bind</a> &#8211; to secure your applicaiton you can specify which properties will be mapped to the properties of the parameters.</p>
<p><strong>Binding: 3. Option with addon &#8211; Default Binding with Exclude:</strong></p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:f464b65d-eba8-4ca5-b00e-c6549044295e" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>[AcceptVerbs(HttpVerbs.Post)]&#160;&#160; </span></span></li>
<li class=""><span></span><span class="keyword">public</span><span> ActionResult DefaultBindingWithExclude([Bind(Exclude = </span><span class="string">&quot;Prename&quot;</span><span>)] Person person)&#160;&#160; </span></span></li>
<li class="alt"><span>{&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">return</span><span> View(</span><span class="string">&quot;Result&quot;</span><span>, person);&#160;&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult DefaultBindingWithExclude([Bind(Exclude = &quot;Prename&quot;)] Person person)
        {
            return View(&quot;Result&quot;, person);
        }</pre>
</div>
<p>The same functionality, but this time reversed. </p>
<p><strong>Binding: 3. Option with addon &#8211; Default Binding with Prefix:</strong></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image-thumb113.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="53" alt="image_thumb11" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb11-thumb.png" width="407" border="0" /></a></p>
<p>If you put a prefix in your Html Input controls (because you have multiple &quot;name&quot; fields), than you can specify a prefix.</p>
<p>All these options can be used together and you can map more than one parameter.</p>
<p><strong>Binding: 4. Option &#8211; IModelBinder</strong></p>
<p>If the values are getting more complex or you want your own mapping logic than you can use the IModelBinder interface. One example is <a href="http://www.hanselman.com/blog/ASPNETMVCBetaReleasedCoolnessEnsues.aspx">Fileupload</a> or to get the <a href="http://www.hanselman.com/blog/IPrincipalUserModelBinderInASPNETMVCForEasierTesting.aspx">session user</a>.</p>
<p>Now you just need to implement the IModelBinder interface:</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:73f40b10-a763-4707-8b7a-60fcbd9226b8" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span class="keyword">public</span><span>&#160;</span><span class="keyword">class</span><span> PersonModelBinder : IModelBinder&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160; {&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">public</span><span>&#160;</span><span class="keyword">object</span><span> BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">if</span><span> (controllerContext == </span><span class="keyword">null</span><span>) {&#160;&#160;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">throw</span><span>&#160;</span><span class="keyword">new</span><span> ArgumentNullException(</span><span class="string">&quot;controllerContext&quot;</span><span>);&#160;&#160;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">if</span><span> (bindingContext == </span><span class="keyword">null</span><span>) {&#160;&#160;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">throw</span><span>&#160;</span><span class="keyword">new</span><span> ArgumentNullException(</span><span class="string">&quot;bindingContext&quot;</span><span>);&#160;&#160;&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160; </span></li>
<li class="alt"><span>&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; NameValueCollection collection = controllerContext.RequestContext.HttpContext.Request.Form;&#160;&#160; </span></li>
<li class="alt"><span>&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Person returnValue = </span><span class="keyword">new</span><span> Person();&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; returnValue.Id = Guid.NewGuid();&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; returnValue.Prename = </span><span class="string">&quot;Modelbinder: &quot;</span><span> + collection[</span><span class="string">&quot;Prename&quot;</span><span>];&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; returnValue.Surname = </span><span class="string">&quot;Modelbinder: &quot;</span><span> + collection[</span><span class="string">&quot;Surname&quot;</span><span>];&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">int</span><span> age = 0;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">int</span><span>.TryParse(collection[</span><span class="string">&quot;Age&quot;</span><span>], </span><span class="keyword">out</span><span> age);&#160;&#160; </span></span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; returnValue.Age = age;&#160;&#160; </span></li>
<li class="alt"><span>&#160; </span></li>
<li class=""><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="keyword">return</span><span> returnValue;&#160;&#160; </span></span></li>
<li class="alt"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160; </span></li>
<li class=""><span>&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160; }&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">public class PersonModelBinder : IModelBinder
    {
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
         if (controllerContext == null) {
             throw new ArgumentNullException(&quot;controllerContext&quot;);
         }
         if (bindingContext == null) {
             throw new ArgumentNullException(&quot;bindingContext&quot;);
         }

            NameValueCollection collection = controllerContext.RequestContext.HttpContext.Request.Form;

            Person returnValue = new Person();
            returnValue.Id = Guid.NewGuid();
            returnValue.Prename = &quot;Modelbinder: &quot; + collection[&quot;Prename&quot;];
            returnValue.Surname = &quot;Modelbinder: &quot; + collection[&quot;Surname&quot;];
            int age = 0;
            int.TryParse(collection[&quot;Age&quot;], out age);
            returnValue.Age = age;

            return returnValue;
        }

    }</pre>
</div>
<p>You get full access to the form values or other controller properties or route value.</p>
<p>You can register your Modelbinder global in the Global.ascx:</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:ec540371-fa11-4087-965e-dcf98a12bb33" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span class="keyword">protected</span><span>&#160;</span><span class="keyword">void</span><span> Application_Start()&#160;&#160; </span></span></li>
<li class=""><span>{&#160;&#160; </span></li>
<li class="alt"><span>&#160;&#160;&#160; RegisterRoutes(RouteTable.Routes);&#160;&#160;&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; ModelBinders.Binders[</span><span class="keyword">typeof</span><span>(Person)] = </span><span class="keyword">new</span><span> PersonModelBinder(); </span><span class="comment">// Important! </span><span>&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
            ModelBinders.Binders[typeof(Person)] = new PersonModelBinder(); // Important!
        }</pre>
</div>
<p>Everytime you have a parameter of type &quot;Person&quot; the &quot;PersonModelBinder&quot; will try to map the values to this object.</p>
<p>Or you can specify it per ActionMethod:</p>
<div class="wlWriterSmartContent" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:d3cc88dd-8128-4121-a197-5f8541b409ae" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<div class="dp-highlighter">
<div class="bar">
<div class="tools"><a onclick="dp.sh.Toolbar.Command(&#39;ViewSource&#39;,this);return false;" href="about:blank#">view plain</a><a onclick="dp.sh.Toolbar.Command(&#39;CopyToClipboard&#39;,this);return false;" href="about:blank#">copy to clipboard</a><a onclick="dp.sh.Toolbar.Command(&#39;PrintSource&#39;,this);return false;" href="about:blank#">print</a><a onclick="dp.sh.Toolbar.Command(&#39;About&#39;,this);return false;" href="about:blank#">?</a></div>
</p></div>
<ol class="dp-c">
<li class="alt"><span><span>[AcceptVerbs(HttpVerbs.Post)]&#160;&#160; </span></span></li>
<li class=""><span></span><span class="keyword">public</span><span> ActionResult PersonModelBinder([ModelBinder(</span><span class="keyword">typeof</span><span>(PersonModelBinder))] Person person)&#160;&#160; </span></span></li>
<li class="alt"><span>{&#160;&#160; </span></li>
<li class=""><span>&#160;&#160;&#160; </span><span class="keyword">return</span><span> View(</span><span class="string">&quot;Result&quot;</span><span>, person);&#160;&#160; </span></span></li>
<li class="alt"><span>}&#160; </span></li>
</ol></div>
<pre class="c#" style="display: none" name="code">        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult PersonModelBinder([ModelBinder(typeof(PersonModelBinder))] Person person)
        {
            return View(&quot;Result&quot;, person);
        }</pre>
</div>
<p><strong>Lists/Array Binding:</strong></p>
<p>You can even &quot;bind&quot; arrays / lists. Read <a href="http://www.hanselman.com/blog/ASPNETWireFormatForModelBindingToArraysListsCollectionsDictionaries.aspx">Scott Hanselmans post</a> for more information.</p>
<p><strong>Screens:</strong></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image-thumb121.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="176" alt="image_thumb12" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb12-thumb.png" width="244" border="0" /></a></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image-thumb142.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="image_thumb14" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb14-thumb1.png" width="212" border="0" /></a></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image-thumb152.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="image_thumb15" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb15-thumb1.png" width="243" border="0" /></a></p>
<p><strong><a href="http://code-inside.de/files/democode/mvcbinding/mvcbinding.zip">[Download Source Code]</a></strong></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=HowTo%3A+From+the+view+to+the+controller+in+ASP.NET+MVC+with+ModelBinders&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F04%2F06%2Fhowto-from-the-view-to-the-controller-in-aspnet-mvc-with-modelbinders%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/3CHCEyfHFxc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/04/06/howto-from-the-view-to-the-controller-in-aspnet-mvc-with-modelbinders/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HowTo: Rename SQL Tables in Visual Studio</title>
		<link>http://code-inside.de/blog-in/2009/03/26/howto-rename-sql-tables-in-visual-studio/</link>
		<comments>http://code-inside.de/blog-in/2009/03/26/howto-rename-sql-tables-in-visual-studio/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 00:41:46 +0000</pubDate>
		<dc:creator>Robert Muehsig</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://code-inside.de/blog-in/2009/03/26/howto-rename-sql-tables-in-visual-studio/</guid>
		<description><![CDATA[The integration of SQL Servers in Visual Studio is really great. I use VS to create my SQL tables and simple administration stuff &#8211; it&#180;s not often that I start SQL Management Studio. But one thing is really annoying: You can&#180;t rename SQL Tables in VS! But there is a little trick to do that.

The [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "HowTo: Rename SQL Tables in Visual Studio", url: "http://code-inside.de/blog-in/2009/03/26/howto-rename-sql-tables-in-visual-studio/" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image79.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" height="104" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb90.png" width="147" align="left" border="0" /></a>The integration of SQL Servers in Visual Studio is really great. I use VS to create my SQL tables and simple administration stuff &#8211; it&#180;s not often that I start SQL Management Studio. But one thing is really annoying: You can&#180;t rename SQL Tables in VS! But there is a little trick to do that.</p>
<p><span id="more-322"></span></p>
<p><strong>The context menu:</strong></p>
<p><a href="http://code-inside.de/blog-in/wp-content/uploads/image80.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="172" alt="image" src="http://code-inside.de/blog-in/wp-content/uploads/image-thumb95.png" width="244" border="0" /></a> </p>
<p>Unfortunately there is no &quot;rename&quot; button here and the name property is disabled.</p>
<p><strong>The trick:</strong>     <br />Just add the tables to an database diagram and rename it there and save it &#8211; that&#180;s it.</p>
<p><em>I found this nice trick on <a href="http://www.bbits.co.uk/blog/archive/2006/03/15/7660.aspx">this site</a> &#8211; there are <a href="http://code-inside.de/blog-in/2009/02/20/howto-create-sql-table-relationships-via-dragndrop/">some cool features</a> in the database diagram view. </em></p>
<p><a href="http://sharethis.com/item?&wp=2.8.4&amp;publisher=88972495-bf13-4422-b036-ea02a73db499&amp;title=HowTo%3A+Rename+SQL+Tables+in+Visual+Studio&amp;url=http%3A%2F%2Fcode-inside.de%2Fblog-in%2F2009%2F03%2F26%2Fhowto-rename-sql-tables-in-visual-studio%2F">ShareThis</a></p><img src="http://feeds.feedburner.com/~r/Code-InsideBlogInternational/~4/-XRVNhyhEI8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://code-inside.de/blog-in/2009/03/26/howto-rename-sql-tables-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
