<?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>Tips by Ervin Ter &#187; asp-net-mvc</title>
	<atom:link href="http://www.ervinter.com/tag/asp-net-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ervinter.com</link>
	<description>Programming, Web News, Web Hostings, Technology</description>
	<lastBuildDate>Tue, 01 Jun 2010 02:10:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ASP.NET MVC DropDownList and HTML Attributes « Rob Conery</title>
		<link>http://www.ervinter.com/2009/11/12/asp-net-mvc-dropdownlist-and-html-attributes-%c2%ab-rob-conery/</link>
		<comments>http://www.ervinter.com/2009/11/12/asp-net-mvc-dropdownlist-and-html-attributes-%c2%ab-rob-conery/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:29:42 +0000</pubDate>
		<dc:creator>ervinter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp-net-mvc]]></category>

		<guid isPermaLink="false">http://www.ervinter.com/2009/11/12/asp-net-mvc-dropdownlist-and-html-attributes-%c2%ab-rob-conery/</guid>
		<description><![CDATA[I setup the Controller to creaet a SelectList, like so: NorthwindDataContext db = new NorthwindDataContext(); var categories = from c in db.Categories select c; ViewData["CategoryID"] = new SelectList(categories, "CategoryID", "CategoryName"); Then, in my View I rendered the DropDownList: =Html.DropDownList("CategoryID",ViewData["CategoryID"])%> via blog.wekeroad.com This is very important if you are using Html.DropDownList in MVC Posted via web <a href="http://www.ervinter.com/2009/11/12/asp-net-mvc-dropdownlist-and-html-attributes-%c2%ab-rob-conery/" class="more-link">More &#62;</a>


<strong>Related posts:</strong><ol><li><a href='http://www.ervinter.com/2009/11/11/macy-thursday-special/' rel='bookmark' title='Permanent Link: Macy &#8211; Thursday Special'>Macy &#8211; Thursday Special</a> <small>via macyhomefurnishings.com Prices on Thursday 12th November 2009 only Location:...</small></li>
<li><a href='http://www.ervinter.com/2009/11/11/c-send-new-post-to-posterous/' rel='bookmark' title='Permanent Link: C# Send New Post to Posterous'>C# Send New Post to Posterous</a> <small>Posterous has a set of API for developer to call...</small></li>
<li><a href='http://www.ervinter.com/2009/11/16/microsoft-application-architecture-guide-2nd-edition-from-patterns-practices/' rel='bookmark' title='Permanent Link: Microsoft Application Architecture Guide 2nd Edition from Patterns &#038; Practices'>Microsoft Application Architecture Guide 2nd Edition from Patterns &#038; Practices</a> <small>Microsoft Patterns &amp; Practices released the 2nd edition of their...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="posterous_bookmarklet_entry">
<blockquote class="posterous_long_quote">
<p>I setup the Controller to creaet a SelectList, like so:</p>
<pre class="csharpcode">NorthwindDataContext db = <span class="kwrd">new</span> NorthwindDataContext();  var categories = from c <span class="kwrd">in</span> db.Categories select c;  ViewData[<span class="str">"CategoryID"</span>] = <span class="kwrd">new</span> SelectList(categories, <span class="str">"CategoryID"</span>, <span class="str">"CategoryName"</span>);  </pre>
<p>Then, in my View I rendered the DropDownList:</p>
<pre class="csharpcode"><span class="asp">=Html.DropDownList(<span class="str">"CategoryID"</span>,ViewData[<span class="str">"CategoryID"</span>])<span class="asp">%></span></span></pre>
</blockquote>
<div class="posterous_quote_citation">via <a href="http://blog.wekeroad.com/blog/asp-net-mvc-dropdownlist-and-html-attributes/">blog.wekeroad.com</a></div>
<p>This is very important if you are using Html.DropDownList in MVC</p>
</div>
<p style="font-size: 10px;">  <a href="http://posterous.com">Posted via web</a>   from <a href="http://ervinter.posterous.com/aspnet-mvc-dropdownlist-and-html-attributes-r">Ervin Ter&#8217;s posterous</a>  </p>


<p><strong>Related posts:</strong><ol><li><a href='http://www.ervinter.com/2009/11/11/macy-thursday-special/' rel='bookmark' title='Permanent Link: Macy &#8211; Thursday Special'>Macy &#8211; Thursday Special</a> <small>via macyhomefurnishings.com Prices on Thursday 12th November 2009 only Location:...</small></li>
<li><a href='http://www.ervinter.com/2009/11/11/c-send-new-post-to-posterous/' rel='bookmark' title='Permanent Link: C# Send New Post to Posterous'>C# Send New Post to Posterous</a> <small>Posterous has a set of API for developer to call...</small></li>
<li><a href='http://www.ervinter.com/2009/11/16/microsoft-application-architecture-guide-2nd-edition-from-patterns-practices/' rel='bookmark' title='Permanent Link: Microsoft Application Architecture Guide 2nd Edition from Patterns &#038; Practices'>Microsoft Application Architecture Guide 2nd Edition from Patterns &#038; Practices</a> <small>Microsoft Patterns &amp; Practices released the 2nd edition of their...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ervinter.com/2009/11/12/asp-net-mvc-dropdownlist-and-html-attributes-%c2%ab-rob-conery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC &#8211; How to have multiple submit button in form</title>
		<link>http://www.ervinter.com/2009/09/25/asp-net-mvc-how-to-have-multiple-submit-button-in-form/</link>
		<comments>http://www.ervinter.com/2009/09/25/asp-net-mvc-how-to-have-multiple-submit-button-in-form/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 02:00:24 +0000</pubDate>
		<dc:creator>ervinter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp-net-mvc]]></category>

		<guid isPermaLink="false">http://www.ervinter.com/?p=495</guid>
		<description><![CDATA[In this tutorial, I would like to share simple form POST submit in ASP.NET MVC. The scenario is whenever your have have multiple submit button, you have to set each of the submit button value to be different. End result page in your home page will containing two button (Search and Save button) in the <a href="http://www.ervinter.com/2009/09/25/asp-net-mvc-how-to-have-multiple-submit-button-in-form/" class="more-link">More &#62;</a>


<strong>Related posts:</strong><ol><li><a href='http://www.ervinter.com/2009/09/24/asp-net-mvc-how-to-implement-querystring/' rel='bookmark' title='Permanent Link: ASP.NET MVC &#8211; How to implement querystring'>ASP.NET MVC &#8211; How to implement querystring</a> <small>In this tutorial, I would like to share with you...</small></li>
<li><a href='http://www.ervinter.com/2010/01/05/windows-7-godmode/' rel='bookmark' title='Permanent Link: Windows 7 GodMode'>Windows 7 GodMode</a> <small>There is a trick in Windows7 that enable you to...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, I would like to share simple form POST submit in ASP.NET MVC. The scenario is whenever your have have multiple submit button, you have to set each of the submit button value to be different.</p>
<p><span style="text-decoration: underline;">End result page in your home page will containing two button (Search and Save button) in the same form.</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000420090925094618.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000420090925094618.gif" border="0" alt="Photobucket" /></a></p>
<p><span style="text-decoration: underline;">Form above is rendered from HTML code behind as shown below</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000520090925094648.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000520090925094648.gif" border="0" alt="Photobucket" /></a></p>
<p><span style="text-decoration: underline;">Create a new controller named &#8220;ProductController&#8221; in controller folder; Create a new folder named &#8220;Product&#8221; in &#8220;Views&#8221; folder, following by adding two new views (Save.aspx and Search.aspx)</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000320090925094555.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000320090925094555.gif" border="0" alt="Photobucket" /></a></p>
<p><span style="text-decoration: underline;">Open up your &#8220;ProductController&#8221;, create three method as following (Edit, Search and Save)</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000220090925094534.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000220090925094534.gif" border="0" alt="Photobucket" /></a></p>
<p>You can download the sample code from <a href="http://www.box.net/shared/752dc818ea">here</a></p>


<p><strong>Related posts:</strong><ol><li><a href='http://www.ervinter.com/2009/09/24/asp-net-mvc-how-to-implement-querystring/' rel='bookmark' title='Permanent Link: ASP.NET MVC &#8211; How to implement querystring'>ASP.NET MVC &#8211; How to implement querystring</a> <small>In this tutorial, I would like to share with you...</small></li>
<li><a href='http://www.ervinter.com/2010/01/05/windows-7-godmode/' rel='bookmark' title='Permanent Link: Windows 7 GodMode'>Windows 7 GodMode</a> <small>There is a trick in Windows7 that enable you to...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ervinter.com/2009/09/25/asp-net-mvc-how-to-have-multiple-submit-button-in-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC &#8211; How to implement querystring</title>
		<link>http://www.ervinter.com/2009/09/24/asp-net-mvc-how-to-implement-querystring/</link>
		<comments>http://www.ervinter.com/2009/09/24/asp-net-mvc-how-to-implement-querystring/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 02:51:03 +0000</pubDate>
		<dc:creator>ervinter</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asp-net-mvc]]></category>

		<guid isPermaLink="false">http://www.ervinter.com/?p=485</guid>
		<description><![CDATA[In this tutorial, I would like to share with you on how to create a simple query string in ASP.NET MVC with a very simple product listing page. End result of the query string would look something like below http://localhost:1748/Product/Listing/Kitchen?page=4 or http://localhost:1748/Product/Listing/Kitchen In your Global.asax, add new route Create a new folder &#8220;Product&#8221; and create <a href="http://www.ervinter.com/2009/09/24/asp-net-mvc-how-to-implement-querystring/" class="more-link">More &#62;</a>


No related posts.]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, I would like to share with you on how to create a simple query string in ASP.NET MVC with a very simple product listing page. End result of the query string would look something like below</p>
<p>http://localhost:1748/<strong>Product/Listing/Kitchen?page=4</strong></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000220090924101803.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000220090924101803.gif" border="0" alt="Photobucket" /></a></p>
<p>or http://localhost:1748/<strong>Product/Listing/Kitchen</strong></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000120090924101744.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000120090924101744.gif" border="0" alt="Photobucket" /></a></p>
<p><span style="text-decoration: underline;">In your Global.asax, add new route</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000620090924101950.gif" target="_blank"><img style="border: 0px initial initial;" src="http://i5.photobucket.com/albums/y199/ervinter/000620090924101950.gif" border="0" alt="Photobucket" width="621" height="236" /></a></p>
<p><span style="text-decoration: underline;">Create a new folder &#8220;Product&#8221; and create a new view &#8220;Listing&#8221;</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000420090924101904.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000420090924101904.gif" border="0" alt="Photobucket" /></a></p>
<p><span style="text-decoration: underline;">In the content area, display product and page</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000520090924101918.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000520090924101918.gif" border="0" alt="Photobucket" /></a></p>
<p><span style="text-decoration: underline;">Create a new controller name &#8220;ProductController&#8221; and create a new method &#8220;Listing&#8221;</span></p>
<p><a href="http://s5.photobucket.com/albums/y199/ervinter/?action=view&amp;current=000320090924101840.gif" target="_blank"><img src="http://i5.photobucket.com/albums/y199/ervinter/000320090924101840.gif" border="0" alt="Photobucket" /></a></p>
<p>You can download the sample code <a href="http://www.box.net/shared/mvloyk78d8">here</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.ervinter.com/2009/09/24/asp-net-mvc-how-to-implement-querystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->