<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-570100475205624561</id><updated>2010-07-05T21:22:42.513-07:00</updated><title type='text'>Andy The's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.andythe.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default?orderby=updated'/><link rel='alternate' type='text/html' href='http://www.andythe.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-5439404379386663129</id><published>2009-10-24T11:40:00.001-07:00</published><updated>2010-07-05T21:22:16.411-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linq'/><title type='text'>Output your SQL when using Linq in ASP.NET</title><content type='html'>&lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/SuNKLt8yYRI/AAAAAAAAAVU/sgZvHSKnxoE/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_pjBBSqDqE68/SuNKLyi7bPI/AAAAAAAAAVY/n_0Z3umOzu0/image_thumb%5B1%5D.png?imgmax=800" width="583" height="462"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;I used both Linq Data Source and straight Linq.&lt;/p&gt; &lt;p&gt;using System; &lt;br&gt;using System.Collections.Generic; &lt;br&gt;using System.Linq; &lt;br&gt;using System.Web; &lt;br&gt;using System.Web.UI; &lt;br&gt;using System.Web.UI.WebControls; &lt;br&gt;using System.IO; &lt;/p&gt; &lt;p&gt;public partial class _Default : System.Web.UI.Page &lt;br&gt;{ &lt;br&gt;StringWriter sw = new StringWriter(); &lt;br&gt;protected void Page_Load() &lt;br&gt;{ &lt;br&gt;// Using Linq Data Source &lt;br&gt;LinqDataSource1.ContextCreated += (sender, e) =&amp;gt; &lt;br&gt;{ &lt;br&gt;sw.WriteLine("Grid 1 SQL"); &lt;br&gt;((DataClassesDataContext)e.Result).Log = sw; &lt;br&gt;}; &lt;/p&gt; &lt;p&gt;// Using Linq &lt;br&gt;DataClassesDataContext db = new DataClassesDataContext(); &lt;/p&gt; &lt;p&gt;var results = from c in db.Customers &lt;br&gt;where c.City == "London" &lt;br&gt;select c; &lt;/p&gt; &lt;p&gt;GridView2.DataSource = results; &lt;/p&gt; &lt;p&gt;sw.WriteLine("Grid 2 SQL"); &lt;br&gt;db.Log = sw; &lt;br&gt;GridView2.DataBind(); &lt;/p&gt; &lt;p&gt;} &lt;br&gt;protected override void Render(HtmlTextWriter writer) &lt;br&gt;{ &lt;br&gt;base.Render(writer); &lt;br&gt;writer.Write("&amp;lt;hr&amp;gt;&amp;lt;p&amp;gt;LINQ to SQL Trace Console&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;textarea cols='100' rows='15' readonly='true'&amp;gt;"); &lt;br&gt;writer.Write(sw.ToString()); &lt;br&gt;writer.Write("&amp;lt;/textarea&amp;gt;&amp;lt;/p&amp;gt;"); &lt;br&gt;} &lt;/p&gt; &lt;p&gt;}&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-5439404379386663129?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/5439404379386663129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/output-your-sql-when-using-linq-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/5439404379386663129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/5439404379386663129'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/output-your-sql-when-using-linq-in.html' title='Output your SQL when using Linq in ASP.NET'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-7255447989140155386</id><published>2010-07-03T01:24:00.001-07:00</published><updated>2010-07-03T01:42:27.608-07:00</updated><title type='text'>Movie Star</title><content type='html'>&lt;object id="flowplayer" width="600" height="338" data="http://www.martininformation.com/connor/video/flowplayer-3.2.2.swf" &lt;br /&gt; type="application/x-shockwave-flash"&gt;&lt;br /&gt; &lt;param name="movie" value="http://videos.andythe.com/flowplayer/flowplayer-3.1.5.swf" /&gt; &lt;br /&gt; &lt;param name="allowfullscreen" value="true" /&gt;&lt;br /&gt; &lt;param name="flashvars" value='config={"playlist":["http://videos.andythe.com/pics/movie_star.jpg",{"url":"http://andythe.s3.amazonaws.com/videos/movie_star.MOV","autoPlay":false}]}' /&gt;&lt;br /&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-7255447989140155386?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/7255447989140155386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2010/07/blog-post_03.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/7255447989140155386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/7255447989140155386'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2010/07/blog-post_03.html' title='Movie Star'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-5473032266874654106</id><published>2009-10-21T16:01:00.001-07:00</published><updated>2009-10-21T16:01:29.563-07:00</updated><title type='text'>31 Days of Refactoring eBook</title><content type='html'>&lt;p&gt;&lt;a href="http://www.lostechies.com/blogs/sean_chambers/archive/2009/10/20/31-days-of-refactoring-ebook.aspx"&gt;http://www.lostechies.com/blogs/sean_chambers/archive/2009/10/20/31-days-of-refactoring-ebook.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_pjBBSqDqE68/St-Sx8V7PQI/AAAAAAAAAVM/WQVIqiTzijg/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_pjBBSqDqE68/St-SyaNyM8I/AAAAAAAAAVQ/BH00Q4CsPGY/image_thumb%5B1%5D.png?imgmax=800" width="403" height="430" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-5473032266874654106?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/5473032266874654106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/31-days-of-refactoring-ebook.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/5473032266874654106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/5473032266874654106'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/31-days-of-refactoring-ebook.html' title='31 Days of Refactoring eBook'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-4797740423809439648</id><published>2009-10-21T15:56:00.001-07:00</published><updated>2009-10-21T15:56:47.359-07:00</updated><title type='text'>Free e-book offer that features Windows Server 2008 R2</title><content type='html'>&lt;p&gt;&lt;a title="http://download.microsoft.com/download/5/C/0/5C0BD0AB-040D-4C56-A60B-661001012DDA/Windows_Server_2008_R2_e-book.pdf" href="http://download.microsoft.com/download/5/C/0/5C0BD0AB-040D-4C56-A60B-661001012DDA/Windows_Server_2008_R2_e-book.pdf"&gt;http://download.microsoft.com/download/5/C/0/5C0BD0AB-040D-4C56-A60B-661001012DDA/Windows_Server_2008_R2_e-book.pdf&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_pjBBSqDqE68/St-Rrfm6e6I/AAAAAAAAAVE/G7wSGkQ-M6M/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_pjBBSqDqE68/St-Rru8ijvI/AAAAAAAAAVI/hPtXQ_JViJE/image_thumb%5B1%5D.png?imgmax=800" width="394" height="287" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-4797740423809439648?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/4797740423809439648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/free-e-book-offer-that-features-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/4797740423809439648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/4797740423809439648'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/free-e-book-offer-that-features-windows.html' title='Free e-book offer that features Windows Server 2008 R2'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-3141349083994406478</id><published>2009-10-21T15:52:00.001-07:00</published><updated>2009-10-21T15:52:32.563-07:00</updated><title type='text'>Mass installing your DNN modules</title><content type='html'>&lt;p&gt;&lt;strong&gt;Step 1)&lt;/strong&gt; Drop your module in:&lt;/p&gt;  &lt;p&gt;{Where your DNN is installed}\Install\Module&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 2)&lt;/strong&gt; Go to this URL:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://{yoursite}/install/install.aspx?mode=installresources"&gt;http://{yoursite}/install/install.aspx?mode=installresources&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You should see your modules being installed.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/St-Qrqp64DI/AAAAAAAAAU8/86QwMAjX8UQ/s1600-h/clip_image002%5B5%5D.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://lh5.ggpht.com/_pjBBSqDqE68/St-Qr3oCkhI/AAAAAAAAAVA/3g4FiRJ4hig/clip_image002_thumb%5B2%5D.jpg?imgmax=800" width="387" height="233" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Finished.&lt;/strong&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-3141349083994406478?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/3141349083994406478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/mass-installing-your-dnn-modules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/3141349083994406478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/3141349083994406478'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/mass-installing-your-dnn-modules.html' title='Mass installing your DNN modules'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-2808965780443161651</id><published>2009-10-14T13:16:00.001-07:00</published><updated>2009-10-14T13:16:40.326-07:00</updated><title type='text'>Disk2vhd v1.0</title><content type='html'>&lt;p&gt;&lt;a href="http://technet.microsoft.com/en-nz/sysinternals/ee656415(en-us).aspx"&gt;http://technet.microsoft.com/en-nz/sysinternals/ee656415(en-us).aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Disk2vhd will create a vhd out of your hard drive.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/StYxoyReM7I/AAAAAAAAAU0/wdsZb6ueVJ0/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_pjBBSqDqE68/StYxp-UWrVI/AAAAAAAAAU4/5GZXVP-KeUw/image_thumb%5B1%5D.png?imgmax=800" width="359" height="290" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-2808965780443161651?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/2808965780443161651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/disk2vhd-v10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/2808965780443161651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/2808965780443161651'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/disk2vhd-v10.html' title='Disk2vhd v1.0'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-3650676275490492417</id><published>2009-10-13T14:50:00.001-07:00</published><updated>2009-10-14T00:30:08.122-07:00</updated><title type='text'>Generate your own custom Controller and Views by overriding the default MVC T4 templates</title><content type='html'>&lt;p&gt;Create a ASP.NET MVC Web Application &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_pjBBSqDqE68/StT178T-eyI/AAAAAAAAATM/BDSr_Baup-o/s1600-h/image%5B5%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_pjBBSqDqE68/StT18IcmiNI/AAAAAAAAATQ/sTxJY0PYGvY/image_thumb%5B3%5D.png?imgmax=800" width="424" height="321" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/StT18qVBvFI/AAAAAAAAATU/ldmmjdDSxok/s1600-h/image%5B9%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_pjBBSqDqE68/StT185xiY2I/AAAAAAAAATY/3mC7ijxHEd0/image_thumb%5B5%5D.png?imgmax=800" width="424" height="307" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StT19NS0OhI/AAAAAAAAATc/O8ZISja0ej8/s1600-h/image%5B14%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_pjBBSqDqE68/StT19tPWztI/AAAAAAAAATg/IM-4xAMD0RY/image_thumb%5B8%5D.png?imgmax=800" width="363" height="254" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Copy the CodeTemplates directory into the root of your MVC project.&lt;/p&gt;  &lt;p&gt;By copying this directory into your root directory you will be overriding the default templates.&lt;/p&gt;  &lt;p&gt;The CodeTemplates directory can be found here:&lt;/p&gt;  &lt;p&gt;C#&lt;/p&gt;  &lt;p&gt;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\&lt;strong&gt;CSharp&lt;/strong&gt;\Web\MVC&lt;/p&gt;  &lt;p&gt;or&lt;/p&gt;  &lt;p&gt;VB.NET&lt;/p&gt;  &lt;p&gt;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\&lt;strong&gt;VisualBasic&lt;/strong&gt;\Web\MVC&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/StT196t40MI/AAAAAAAAATk/4wGWWbQDc94/s1600-h/image%5B18%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_pjBBSqDqE68/StT1-T31xAI/AAAAAAAAATo/-igJosOq3mQ/image_thumb%5B10%5D.png?imgmax=800" width="420" height="329" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Highlight each t4 template and delete the “Custom Tool” properties. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_pjBBSqDqE68/StT1-iWnhiI/AAAAAAAAATs/uWgeNp9PRyM/s1600-h/image%5B28%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_pjBBSqDqE68/StT1-z12rKI/AAAAAAAAATw/IKzvKWjbTD0/image_thumb%5B16%5D.png?imgmax=800" width="185" height="333" /&gt;&lt;/a&gt; &lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/StT1_J_3kFI/AAAAAAAAAT0/AKzusbwU0lk/s1600-h/image%5B31%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_pjBBSqDqE68/StT1_U1he7I/AAAAAAAAAT4/TxSGMggX0DI/image_thumb%5B19%5D.png?imgmax=800" width="198" height="335" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Modify template(s)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StT1_odWQVI/AAAAAAAAAT8/vK0tI8jysKo/s1600-h/image%5B35%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_pjBBSqDqE68/StT2ACQJC3I/AAAAAAAAAUA/WZUyoreppy8/image_thumb%5B21%5D.png?imgmax=800" width="404" height="317" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Add new controller&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StT2Al0Wh5I/AAAAAAAAAUE/llMExw79uIs/s1600-h/image%5B39%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_pjBBSqDqE68/StT2BJt40RI/AAAAAAAAAUI/abvDWZ6h_5o/image_thumb%5B23%5D.png?imgmax=800" width="376" height="378" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StT2BVnjmSI/AAAAAAAAAUM/je1Smfuk-uY/s1600-h/image%5B43%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_pjBBSqDqE68/StT2Boua7fI/AAAAAAAAAUQ/NHT0JiD0llY/image_thumb%5B25%5D.png?imgmax=800" width="354" height="155" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now you can see your custom created controller!!!&lt;/p&gt;  &lt;p&gt;(This applies to the views as well)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_pjBBSqDqE68/StT2B8dqgiI/AAAAAAAAAUU/TgL5whfcgLU/s1600-h/image%5B47%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_pjBBSqDqE68/StT2CYYpTjI/AAAAAAAAAUY/un0vXc7_79k/image_thumb%5B27%5D.png?imgmax=800" width="424" height="239" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-3650676275490492417?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/3650676275490492417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/create-your-own-custom-controller-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/3650676275490492417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/3650676275490492417'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/create-your-own-custom-controller-and.html' title='Generate your own custom Controller and Views by overriding the default MVC T4 templates'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-570100475205624561.post-2963294680220911458</id><published>2009-10-13T13:16:00.001-07:00</published><updated>2009-10-13T13:25:09.703-07:00</updated><title type='text'>Creating a code snippet in Visual Studio 2008</title><content type='html'>&lt;p&gt;Step 1:&lt;/p&gt;  &lt;p&gt;Download and install &amp;quot;Snipp Dogg - Visual Studio Intellisense&amp;quot; from &lt;a href="http://www.codeplex.com/SnippDogg"&gt;http://www.codeplex.com/SnippDogg&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step 2:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#333333"&gt;a) Create new file.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#333333"&gt;b) Paste code.&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#333333"&gt;c) Fill the two required fields. Shortcut and Title&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_pjBBSqDqE68/StThnhwYaqI/AAAAAAAAASo/x-B-I0CY2MQ/s1600-h/snippet1%5B3%5D.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snippet1" border="0" alt="snippet1" src="http://lh6.ggpht.com/_pjBBSqDqE68/StTgHVPguDI/AAAAAAAAASs/oD_unlU8R_Q/snippet1_thumb%5B2%5D.jpg?imgmax=800" width="397" height="295" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;3) Save snippet file.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StTgHp_SiJI/AAAAAAAAARQ/iE0sb-WaQiQ/s1600-h/snippet2%5B3%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="snippet2" border="0" alt="snippet2" src="http://lh6.ggpht.com/_pjBBSqDqE68/StTgH39uOOI/AAAAAAAAARU/15wGIteaNtQ/snippet2_thumb%5B1%5D.jpg?imgmax=800" width="420" height="334" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;3) Import snippet file into Visual Studio.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#333333"&gt;Tools –&amp;gt; Code Snippets Manager&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_pjBBSqDqE68/StTgIG-KVhI/AAAAAAAAARY/hi7VQPDQEHg/s1600-h/snippet3%5B3%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="snippet3" border="0" alt="snippet3" src="http://lh5.ggpht.com/_pjBBSqDqE68/StTgImSuh1I/AAAAAAAAARc/yYYY3_bgljw/snippet3_thumb%5B1%5D.jpg?imgmax=800" width="419" height="288" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Choose language    &lt;br /&gt;Import snippet&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StTgIyUZKqI/AAAAAAAAARg/KRLSbuW7bu8/s1600-h/snippet4%5B4%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="snippet4" border="0" alt="snippet4" src="http://lh3.ggpht.com/_pjBBSqDqE68/StTgJF42O9I/AAAAAAAAARk/ru4qq9EqRF8/snippet4_thumb%5B2%5D.jpg?imgmax=800" width="422" height="321" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_pjBBSqDqE68/StTgJWZnRMI/AAAAAAAAAS0/YRCZc16Z4xM/s1600-h/snippet5%5B6%5D.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="snippet5" border="0" alt="snippet5" src="http://lh4.ggpht.com/_pjBBSqDqE68/StTgJumFMbI/AAAAAAAAAS4/jZ2dSOCxtRU/snippet5_thumb%5B5%5D.jpg?imgmax=800" width="420" height="316" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_pjBBSqDqE68/StTgKBgx91I/AAAAAAAAARw/_HrVpi13jgs/s1600-h/snippet6%5B5%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="snippet6" border="0" alt="snippet6" src="http://lh4.ggpht.com/_pjBBSqDqE68/StTgKZ_OiRI/AAAAAAAAAR0/6FHSwJnnIRs/snippet6_thumb%5B3%5D.jpg?imgmax=800" width="421" height="353" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;4) Use snippet&lt;/p&gt;  &lt;p&gt;Type the name of the shortcut name and then hit the tab button twice.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/StTgKqQdg1I/AAAAAAAAAR4/MGFmdd9DqO8/s1600-h/snippet7%5B3%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="snippet7" border="0" alt="snippet7" src="http://lh3.ggpht.com/_pjBBSqDqE68/StTgK-dPBKI/AAAAAAAAAR8/8E8UXM05Jqs/snippet7_thumb%5B1%5D.jpg?imgmax=800" width="422" height="291" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_pjBBSqDqE68/StTgLaRmucI/AAAAAAAAASA/d9wXI5oaVTI/s1600-h/snippet8%5B4%5D.jpg"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="snippet8" border="0" alt="snippet8" src="http://lh4.ggpht.com/_pjBBSqDqE68/StTgLnP9OgI/AAAAAAAAASE/HObVf3_uCUU/snippet8_thumb%5B2%5D.jpg?imgmax=800" width="421" height="292" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Finished.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/570100475205624561-2963294680220911458?l=www.andythe.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.andythe.com/feeds/2963294680220911458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.andythe.com/2009/10/creating-code-snippet-in-visual-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/2963294680220911458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/570100475205624561/posts/default/2963294680220911458'/><link rel='alternate' type='text/html' href='http://www.andythe.com/2009/10/creating-code-snippet-in-visual-studio.html' title='Creating a code snippet in Visual Studio 2008'/><author><name>Andy The</name><uri>http://www.blogger.com/profile/13617225042011399067</uri><email>andrewthe@hotmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16815656432709451259'/></author><thr:total>0</thr:total></entry></feed>