<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Alex Campbell&amp;#39;s Technology Weblog</title><link>http://weblogs.asp.net/acampbell/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Chop or Champion - Sport opinion website using ASP.Net MVC, ADO.Net Data Entities, and JQuery AJAX</title><link>http://weblogs.asp.net/acampbell/archive/2009/05/31/chop-or-champion-sport-opinion-website-using-asp-net-mvc-ado-net-data-entities-and-jquery-ajax.aspx</link><pubDate>Sun, 31 May 2009 10:06:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7104066</guid><dc:creator>alexcampbell</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/acampbell/rsscomments.aspx?PostID=7104066</wfw:commentRss><comments>http://weblogs.asp.net/acampbell/archive/2009/05/31/chop-or-champion-sport-opinion-website-using-asp-net-mvc-ado-net-data-entities-and-jquery-ajax.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I've just launched my first website using two very interesting new Microsoft technologies - ASP.Net MVC and ADO.Net Data Entities. It's called &lt;A href="http://www.choporchampion.com/" mce_href="http://www.choporchampion.com"&gt;Chop or Champion&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Since I no longer do software development on a day to day basis, it's not easy&amp;nbsp;for me to get back into the swing of it. This project has been a lot easier, since I absolutely love MVC. I always found Webforms a bit clunky and&amp;nbsp;too loosely coupled. Codebehinds suck. For me, MVC makes development fun for the first time in years.&lt;/P&gt;
&lt;P mce_keep="true"&gt;When you combine MVC with the ADO.Net Data Entity framework, you get a very efficient development environment. My only complaint is that adding/removing columns and then refreshing the data model seems to break everything. But this is easily fixed by deleting and recreating the data model in Visual Studio.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Some parts of the site have a pretty complex data model. I had never used LINQ before when I started this project, so there was a pretty steep learning curve. It took a while to figure out how to do things like nested subqueries and complex joins, sorting by subqueries etc. I nearly resorted to using Views a few times when I couldn't figure out how to do these things, but in the end I was able to get the LINQ right. So there is absolutely no raw SQL in the project at all.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Overall, I would highly recommend this as the model for future ASP.Net web development.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7104066" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/acampbell/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/acampbell/archive/tags/ajax/default.aspx">ajax</category><category domain="http://weblogs.asp.net/acampbell/archive/tags/Data+Entities/default.aspx">Data Entities</category><category domain="http://weblogs.asp.net/acampbell/archive/tags/MVC/default.aspx">MVC</category></item><item><title>LinkButtons in UpdatePanel cause full postback unless you give them IDs</title><link>http://weblogs.asp.net/acampbell/archive/2008/03/08/linkbuttons-in-updatepanel-cause-full-postback-unless-you-give-them-ids.aspx</link><pubDate>Sun, 09 Mar 2008 01:25:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5940021</guid><dc:creator>alexcampbell</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/acampbell/rsscomments.aspx?PostID=5940021</wfw:commentRss><comments>http://weblogs.asp.net/acampbell/archive/2008/03/08/linkbuttons-in-updatepanel-cause-full-postback-unless-you-give-them-ids.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;After tearing my hair out for half an hour, I have just figured out the painfully simple solution to a frustrating problem with UpdatePanels,Repeaters and LinkButtons.&lt;/P&gt;
&lt;P mce_keep="true"&gt;The scenario: you have a Repeater in an UpdatePanel with LinkButtons in each RepeaterItem.&amp;nbsp; The LinkButtons fire Repeater.ItemCommand.&amp;nbsp; The problem is that every time you click on the LinkButton the page does a full postback - defeating the purpose of the UpdatePanel.&lt;/P&gt;
&lt;P mce_keep="true"&gt;The solution: put IDs on your LinkButtons.&amp;nbsp; All of a sudden your LinkButtons are firing nice async partial-page postbacks.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5940021" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/acampbell/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/acampbell/archive/tags/ajax/default.aspx">ajax</category></item><item><title>Facebook says getfirefox.com</title><link>http://weblogs.asp.net/acampbell/archive/2008/03/02/facebook-says-getfirefox-com.aspx</link><pubDate>Sun, 02 Mar 2008 09:24:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5900641</guid><dc:creator>alexcampbell</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/acampbell/rsscomments.aspx?PostID=5900641</wfw:commentRss><comments>http://weblogs.asp.net/acampbell/archive/2008/03/02/facebook-says-getfirefox-com.aspx#comments</comments><description>&lt;P&gt;I was just checking out how something works in Facebook's IE7 stylesheet, and found the first few lines amusing:&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; ------------------------------------------------------------------------&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facebook | IE7/PC Hacks | getfirefox.com&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------------------------------&amp;nbsp; */&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5900641" width="1" height="1"&gt;</description></item></channel></rss>