<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>EricDotNet</title>
	<atom:link href="http://ericdotnet.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericdotnet.wordpress.com</link>
	<description>My .net adventures</description>
	<lastBuildDate>Wed, 28 Dec 2011 09:02:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ericdotnet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>EricDotNet</title>
		<link>http://ericdotnet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ericdotnet.wordpress.com/osd.xml" title="EricDotNet" />
	<atom:link rel='hub' href='http://ericdotnet.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Haack Looks Back</title>
		<link>http://ericdotnet.wordpress.com/2011/12/28/haack-looks-back/</link>
		<comments>http://ericdotnet.wordpress.com/2011/12/28/haack-looks-back/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 09:02:47 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/2011/12/28/haack-looks-back/</guid>
		<description><![CDATA[Nice article on the Haacked&#8217;s blog (former MS employee !) on .net in 2011. http://haacked.com/archive/2011/12/26/oss-net-2011.aspx He missed a few obvious things, but the post has been edited since .<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=134&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nice article on the Haacked&#8217;s blog (former MS employee !) on .net in 2011.</p>
<p><a href="http://haacked.com/archive/2011/12/26/oss-net-2011.aspx">http://haacked.com/archive/2011/12/26/oss-net-2011.aspx</a></p>
<p>He missed a few obvious things, but the post has been edited since <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=134&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2011/12/28/haack-looks-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>
	</item>
		<item>
		<title>Mix 2011</title>
		<link>http://ericdotnet.wordpress.com/2011/04/13/mix-2011/</link>
		<comments>http://ericdotnet.wordpress.com/2011/04/13/mix-2011/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 19:12:04 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/?p=119</guid>
		<description><![CDATA[A lot of announcements and new stuff released at Mix 2011 ! Haacked.com has more news and of course Scott Hanselman has more info as well. The new tools will include modernizr to help asp.net mvc developer step into the age of css3.0 and html5. My favourite videos: http://tinyurl.com/mvcfavs<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=119&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A lot of announcements and new stuff released at <a href="http://live.visitmix.com/">Mix 2011</a> !</p>
<p><a href="http://haacked.com/archive/2011/04/12/introducing-asp-net-mvc-3-tools-update.aspx">Haacked.com</a> has more news and of course <a href="http://www.hanselman.com/blog/Mix11WebPlatformAndToolsKeynoteDemoScript.aspx">Scott Hanselman</a> has more info as well.</p>
<p>The new tools will include <a href="http://www.modernizr.com/">modernizr</a> to help asp.net mvc developer step into the age of css3.0 and html5.</p>
<p>My favourite videos: <a href="http://tinyurl.com/mvcfavs"><strong>http://tinyurl.com/mvcfavs</strong></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=119&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2011/04/13/mix-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.net MVC 2.0 around the corner</title>
		<link>http://ericdotnet.wordpress.com/2010/02/12/asp-net-mvc-2-0-around-the-corner/</link>
		<comments>http://ericdotnet.wordpress.com/2010/02/12/asp-net-mvc-2-0-around-the-corner/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 19:33:57 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/2010/02/12/asp-net-mvc-2-0-around-the-corner/</guid>
		<description><![CDATA[When you’re reading this article, the fact that Asp.net mvc 2.0 will be released soon won’t come as a surprise. Both Phil Haack and Scott Guthrie amongst others have been blogging about it. I started a new web project recently and was doing the input validation using Xval by Steve Sanderson. I made a leap [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=116&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you’re reading this article, the fact that Asp.net mvc 2.0 will be released soon won’t come as a surprise. Both <a href="http://haacked.com/">Phil Haack</a> and Scott Guthrie amongst <a href="http://bradwilson.typepad.com/blog/2010/01/input-validation-vs-model-validation-in-aspnet-mvc.html">others</a> have been blogging about it. I started a new web project recently and was doing the input validation using Xval by <a href="http://blog.stevensanderson.com/">Steve Sanderson</a>. I made a leap of faith and upgraded the project to MVC 2.0 because xval had some quirks (or actually the jquery validation plugin did). Luckily those were fixed by MVC’s new build in validation system. The Gu has <a href="http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx">an excellent post</a> on the subject. I am using the microsoft validation scripts for the client side, and they work very well, even taking culture settings into consideration out of the box.</p>
<p>There is a lot more to MVC 2.0, the templates are nicer. The Html.TextBoxFor(p =&gt; p.Id) is very handy, and make the input forms a lot easier to write. The ModelBinding seem to be much better now as well. With 1.0 I sometimes had to some of it by hand, as the binder didn’t grasp what it was supposed to bind. I haven’t run into that in 2.0.</p>
<p><a href="http://ericdotnet.files.wordpress.com/2010/02/mvc.png"><img style="display:block;float:none;margin-left:auto;margin-right:auto;border:0;" title="mvc" src="http://ericdotnet.files.wordpress.com/2010/02/mvc_thumb.png?w=244&#038;h=234" border="0" alt="mvc" width="244" height="234" /></a></p>
<p>The attributes for Actions / methods in your controller have been streamlined as well. You only need to put [HttpPost] over actions for Form Posts for example. One thing I haven’t used yet but might come in handy on a big project some day might be the Areas. <a href="http://odetocode.com/Blogs/scott/archive/2009/10/13/asp-net-mvc2-preview-2-areas-and-routes.aspx">OdeToCode</a> has a nice article on this new feature.</p>
<p>Over at <a href="http://www.tekpub.com/">TekPub</a>, Steve Sanderson and Rob Conery are doing an excellent series on MVC and are also going into the new things of 2.0. If you can spare $28,- I highly recommend watching it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=116&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2010/02/12/asp-net-mvc-2-0-around-the-corner/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>

		<media:content url="http://ericdotnet.files.wordpress.com/2010/02/mvc_thumb.png" medium="image">
			<media:title type="html">mvc</media:title>
		</media:content>
	</item>
		<item>
		<title>jqGrid Package</title>
		<link>http://ericdotnet.wordpress.com/2009/08/08/jqgrid-package/</link>
		<comments>http://ericdotnet.wordpress.com/2009/08/08/jqgrid-package/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 06:52:19 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[jqgrid]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/?p=110</guid>
		<description><![CDATA[A complete package is now available at http://www.jqgrid.com. This was mentioned in a comment on my post about jqgrid, but I thought it was worth a mention here . Enjoy !<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=110&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A complete package is now available at <a href="http://www.jqgrid.com">http://www.jqgrid.com</a>. This was mentioned in a comment on my post about jqgrid, but I thought it was worth a mention here <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Enjoy !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=110&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/08/08/jqgrid-package/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>
	</item>
		<item>
		<title>Devexpress Asp.net MVC Grid</title>
		<link>http://ericdotnet.wordpress.com/2009/06/22/devexpress-asp-net-mvc-grid/</link>
		<comments>http://ericdotnet.wordpress.com/2009/06/22/devexpress-asp-net-mvc-grid/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:53:09 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[devexpress]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/2009/06/22/devexpress-asp-net-mvc-grid/</guid>
		<description><![CDATA[At work we work with Devexpress components for our windows applications. And I have used some like the pivotgrid and the reporting tool in asp.net websites. They are very powerful, but sometimes hard to use. They have so many options and properties, it’s sometimes hard to find the right one. Last week the devexpress blog [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=106&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At work we work with Devexpress components for our windows applications. And I have used some like the pivotgrid and the reporting tool in asp.net websites. They are very powerful, but sometimes hard to use. They have so many options and properties, it’s sometimes hard to find the right one.</p>
<p>Last week the <a href="http://community.devexpress.com/blogs/ctodx/archive/2009/06/19/from-the-devexpress-labs-early-preview-of-asp-net-mvc-grid.aspx">devexpress blog</a> showed a screenshot of their upcoming asp.net mvc grid. It looks suspisciously like jQuery’s <a href="http://tablesorter.com/docs/">tablesorter</a> plugin. What wasn’t revealed though, is how this grid hooks up with the controller, what actions you have to implement etc. So I wonder how they’re going to implement the model ‘hookup’ so to speak.</p>
<p>I am not really anxious to get these kind of tools and components for asp.net mvc, as you can already do that stuff using jquery and your ORM of choice, but you never know, maybe they will come up with something nice, that isn’t overcomplicated and bloated <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p><strong>Update : </strong>Oops that last part suggest that the devexpress components are bloated, but I didn&#8217;t intend it that way. They can be a bit complicated to use though, but their support is always willing to send you a bit of example code if you&#8217;re stuck.</p>
<p>Anyway I just hope they come up with something that&#8217;s &#8216;in the spirit&#8217; of MVC, if you know what i mean !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=106&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/06/22/devexpress-asp-net-mvc-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>
	</item>
		<item>
		<title>Editing in jqGrid with asp.net mvc</title>
		<link>http://ericdotnet.wordpress.com/2009/05/02/editing-in-jqgrid-with-aspnet-mvc/</link>
		<comments>http://ericdotnet.wordpress.com/2009/05/02/editing-in-jqgrid-with-aspnet-mvc/#comments</comments>
		<pubDate>Sat, 02 May 2009 15:12:00 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[grid]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/2009/05/02/editing-in-jqgrid-with-aspnet-mvc/</guid>
		<description><![CDATA[Phil Haack already posted how to use the jQuery grid ‘jqgrid’ on his blog haacked.com. What wasn’t covered in that tutorial was editing, so I thought it would be nice to add that here. To be honest it gave me a bit of a headache, as I had created a sample table that had the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=104&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Phil Haack already posted how to use the jQuery grid ‘<a href="http://www.trirand.com/blog/">jqgrid</a>’ on <a href="http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx">his blog haacked.com</a>. What wasn’t covered in that tutorial was editing, so I thought it would be nice to add that here.</p>
<p>To be honest it gave me a bit of a headache, as I had created a sample table that had the ID column as primary key/autonumber field and jqgrid posts back an ID as well. Mind you, that is <strong>the ROWID</strong> and not the ID of your record. In a demo app. this can easily go unnoticed as those two are the same when you just add a few records.</p>
<p>After reading up in the docs, and trying to add an extra parameter to the save call (which accidently broke the whole grid), I simply added a hidden column that contains the primary key.</p>
<p>The table I used for this demo was a simple Employees table with an id, first and lastname.</p>
<p>Here’s what the javascript looks like:</p>
<div id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:eff178d7-1a16-47be-80ec-49a9d1e1dab8" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:#ffffff;white-space:pre-wrap;overflow:auto;"><span style="color:#000000;">   </span>var lastsel;
<span style="color:#000000;">   jQuery(</span><span style="color:#800000;">"</span><span style="color:#800000;">#list</span><span style="color:#800000;">"</span><span style="color:#000000;">).jqGrid({
      url: </span><span style="color:#800000;">'</span><span style="color:#800000;">/GridDemo/GetGridData</span><span style="color:#800000;">'</span><span style="color:#000000;">,
      datatype: </span><span style="color:#800000;">'</span><span style="color:#800000;">json</span><span style="color:#800000;">'</span><span style="color:#000000;">,
      mtype: </span><span style="color:#800000;">'</span><span style="color:#800000;">GET</span><span style="color:#800000;">'</span><span style="color:#000000;">,
      colNames: [</span><span style="color:#800000;">'</span><span style="color:#800000;">IdNr</span><span style="color:#800000;">'</span><span style="color:#000000;">,</span><span style="color:#800000;">'</span><span style="color:#800000;">Id</span><span style="color:#800000;">'</span><span style="color:#000000;">, </span><span style="color:#800000;">'</span><span style="color:#800000;">FirstName</span><span style="color:#800000;">'</span><span style="color:#000000;">, </span><span style="color:#800000;">'</span><span style="color:#800000;">LastName</span><span style="color:#800000;">'</span><span style="color:#000000;">],
      colModel: [
          { name: </span><span style="color:#800000;">'</span><span style="color:#800000;">IdNr</span><span style="color:#800000;">'</span><span style="color:#000000;">, index: </span><span style="color:#800000;">'</span><span style="color:#800000;">IdNr</span><span style="color:#800000;">'</span><span style="color:#000000;">, width: </span><span style="color:#800080;">40</span><span style="color:#000000;">, align: </span><span style="color:#800000;">'</span><span style="color:#800000;">left</span><span style="color:#800000;">'</span><span style="color:#000000;">,
              editable: </span><span style="color:#0000ff;">true</span><span style="color:#000000;">, editrules: { edithidden: </span><span style="color:#0000ff;">true</span><span style="color:#000000;"> }, hidden: </span><span style="color:#0000ff;">true</span><span style="color:#000000;"> },
          { name: </span><span style="color:#800000;">'</span><span style="color:#800000;">Id</span><span style="color:#800000;">'</span><span style="color:#000000;">, index: </span><span style="color:#800000;">'</span><span style="color:#800000;">Id</span><span style="color:#800000;">'</span><span style="color:#000000;">, width: </span><span style="color:#800080;">40</span><span style="color:#000000;">, align: </span><span style="color:#800000;">'</span><span style="color:#800000;">left</span><span style="color:#800000;">'</span><span style="color:#000000;">,
              editable: </span><span style="color:#0000ff;">false</span><span style="color:#000000;"> },
          { name: </span><span style="color:#800000;">'</span><span style="color:#800000;">FirstName</span><span style="color:#800000;">'</span><span style="color:#000000;">, index: </span><span style="color:#800000;">'</span><span style="color:#800000;">FirstName</span><span style="color:#800000;">'</span><span style="color:#000000;">, width: </span><span style="color:#800080;">200</span><span style="color:#000000;">, align: </span><span style="color:#800000;">'</span><span style="color:#800000;">left</span><span style="color:#800000;">'</span><span style="color:#000000;">, editable: </span><span style="color:#0000ff;">true</span><span style="color:#000000;">, edittype: </span><span style="color:#800000;">'</span><span style="color:#800000;">text</span><span style="color:#800000;">'</span><span style="color:#000000;">, editoptions: { size: </span><span style="color:#800080;">20</span><span style="color:#000000;">, maxlength: </span><span style="color:#800080;">30</span><span style="color:#000000;">} },
          { name: </span><span style="color:#800000;">'</span><span style="color:#800000;">LastName</span><span style="color:#800000;">'</span><span style="color:#000000;">, index: </span><span style="color:#800000;">'</span><span style="color:#800000;">LastName</span><span style="color:#800000;">'</span><span style="color:#000000;">, width: </span><span style="color:#800080;">300</span><span style="color:#000000;">, align: </span><span style="color:#800000;">'</span><span style="color:#800000;">left</span><span style="color:#800000;">'</span><span style="color:#000000;">, editable: </span><span style="color:#0000ff;">true</span><span style="color:#000000;">, edittype: </span><span style="color:#800000;">'</span><span style="color:#800000;">text</span><span style="color:#800000;">'</span><span style="color:#000000;">, editoptions: { size: </span><span style="color:#800080;">20</span><span style="color:#000000;">, maxlength: </span><span style="color:#800080;">30</span><span style="color:#000000;">}}],
      onSelectRow: function(id) {
        </span><span style="color:#0000ff;">if</span><span style="color:#000000;"> (id </span><span style="color:#000000;">&amp;&amp;</span><span style="color:#000000;"> id </span><span style="color:#000000;">!==</span><span style="color:#000000;"> lastsel) {
          jQuery(</span><span style="color:#800000;">'</span><span style="color:#800000;">#list</span><span style="color:#800000;">'</span><span style="color:#000000;">).restoreRow(lastsel);
          jQuery(</span><span style="color:#800000;">'</span><span style="color:#800000;">#list</span><span style="color:#800000;">'</span><span style="color:#000000;">).editRow(id, </span><span style="color:#0000ff;">true</span><span style="color:#000000;">);
          lastsel </span><span style="color:#000000;">=</span><span style="color:#000000;"> id;
        }
      },
      editurl: </span><span style="color:#800000;">"</span><span style="color:#800000;">/GridDemo/GridSave</span><span style="color:#800000;">"</span><span style="color:#000000;">,
      pager: jQuery(</span><span style="color:#800000;">'</span><span style="color:#800000;">#pager</span><span style="color:#800000;">'</span><span style="color:#000000;">),
      rowNum: </span><span style="color:#800080;">10</span><span style="color:#000000;">,
      rowList: [</span><span style="color:#800080;">5</span><span style="color:#000000;">, </span><span style="color:#800080;">10</span><span style="color:#000000;">, </span><span style="color:#800080;">20</span><span style="color:#000000;">, </span><span style="color:#800080;">50</span><span style="color:#000000;">],
      sortname: </span><span style="color:#800000;">'</span><span style="color:#800000;">Id</span><span style="color:#800000;">'</span><span style="color:#000000;">,
      sortorder: </span><span style="color:#800000;">"</span><span style="color:#800000;">desc</span><span style="color:#800000;">"</span><span style="color:#000000;">,
      viewrecords: </span><span style="color:#0000ff;">true</span><span style="color:#000000;">,
      imgpath: </span><span style="color:#800000;">'</span><span style="color:#800000;">/content/themes/steel/images</span><span style="color:#800000;">'</span><span style="color:#000000;">,
      caption: </span><span style="color:#800000;">'</span><span style="color:#800000;">Employees</span><span style="color:#800000;">'</span><span style="color:#000000;">
    });
  });     </span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></p>
</div>
<p>The IdNr is the hidden field, with the edithidden: true editrules you make sure it gets posted once a row has been edited. I choose for inline editing, there are other forms of editing in <a href="http://www.secondpersonplural.ca/jqgriddocs/index.htm">the jqgriddocs</a>.</p>
<p>As you can see the editurl is where the data that has been edited will be posted to. That controller action looks like this (using linq2sql, but ofcourse any type of model will do) :</p>
<div id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:15ef302b-ab56-4da5-9ca8-5a7ae9cb9619" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:#ffffff;white-space:pre-wrap;overflow:auto;"><span style="color:#0000ff;">public</span><span style="color:#000000;"> ActionResult GridSave(</span><span style="color:#0000ff;">int</span><span style="color:#000000;"> id,</span><span style="color:#0000ff;">int</span><span style="color:#000000;"> idnr, </span><span style="color:#0000ff;">string</span><span style="color:#000000;"> firstName, </span><span style="color:#0000ff;">string</span><span style="color:#000000;"> lastName)
{
  jQueryGridModelDataContext db </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000ff;">new</span><span style="color:#000000;"> jQueryGridModelDataContext();

  Employee e </span><span style="color:#000000;">=</span><span style="color:#000000;"> db.Employees.SingleOrDefault(p </span><span style="color:#000000;">=&gt;</span><span style="color:#000000;"> p.ID </span><span style="color:#000000;">==</span><span style="color:#000000;"> idnr);
  </span><span style="color:#0000ff;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#000000;">(e </span><span style="color:#000000;">==</span><span style="color:#000000;"> </span><span style="color:#0000ff;">null</span><span style="color:#000000;">))
  {
      e.FirstName </span><span style="color:#000000;">=</span><span style="color:#000000;"> firstName;
      e.LastName </span><span style="color:#000000;">=</span><span style="color:#000000;"> lastName;
      db.SubmitChanges();
      </span><span style="color:#0000ff;">return</span><span style="color:#000000;"> Content(</span><span style="color:#800000;">"</span><span style="color:#800000;">true</span><span style="color:#800000;">"</span><span style="color:#000000;">);
  }
  </span><span style="color:#0000ff;">else</span><span style="color:#000000;">
  {
      </span><span style="color:#0000ff;">return</span><span style="color:#000000;"> Content(</span><span style="color:#800000;">"</span><span style="color:#800000;">false</span><span style="color:#800000;">"</span><span style="color:#000000;">);
  }
}</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></p>
</div>
<p>And that’s it, your grid now has editing functionality ! Ofcourse some validation is required in the GridSave function. The javascript could use the callback function after saving and check for the true or false that gets returned from the GridSave action.</p>
<p>Let me know in the comments if you have any questions or if I made some sort of horrible mistake <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fericdotnet.wordpress.com%2f2009%2f05%2f02%2fediting-in-jqgrid-with-aspnet-mvc%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fericdotnet.wordpress.com%2f2009%2f05%2f02%2fediting-in-jqgrid-with-aspnet-mvc%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=104&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/05/02/editing-in-jqgrid-with-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fericdotnet.wordpress.com%2f2009%2f05%2f02%2fediting-in-jqgrid-with-aspnet-mvc%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery Search box and Asp.net MVC</title>
		<link>http://ericdotnet.wordpress.com/2009/04/09/jquery-search-box-and-aspnet-mvc/</link>
		<comments>http://ericdotnet.wordpress.com/2009/04/09/jquery-search-box-and-aspnet-mvc/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 12:49:22 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/2009/04/09/jquery-search-box-and-aspnet-mvc/</guid>
		<description><![CDATA[This is a simple run through on how to create a fancy search box, that has suggestions underneath the input box, and that also can do autocomplete. For this example I used the Chinook database from codeplex and the Artists table and the autocomplete jquery plug-in that you can find at pengoworks.com. There are plenty [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=98&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a simple run through on how to create a fancy search box, that has suggestions underneath the input box, and that also can do autocomplete. For this example I used the <a href="http://www.codeplex.com/ChinookDatabase">Chinook database from codeplex</a> and the Artists table and the autocomplete jquery plug-in that you can find at <a href="http://www.pengoworks.com/workshop/jquery/autocomplete.htm">pengoworks.com</a>.</p>
<p>There are plenty of jQuery plug-ins that do the same thing, I picked this one as it’s very easy to use. As <a href="http://www.pengoworks.com/workshop/jquery/autocomplete_docs.txt">the docs</a> show, the only thing you need to do is hook your input text box up to autocomplete and provide the url where it gets it’s data from. The view looks like this.</p>
<div id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:4072a427-4995-4f19-adc0-59365cbad4ff" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:#FFFFFF;white-space:pre-wrap;overflow:auto;"><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">asp:Content </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">="headerContent"</span><span style="color:#FF0000;"> ContentPlaceHolderID </span><span style="color:#0000FF;">="headerPlaceHolder"</span><span style="color:#FF0000;"> runat </span><span style="color:#0000FF;">="server"</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">script </span><span style="color:#FF0000;">type</span><span style="color:#0000FF;">="text/javascript"</span><span style="color:#FF0000;"> src</span><span style="color:#0000FF;">="../../Scripts/jquery.autocomplete.js"</span><span style="color:#0000FF;">&gt;&lt;/</span><span style="color:#800000;">script</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">link </span><span style="color:#FF0000;">href</span><span style="color:#0000FF;">="../../Content/jquery.autocomplete.css"</span><span style="color:#FF0000;"> rel</span><span style="color:#0000FF;">="stylesheet"</span><span style="color:#FF0000;"> type</span><span style="color:#0000FF;">="text/css"</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">

  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">script </span><span style="color:#FF0000;">type</span><span style="color:#0000FF;">="text/javascript"</span><span style="color:#0000FF;">&gt;</span><span style="background-color:#F5F5F5;color:#000000;">

    $(document).ready(</span><span style="background-color:#F5F5F5;color:#0000FF;">function</span><span style="background-color:#F5F5F5;color:#000000;">() {
      $(</span><span style="background-color:#F5F5F5;color:#000000;">"</span><span style="background-color:#F5F5F5;color:#000000;">#searchTerm</span><span style="background-color:#F5F5F5;color:#000000;">"</span><span style="background-color:#F5F5F5;color:#000000;">).autocomplete(</span><span style="background-color:#F5F5F5;color:#000000;">"</span><span style="background-color:#F5F5F5;color:#000000;">/Artists/getAjaxResult/</span><span style="background-color:#F5F5F5;color:#000000;">"</span><span style="background-color:#F5F5F5;color:#000000;">);
    });

  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">script</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">asp:Content</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">

</span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">asp:Content </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">="Content2"</span><span style="color:#FF0000;"> ContentPlaceHolderID</span><span style="color:#0000FF;">="MainContent"</span><span style="color:#FF0000;"> runat</span><span style="color:#0000FF;">="server"</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">

    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">h2</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">Look for an artist</span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">h2</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">

    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">form </span><span style="color:#FF0000;">action</span><span style="color:#0000FF;">="/Artists/Search"</span><span style="color:#FF0000;"> method</span><span style="color:#0000FF;">="post"</span><span style="color:#FF0000;"> id</span><span style="color:#0000FF;">="searchForm"</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
      </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">input </span><span style="color:#FF0000;">type</span><span style="color:#0000FF;">="text"</span><span style="color:#FF0000;"> name</span><span style="color:#0000FF;">="searchTerm"</span><span style="color:#FF0000;"> id</span><span style="color:#0000FF;">="searchTerm"</span><span style="color:#FF0000;"> value</span><span style="color:#0000FF;">=""</span><span style="color:#FF0000;"> size</span><span style="color:#0000FF;">="10"</span><span style="color:#FF0000;"> maxlength </span><span style="color:#0000FF;">="30"</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
      </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">input </span><span style="color:#FF0000;">type </span><span style="color:#0000FF;">="submit"</span><span style="color:#FF0000;"> value</span><span style="color:#0000FF;">="Search"</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">form</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">br </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">

</span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">asp:Content</span><span style="color:#0000FF;">&gt;</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>As you can see I usually have a container in the header of the master page where javascript and custom css files go. Note that you should use the<em> Url.Content method</em> so you get the proper urls when you deploy this on a ‘real server’.</p>
<p>Now for the backend, we need an action that returns a string of results to the autocomplete call.</p>
<div id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:1f64ab81-53e7-4743-8f62-8ab0c3184a7e" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:#FFFFFF;white-space:pre-wrap;overflow:auto;"><span style="color:#000000;">        </span><span style="color:#0000FF;">public</span><span style="color:#000000;"> ActionResult getAjaxResult(</span><span style="color:#0000FF;">string</span><span style="color:#000000;"> q)
        {

            </span><span style="color:#0000FF;">string</span><span style="color:#000000;"> searchResult </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">string</span><span style="color:#000000;">.Empty;

            var artists </span><span style="color:#000000;">=</span><span style="color:#000000;"> (from a </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> _db.Artists
                           </span><span style="color:#0000FF;">where</span><span style="color:#000000;"> a.Name.Contains(q)
                           orderby a.Name
                           select a).Take(</span><span style="color:#800080;">10</span><span style="color:#000000;">);

            </span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (Artist a </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> artists) {
                searchResult </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">string</span><span style="color:#000000;">.Format(</span><span style="color:#800000;">"</span><span style="color:#800000;">{0}|\r\n</span><span style="color:#800000;">"</span><span style="color:#000000;">, a.Name);
            }

            </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> Content(searchResult);
        }</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>By using linq to sql I get the top 10 results from the database from the Artists table and return that as a string to the autocomplete call. The user’s input string is a string called q that is put into the action as a url parameter like this: <strong>artists/getAjaxResult/?q=symphony. </strong>In order to make that work, you need to add a route to the routes table.</p>
<div id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:41019e7a-ff43-4209-9d31-7e70ae7fed70" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:#FFFFFF;white-space:pre-wrap;overflow:auto;"><span style="color:#000000;">
            routes.MapRoute(
                </span><span style="color:#800000;">"</span><span style="color:#800000;">ArtistSearch</span><span style="color:#800000;">"</span><span style="color:#000000;">,
                </span><span style="color:#800000;">"</span><span style="color:#800000;">Artists/Search/{searchTerm}</span><span style="color:#800000;">"</span><span style="color:#000000;">,
                </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> { controller </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">Artists</span><span style="color:#800000;">"</span><span style="color:#000000;">, action </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">Search</span><span style="color:#800000;">"</span><span style="color:#000000;">,
                            searchTerm </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">""</span><span style="color:#000000;"> }
            );
            routes.MapRoute(
                </span><span style="color:#800000;">"</span><span style="color:#800000;">ArtistAjaxSearch</span><span style="color:#800000;">"</span><span style="color:#000000;">,
                </span><span style="color:#800000;">"</span><span style="color:#800000;">Artists/getAjaxResult/</span><span style="color:#800000;">"</span><span style="color:#000000;">,
                </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> { controller </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">Artists</span><span style="color:#800000;">"</span><span style="color:#000000;">, action </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">getAjaxResult</span><span style="color:#800000;">"</span><span style="color:#000000;"> }
            );</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The first route is used once the user has pressed the submit button, the ArtistAjaxSearch is used for the autocomplete script.</p>
<p>So what happens when the user presses the submit button, whether or not he picked an item from the autocomplete results ?</p>
<div id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:c03f2417-545f-4420-929d-634ceeebb909" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:#FFFFFF;white-space:pre-wrap;overflow:auto;"><span style="color:#000000;">        [AcceptVerbs(HttpVerbs.Post)]
        </span><span style="color:#0000FF;">public</span><span style="color:#000000;"> ActionResult Search(</span><span style="color:#0000FF;">string</span><span style="color:#000000;"> searchTerm)
        {
            </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (searchTerm </span><span style="color:#000000;">==</span><span style="color:#000000;"> </span><span style="color:#0000FF;">string</span><span style="color:#000000;">.Empty)
            {
                </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> View();
            }
            </span><span style="color:#0000FF;">else</span><span style="color:#000000;">
            {
                </span><span style="color:#008000;">//</span><span style="color:#008000;"> if the search contains only one result return details
                </span><span style="color:#008000;">//</span><span style="color:#008000;"> otherwise a list</span><span style="color:#008000;">
</span><span style="color:#000000;">                var artists </span><span style="color:#000000;">=</span><span style="color:#000000;"> from a </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> _db.Artists
                              </span><span style="color:#0000FF;">where</span><span style="color:#000000;"> a.Name.Contains(searchTerm)
                              orderby a.Name
                              select a;

                </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (artists.Count() </span><span style="color:#000000;">==</span><span style="color:#000000;"> </span><span style="color:#800080;">0</span><span style="color:#000000;">) {
                    </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> View(</span><span style="color:#800000;">"</span><span style="color:#800000;">notfound</span><span style="color:#800000;">"</span><span style="color:#000000;">);
                }

                </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (artists.Count() </span><span style="color:#000000;">&gt;</span><span style="color:#000000;"> </span><span style="color:#800080;">1</span><span style="color:#000000;">)
                {
                    </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> View(</span><span style="color:#800000;">"</span><span style="color:#800000;">List</span><span style="color:#800000;">"</span><span style="color:#000000;">, artists);
                }
                </span><span style="color:#0000FF;">else</span><span style="color:#000000;">
                {
                    </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> RedirectToAction(</span><span style="color:#800000;">"</span><span style="color:#800000;">Details</span><span style="color:#800000;">"</span><span style="color:#000000;">,
                        </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> { id </span><span style="color:#000000;">=</span><span style="color:#000000;"> artists.First().ArtistId });
                }
            }
        }</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>As you can see, when a single result is found the details view is shown to the user, by using a redirect to the details method. If there is more than one result, the list of artists is shown. When nothing is found, a simple message is shown. You can of course move the search term to that view as well, to show the user what input he did etc., but that is straightforward stuff.</p>
<p>Another way to do this, would be to insert the artist table as an array and let the autocomplete script use those values for it’s magic, all on the client side. This would be doable as long as that table wouldn’t get too long. If there are 1000s of records, this wouldn’t be a very good solution <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Hope this helps someone out there <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , feel free to add any comments or questions !</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fericdotnet.wordpress.com%2f2009%2f04%2f09%2fjquery-search-box-and-aspnet-mvc%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fericdotnet.wordpress.com%2f2009%2f04%2f09%2fjquery-search-box-and-aspnet-mvc%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=98&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/04/09/jquery-search-box-and-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fericdotnet.wordpress.com%2f2009%2f04%2f09%2fjquery-search-box-and-aspnet-mvc%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery-Ui Tabs and Asp.net MVC</title>
		<link>http://ericdotnet.wordpress.com/2009/03/17/jquery-ui-tabs-and-aspnet-mvc/</link>
		<comments>http://ericdotnet.wordpress.com/2009/03/17/jquery-ui-tabs-and-aspnet-mvc/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:12:24 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery-ui]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/?p=80</guid>
		<description><![CDATA[Clay made a comment on my previous post and asked how I would use asp.net mvc with jQuery-UI&#8217;s tabs. I have slapped together an example project that shows how you could implement the tabs in an asp.net mvc web site. I created an ajax and a regular tab example. Basically I use a partial view [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=80&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Clay made a comment on my previous post and asked how I would use asp.net mvc with <a href="http://jqueryui.com/demos/tabs/">jQuery-UI&#8217;s tabs</a>. I have slapped together an example project that shows how you could implement the tabs in an asp.net mvc web site. I created an ajax and a regular tab example.</p>
<div id="attachment_92" class="wp-caption aligncenter" style="width: 310px"><a href="http://ericdotnet.files.wordpress.com/2009/03/tabexample1.png"><img class="size-medium wp-image-92" title="Tab Example" src="http://ericdotnet.files.wordpress.com/2009/03/tabexample1.png?w=300&#038;h=204" alt="Tab Example jQueryUi" width="300" height="204" /></a><p class="wp-caption-text">Tab Example jQueryUi</p></div>
<p>Basically I use a partial view for each tab. This partial view is then also used for the ajax response.</p>
<p><pre class="brush: xml;">
&lt;div id=&quot;tabs&quot;&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;#tabs-1&quot;&gt;Text 1&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#tabs-2&quot;&gt;Text 2&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#tabs-3&quot;&gt;Text 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div id=&quot;tabs-1&quot;&gt;
            &lt; % Html.RenderPartial(&quot;_tab1&quot;, Model);  %&gt;&lt;/div&gt;
&lt;div id=&quot;tabs-2&quot;&gt;
	        &lt; % Html.RenderPartial(&quot;_tab2&quot;, Model);  %&gt;&lt;/div&gt;
&lt;div id=&quot;tabs-3&quot;&gt;
	        &lt; % Html.RenderPartial(&quot;_tab3&quot;, Model);  %&gt;&lt;/div&gt;
&lt;/div&gt;
</pre></p>
<p>There is no database access in the example project, I sort of simulated a database by using a service model that provides the viewmodel that holds the texts that are displayed in the three tabs.</p>
<p>Regarding the ajax controller method, it would of course be better to not get the entire viewmodel in a real world situation and then pass that on to the view, but since this is a brief demo I thought I could get away with this in this example <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p><pre class="brush: csharp;">

        public ActionResult getAjaxTab(int id)
        {
            string viewName = string.Empty;

            TabExample.Services.tabTextService serv = new TabExample.Services.tabTextService();
            tabViewModel myModel = serv.getTabViewModel();

            switch (id)
            {
                case 1:
                    viewName = &quot;_tab1&quot;;
                    break;
                case 2:
                    viewName = &quot;_tab2&quot;;
                    break;
                case 3:
                    viewName = &quot;_tab3&quot;;
                    break;
                default:
                    viewName = &quot;_error&quot;;
                    break;
            }

            System.Threading.Thread.Sleep(1000);   

            return PartialView(viewName, myModel);
        }

</pre></p>
<p>I am using this js function to update the tabs.</p>
<p><pre class="brush: jscript;">

        function getContentTab(index) {
            var url='&lt; %= Url.Content(&quot;~/Home/getAjaxTab&quot;) %&gt;/' + index;
            var targetDiv = &quot;#tabs-&quot; + index;
            var ajaxLoading = &quot;&lt;img id='ajax-loader' src='&lt;%= Url.Content(&quot;~/Content&quot;) %/&gt;/ajax-loader.gif' align='left' height='28' width='28'&gt;&quot;;

            $(targetDiv).html(&quot;
&quot; + ajaxLoading + &quot; Loading...
&quot;); 

            $.get(url,null, function(result) {
                $(targetDiv).html(result);
            });
        }

</pre></p>
<p>There is a <a href="http://jqueryui.com/demos/tabs/#event-select">select event</a> on the tabs that you can hook into as well, I just find it easier to just use the onclick event of the tab div&#8217;s.</p>
<p>Hope this is some help to anybody out there, it was fun to create this small project. If anyone has any suggestions, or questions let me know in the comments !</p>
<p><a href="http://www.sobaseki.com/downloads/TabExample.zip">Download TabExample Project Link</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=80&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/03/17/jquery-ui-tabs-and-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>54</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>

		<media:content url="http://ericdotnet.files.wordpress.com/2009/03/tabexample1.png?w=300" medium="image">
			<media:title type="html">Tab Example</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery-ui 1.7 and Asp.net MVC</title>
		<link>http://ericdotnet.wordpress.com/2009/03/06/jquery-ui-17-and-aspnet-mvc/</link>
		<comments>http://ericdotnet.wordpress.com/2009/03/06/jquery-ui-17-and-aspnet-mvc/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 14:09:18 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery-ui]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/?p=69</guid>
		<description><![CDATA[The news of a new jQuery-ui 1.7 release came in through twitter ! The asp.net mvc application I am working on at the moment uses various jquery-ui things, like the accordeon and the datepicker, and some of the icons, but it was a bit messy to actually get it to work. Some of the images [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=69&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The news of a <a href="http://blog.jqueryui.com/">new jQuery-ui 1.7</a> release came in <a href="http://twitter.com/jqueryui">through twitter</a> ! The asp.net mvc application I am working on at the moment uses various jquery-ui things, like the accordeon and the datepicker, and some of the icons, but it was a bit messy to actually get it to work. Some of the images were named wrong and the paths didn&#8217;t quite work.</p>
<p>The Content and Script folder had become a big mess as well. Luckily with 1.7 that has all passed, I removed the previous version and all images, and inserted the 1.7 smoothness theme. Changed the css and jquery ui calls in the master view and it worked out of the box ! No need to hack around anymore, no image renaming etc&#8230; Gratz to the jQuery-ui team for delivering such a nice product.</p>
<p><pre class="brush: xml;">
	&lt;link href=&quot;../../Content/Site.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
	&lt;link href=&quot;../../Content/Theme_Red/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
	&lt;link href=&quot;../../Content/jquery-ui.custom.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;

</pre></p>
<p>If you want to make any changes to the ui, for example I added some padding to the ui-state-error and ui-state-highlight classes, make sure to put them in a seperate file and load them after the included jquery-ui.css file. That way if you change themes or if there is an update, your changes will remain.</p>
<p style="text-align:center;">
<div id="attachment_71" class="wp-caption aligncenter" style="width: 558px"><a href="http://ericdotnet.files.wordpress.com/2009/03/w-winkel.png"></a><a href="http://ericdotnet.files.wordpress.com/2009/03/w-winkel1.png"><img class="size-full wp-image-74" title="w-winkel1" src="http://ericdotnet.files.wordpress.com/2009/03/w-winkel1.png?w=600" alt="w-winkel1"   /></a><p class="wp-caption-text">jQuery UI in action</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=69&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/03/06/jquery-ui-17-and-aspnet-mvc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>

		<media:content url="http://ericdotnet.files.wordpress.com/2009/03/w-winkel1.png" medium="image">
			<media:title type="html">w-winkel1</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Font-Size and Font</title>
		<link>http://ericdotnet.wordpress.com/2009/03/01/css-font-size-and-font/</link>
		<comments>http://ericdotnet.wordpress.com/2009/03/01/css-font-size-and-font/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 10:37:49 +0000</pubDate>
		<dc:creator>ericdotnet</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://ericdotnet.wordpress.com/?p=66</guid>
		<description><![CDATA[There is an odd issue with font-size: and font: in css. I am using the cutline pro 1.4 theme on my eve-blog, and edited the comment section of that theme. IE8 and Google Chrome both showed the fonts real small where as Firefox 3 picked it up the way I intended. Turns out the font: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=66&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is an odd issue with font-size: and font: in css. I am using the cutline pro 1.4 theme on my eve-blog, and edited the comment section of that theme. IE8 and Google Chrome both showed the fonts real small where as Firefox 3 picked it up the way I intended. Turns out the font: description was not overwritten by font-size in the css file.</p>
<p><strong>Original</strong><br />
<pre class="brush: css;">
body {
     font: 62.5% Georgia, &quot;Times New Roman&quot;, Times, serif; 
}

comment {
      font-size: 1.4em;
}
</pre></p>
<p>Cleaned up:<br />
<pre class="brush: css;">
body {
	font-size: 62.5%;
	font-family: Georgia, &quot;Times New Roman&quot;, Times, serif; 
}
</pre></p>
<p>And now it&#8217;s fixed <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericdotnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericdotnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericdotnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericdotnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericdotnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericdotnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericdotnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericdotnet.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericdotnet.wordpress.com&amp;blog=953062&amp;post=66&amp;subd=ericdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericdotnet.wordpress.com/2009/03/01/css-font-size-and-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5a0f3d36a591e41b7dadd07c5f182a51?s=96&#38;d=identicon&#38;r=PG" medium="image">
			<media:title type="html">ericdotnet</media:title>
		</media:content>
	</item>
	</channel>
</rss>
