<?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:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1411116192370663366</id><updated>2024-11-01T04:30:01.467-07:00</updated><category term="MVC"/><category term="jQuery"/><category term="ASP.Net"/><category term="C#"/><category term="Sql Server"/><category term="DropDownList"/><category term="Hidden"/><category term="Insert"/><category term="Strip"/><category term="VS2010"/><category term="0x8ffe2740"/><category term="Age"/><category term="Android"/><category term="Begins With"/><category term="Blogger"/><category term="Cache"/><category term="Calculate Age"/><category term="Cell"/><category term="Change title"/><category term="Chrome"/><category term="Collection"/><category term="Color Syntax"/><category term="Column"/><category term="ComboBox"/><category term="Copy"/><category term="Create"/><category term="Dialog"/><category term="Display"/><category term="Ends With"/><category term="Excel"/><category term="Flowcharts"/><category term="Formula"/><category term="Free"/><category term="Gliffy"/><category term="HTML Copy"/><category term="HTTPGet"/><category term="HTTPPost"/><category term="Hello World"/><category term="Hidden Field"/><category term="Hidden Files"/><category term="Hidden Folders"/><category term="Html"/><category term="Html.DropDownList"/><category term="Html.HiddenFor"/><category term="IIS"/><category term="Identity"/><category term="Identity Field"/><category term="Intellisense"/><category term="Login"/><category term="Membership"/><category term="Microsoft"/><category term="Modal Dialog"/><category term="Modify Identity"/><category term="Modify title"/><category term="Multiple Login Pages"/><category term="Non Alphanumeric"/><category term="Online"/><category term="PDF"/><category term="Paste"/><category term="Popup"/><category term="Radio Button"/><category term="Refresh"/><category term="Remote Desktop Connection"/><category term="Reseed"/><category term="Scrolling"/><category term="Select"/><category term="Selected"/><category term="SelectedIndex"/><category term="SelectedItem"/><category term="Skype"/><category term="Sql Server 2008"/><category term="System.Web.Security.MembershipCreateStatus"/><category term="TSql"/><category term="Tab"/><category term="Table"/><category term="Tags"/><category term="Title"/><category term="Tortoise SVN"/><category term="Unresolved type"/><category term="User Control"/><category term="VS2008"/><category term="ViewModel"/><category term="Visio"/><category term="Windows 7"/><category term="Word"/><category term="compare"/><category term="detect"/><category term="upgrading"/><title type='text'>Things I Learned Today</title><subtitle type='html'>&quot;You learn something new every day&quot;...  I decided to keep track.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-355187061292654097</id><published>2011-08-16T06:42:00.000-07:00</published><updated>2011-08-16T06:42:55.188-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="ViewModel"/><title type='text'>How to use a collection in MVC which will populate the ViewModel correctly</title><content type='html'>&lt;br /&gt;
The view model below is a collection of strings called Images&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;PostItemViewModel&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; PostItemViewModel()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Images = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;gt; Images { &lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;; &lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
The View would look something like the code below. &amp;nbsp;The reason for the HiddenFor, is so that when &amp;nbsp;you post back to your controller, the view model that is posted back will contain the Image list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;background: yellow; font-family: Consolas; font-size: 9.5pt; mso-highlight: yellow;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;for&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; Model.Images.Count; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;background: yellow; font-family: Consolas; font-size: 9.5pt; mso-highlight: yellow;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;%&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;background: yellow; font-family: Consolas; font-size: 9.5pt; mso-highlight: yellow;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; Html.HiddenFor(m =&amp;gt; m.Images[i]) &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt; Model.Images[i] &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;50&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;\Uploads\&lt;/span&gt;&lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt; Model.Images[i] &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/355187061292654097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/08/how-to-use-collection-in-mvc-which-will.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/355187061292654097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/355187061292654097'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/08/how-to-use-collection-in-mvc-which-will.html' title='How to use a collection in MVC which will populate the ViewModel correctly'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-706520129948297092</id><published>2011-04-12T07:10:00.000-07:00</published><updated>2011-04-12T07:10:46.449-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compare"/><category scheme="http://www.blogger.com/atom/ns#" term="Tortoise SVN"/><title type='text'>How to show differences in two files using tortoise SVN</title><content type='html'>Right click on the file &amp;gt; Tortoise SVN &amp;gt; Show log&lt;br /&gt;
&lt;br /&gt;
Click on the first version of the file&lt;br /&gt;
&lt;br /&gt;
[Ctrl] Click on the second file&lt;br /&gt;
&lt;br /&gt;
Right click &amp;gt; Compare Revisions&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgylXYDfrODhX-_YuQRnQ_6rZz_YAptEhyphenhyphen3vmHpkS0TWBYz-EI7JzLBNmLG5yQDeOUHtCoGKh78nAtMlZ1SP5SILONJF-9KQKxL69FQccxJwNJpjrFVr6NwPYU9rtaJ_2Sb12bYBEao2Y/s1600/TortoiseSVNCompare.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgylXYDfrODhX-_YuQRnQ_6rZz_YAptEhyphenhyphen3vmHpkS0TWBYz-EI7JzLBNmLG5yQDeOUHtCoGKh78nAtMlZ1SP5SILONJF-9KQKxL69FQccxJwNJpjrFVr6NwPYU9rtaJ_2Sb12bYBEao2Y/s1600/TortoiseSVNCompare.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/706520129948297092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/04/how-to-show-differences-in-two-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/706520129948297092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/706520129948297092'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/04/how-to-show-differences-in-two-files.html' title='How to show differences in two files using tortoise SVN'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgylXYDfrODhX-_YuQRnQ_6rZz_YAptEhyphenhyphen3vmHpkS0TWBYz-EI7JzLBNmLG5yQDeOUHtCoGKh78nAtMlZ1SP5SILONJF-9KQKxL69FQccxJwNJpjrFVr6NwPYU9rtaJ_2Sb12bYBEao2Y/s72-c/TortoiseSVNCompare.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-8201787522768241729</id><published>2011-03-17T06:58:00.000-07:00</published><updated>2011-03-17T16:11:41.582-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Login"/><category scheme="http://www.blogger.com/atom/ns#" term="Multiple Login Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>How to use multiple login pages in MVC</title><content type='html'>When you only have one login page, then it&#39;s easy to add the authorize attribute to your action and you&#39;ll automatically be directed to the login page in your web.config&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;[&lt;span style=&quot;color: #2b91af;&quot;&gt;Authorize&lt;/span&gt;(Roles&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Administrator&quot;&lt;/span&gt;)]
&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;ActionResult&lt;/span&gt;&amp;nbsp;EditCategory(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;id)
{&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;   return&lt;/span&gt;&amp;nbsp;View();&lt;/pre&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;}&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;On my sites, I have a separate login page for the Administrative area, so I needed to create a custom attribute.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;[&lt;span style=&quot;color: #2b91af;&quot;&gt;CustomAuthorization&lt;/span&gt;(LoginPage&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;~/Admin/LogOn&quot;&lt;/span&gt;,&amp;nbsp;Role&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Administrator&quot;&lt;/span&gt;)]
&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;ActionResult&lt;/span&gt;&amp;nbsp;EditCategory(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;id)
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; white-space: normal;&quot;&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;{&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; white-space: normal;&quot;&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;   return&lt;/span&gt;&amp;nbsp;View();&lt;/pre&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; white-space: normal;&quot;&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;Allows&amp;nbsp;you&amp;nbsp;to&amp;nbsp;specify&amp;nbsp;the&amp;nbsp;Login&amp;nbsp;Page&amp;nbsp;and&amp;nbsp;Role&amp;nbsp;with&amp;nbsp;an&amp;nbsp;attribute:&amp;nbsp;&amp;nbsp;[CustomAuthorization(LoginPage=&quot;~/Admin/LogOn&quot;,Role=&quot;Administrator&quot;)]&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;param&amp;nbsp;name=&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&quot;filterContext&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;CustomAuthorization&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;AuthorizeAttribute&lt;/span&gt;
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;LoginPage&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;Role&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;&amp;nbsp;}
 
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: grey;&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;override&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;OnAuthorization(&lt;span style=&quot;color: #2b91af;&quot;&gt;AuthorizationContext&lt;/span&gt;&amp;nbsp;filterContext)
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//Send&amp;nbsp;the&amp;nbsp;return&amp;nbsp;url&amp;nbsp;to&amp;nbsp;the&amp;nbsp;login&amp;nbsp;page&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoginPage&amp;nbsp;+=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;?ReturnUrl=&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;filterContext.HttpContext.Request.RawUrl;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(!filterContext.HttpContext.User.Identity.IsAuthenticated)
&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;filterContext.HttpContext.Response.Redirect(LoginPage);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(Role&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&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;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(!filterContext.HttpContext.User.IsInRole(Role))
&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;filterContext.HttpContext.Response.Redirect(LoginPage);
&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;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;base&lt;/span&gt;.OnAuthorization(filterContext);
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/8201787522768241729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/03/how-to-use-multiple-login-pages-in-mvc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/8201787522768241729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/8201787522768241729'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/03/how-to-use-multiple-login-pages-in-mvc.html' title='How to use multiple login pages in MVC'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-1776311507635595753</id><published>2011-03-09T12:18:00.000-08:00</published><updated>2011-03-09T12:18:54.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Age"/><category scheme="http://www.blogger.com/atom/ns#" term="Calculate Age"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Formula"/><title type='text'>How to calculate age in Excel</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This formula will calculate a person&#39;s age in excel (assuming date of birth is in cell A1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: verdana, arial, helvetica; font-size: 11px; line-height: 16px;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;=IF(MONTH(TODAY())&amp;gt;MONTH(A1),YEAR(TODAY())-YEAR(A1),&lt;br /&gt;
&amp;nbsp;IF(AND(MONTH(TODAY())=MONTH(A1),DAY(TODAY())&amp;gt;=DAY(A1)),&lt;br /&gt;
&amp;nbsp;YEAR(TODAY())-YEAR(A1),(YEAR(TODAY())-YEAR(A1))-1))&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/1776311507635595753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/03/how-to-calculate-age-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/1776311507635595753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/1776311507635595753'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/03/how-to-calculate-age-in-excel.html' title='How to calculate age in Excel'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-772856196560667714</id><published>2011-02-24T06:26:00.000-08:00</published><updated>2011-02-24T06:26:48.278-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Change title"/><category scheme="http://www.blogger.com/atom/ns#" term="Dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="Modify title"/><category scheme="http://www.blogger.com/atom/ns#" term="Popup"/><category scheme="http://www.blogger.com/atom/ns#" term="Title"/><title type='text'>How to change the title of a jquery dialog</title><content type='html'>&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;Here is an image that a user can click to get help&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;   &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/Content/images/Help.png&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;cursor&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;pointer&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;javascript:ShowHelp(&#39;My Title&#39;)&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Here is the jquery dialog&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;dialog-help&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;divHelpContents&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;Javascript function to set up the dialog&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;pre style=&quot;color: blue; font-family: consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(document).ready(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&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;&lt;span style=&quot;color: darkgreen;&quot;&gt;//Help&amp;nbsp;popup&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;#dialog-help&quot;&lt;/span&gt;).dialog({&amp;nbsp;autoOpen:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&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;modal:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&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;width:&amp;nbsp;415
&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;height:&amp;nbsp;300
&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;show:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;blind&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: darkgreen;&quot;&gt;//animation&amp;nbsp;effect&lt;/span&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;hide:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;clip&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: darkgreen;&quot;&gt;//animation&amp;nbsp;effect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&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;draggable:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&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;resizable:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&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;buttons:&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;Ok:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&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;&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;$(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;).dialog(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;close&quot;&lt;/span&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/pre&gt;&lt;pre style=&quot;color: blue; font-family: consolas;&quot;&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;Here is a function that will update the title, help contents, and open the dialog&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;ShowHelp(topic)
&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;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;$(&quot;#dialog-help&quot;).dialog(&#39;option&#39;,&amp;nbsp;&#39;title&#39;,&amp;nbsp;topic);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&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;$(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;#divHelpContents&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;).html(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Show&amp;nbsp;some&amp;nbsp;help&amp;nbsp;contents here&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&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;$(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;#dialog-help&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;).dialog(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;open&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/772856196560667714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/02/how-to-change-title-of-jquery-dialog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/772856196560667714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/772856196560667714'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/02/how-to-change-title-of-jquery-dialog.html' title='How to change the title of a jquery dialog'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-2533946449963923928</id><published>2011-02-18T08:02:00.000-08:00</published><updated>2011-02-18T08:02:22.545-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Copy"/><category scheme="http://www.blogger.com/atom/ns#" term="Paste"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote Desktop Connection"/><title type='text'>How to get paste to work with Remote Desktop Connection</title><content type='html'>You can copy things to the clipboard and paste them into your remote desktop connection.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;What do you do when paste stops working ?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;1. &amp;nbsp;Close your remote desktop connection (you don&#39;t need to log out).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;2. &amp;nbsp;Reconnect.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/2533946449963923928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/02/how-to-get-paste-to-work-with-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/2533946449963923928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/2533946449963923928'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/02/how-to-get-paste-to-work-with-remote.html' title='How to get paste to work with Remote Desktop Connection'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-4944456873577395963</id><published>2011-02-18T07:07:00.000-08:00</published><updated>2011-02-18T07:07:22.658-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Identity Field"/><category scheme="http://www.blogger.com/atom/ns#" term="Insert"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><category scheme="http://www.blogger.com/atom/ns#" term="TSql"/><title type='text'>How to re-insert deleted records when there is an identity field</title><content type='html'>My customers like to delete important records and then have me restore them from a backup when they realize their mistake.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;When the column has an identity field, and you want to restore the records with the same number as they had before deleted, you must turn on identity insert with this TSql command&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;SET IDENTITY_INSERT {YourTableName} ON&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;insert the deleted records&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;SET IDENTITY_INSERT {YourTableName} OFF&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/4944456873577395963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/02/how-to-re-insert-deleted-records-when.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/4944456873577395963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/4944456873577395963'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/02/how-to-re-insert-deleted-records-when.html' title='How to re-insert deleted records when there is an identity field'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-957839450666525488</id><published>2011-01-28T12:34:00.000-08:00</published><updated>2011-01-28T12:34:35.838-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="detect"/><category scheme="http://www.blogger.com/atom/ns#" term="Hidden"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>How to detect if an element is hidden in jQuery</title><content type='html'>This will work when myID was hidden using .hide( ) and displayed using .show( )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;($(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;#myID&quot;&lt;/span&gt;).is(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;:visible&quot;&lt;/span&gt;))&lt;br /&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;$(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;#myID&quot;&lt;/span&gt;).hide();&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;#myID&quot;&lt;/span&gt;).show();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/957839450666525488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-detect-if-element-is-hidden-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/957839450666525488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/957839450666525488'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-detect-if-element-is-hidden-in.html' title='How to detect if an element is hidden in jQuery'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-1777257828030939160</id><published>2011-01-28T07:21:00.000-08:00</published><updated>2011-01-28T07:21:17.076-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="0x8ffe2740"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="Skype"/><title type='text'>How to get rid of Unexpected error 0x8ffe2740 occurred in IIS 5</title><content type='html'>Running XP, I stopped my Default website and rebooted my computer.&lt;br /&gt;
&lt;br /&gt;
Then when I tried to restart my website, I was getting the error &quot;Unexpected error 0x8ffe2740 occurred&quot;.&lt;br /&gt;
&lt;br /&gt;
This was because Skype started before IIS.  &lt;br /&gt;
&lt;br /&gt;
To resolve, quite Skype, restart IIS, start your site, then restart Skype</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/1777257828030939160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-get-rid-of-unexpected-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/1777257828030939160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/1777257828030939160'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-get-rid-of-unexpected-error.html' title='How to get rid of Unexpected error 0x8ffe2740 occurred in IIS 5'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-2208434782761990123</id><published>2011-01-27T10:21:00.000-08:00</published><updated>2011-01-27T10:24:33.916-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cache"/><category scheme="http://www.blogger.com/atom/ns#" term="Intellisense"/><category scheme="http://www.blogger.com/atom/ns#" term="Refresh"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server 2008"/><title type='text'>How to refresh Intellisense in SQL Server 2008</title><content type='html'>Intellisense in SQL Server 2008 Management Studio is a great feature.  When adding a table, column etc, your Intellisense doesn&#39;t know about the change right away.&lt;br /&gt;&lt;br /&gt;To fix this&lt;br /&gt;&lt;br /&gt;Edit &gt; Intellisense &gt; Refresh Local Cache</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/2208434782761990123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-refresh-intellisense-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/2208434782761990123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/2208434782761990123'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-refresh-intellisense-in-sql.html' title='How to refresh Intellisense in SQL Server 2008'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-8861372522022261435</id><published>2011-01-20T10:25:00.001-08:00</published><updated>2011-01-21T09:21:38.602-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Begins With"/><category scheme="http://www.blogger.com/atom/ns#" term="DropDownList"/><category scheme="http://www.blogger.com/atom/ns#" term="Ends With"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="User Control"/><title type='text'>How to find the value of a dropdown in a user control using jQuery</title><content type='html'>&lt;div class=&quot;SYN_ROW&quot;&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;you may have an asp:Dropdown control with an id=&quot;ddViewBy&quot; like below.&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;color:blue;mso-no-proof:yes&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;;color:#A31515;mso-no-proof: yes&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:blue;mso-no-proof:yes&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family: &amp;quot;Courier New&amp;quot;;color:#A31515;mso-no-proof:yes&quot;&gt;DropDownList&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt; &lt;span style=&quot;color:red&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;=&quot;ddList&quot;&lt;/span&gt; &lt;span style=&quot;color:red&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color:red&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;=&quot;ddViewBy&quot;&lt;/span&gt; &lt;span style=&quot;color:red&quot;&gt;AutoPostBack&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;=&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color:red&quot;&gt;OnSelectedIndexChanged&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;=&quot;ddViewBy_Changed&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 13px; color: rgb(0, 0, 255); line-height: 14px; &quot;&gt;&lt;span style=&quot;color:#A31515&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A31515&quot;&gt;DropDownList&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;If your dropdownlist is in a user control and the usercontrol is in a content place holder, then when you view source, on the web page the id of the control would change to something like this:&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;id=&lt;span class=&quot;Apple-style-span&quot; &gt;&quot;ctl00_phContent_ucSearchFilter_ddViewBy&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;To find the value of the dropdown using jQuery, use the following selector&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;$(&#39;select[id$=ddViewBy]&#39;).val();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;This is reliable, because your user control could be in different place holders which would cause the first part of the id to be different.  The controls id will always end with your original name.&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;The &lt;span class=&quot;Apple-style-span&quot; &gt;$= &lt;/span&gt;means &quot;ends with&quot;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;Just an FYI, &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;^=&lt;/span&gt;&lt;/b&gt; means &quot;begins with&quot;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;TEXT-INDENT: -0.5em; PADDING-LEFT: 1em&quot; id=&quot;syn_row635&quot; class=&quot;SYN_TXT&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/8861372522022261435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-find-value-of-dropdown-in-user.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/8861372522022261435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/8861372522022261435'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-find-value-of-dropdown-in-user.html' title='How to find the value of a dropdown in a user control using jQuery'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-4746249758620736949</id><published>2011-01-19T06:08:00.000-08:00</published><updated>2011-01-20T10:24:54.330-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Create"/><category scheme="http://www.blogger.com/atom/ns#" term="Membership"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>How to create the ASP.Net membership tables</title><content type='html'>&lt;div&gt;Sometimes web hosts (such as godaddy) will set up the aspnet membership tables for you in your database as part of the setup.&lt;br /&gt;&lt;br /&gt;When you need to set them up locally, use the following .Net framework command &lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;font-family: consolas&quot;&gt;&lt;span style=&quot;color: green&quot;&gt;//For servername you can use &quot;(local)&quot; if the database is a local SQL Server install&lt;/span&gt;&lt;br /&gt;System.Web.Management.&lt;span style=&quot;color: #2b91af&quot;&gt;SqlServices&lt;/span&gt;.Install(txtServer.Text, txtUserName.Text, txtPassword.Text, txtDatabase.Text, &lt;span style=&quot;color: #2b91af&quot;&gt;SqlFeatures&lt;/span&gt;.All);&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/4746249758620736949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-create-aspnet-membership-tables.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/4746249758620736949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/4746249758620736949'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-create-aspnet-membership-tables.html' title='How to create the ASP.Net membership tables'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-7121637078995878801</id><published>2011-01-06T19:21:00.000-08:00</published><updated>2011-01-21T14:40:57.992-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Hello World"/><title type='text'>How to create a Hello Android application</title><content type='html'>&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 284px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5559283546522848562&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgglLARrE9iTElMP0DIr89UvY8NmDTMWwrGMYrqYBrXGfXtzU4kZBHGcsmj_dVOLgv6HZROToiRNn2xoQ_8aA7N9W4jYnWRT_NUV288rrpBd-xkY9nla-P86gQVX65v56L9mp-acaxu_PA/s400/HelloAndroid1.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;1. Install Eclipse IDE for Java Developers &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://www.eclipse.org/downloads&quot;&gt;http://www.eclipse.org/downloads&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;2. Install the Android SDK &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;3. Install JDK 6 (May already be on your system) &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/index.html&quot;&gt;http://www.oracle.com/technetwork/java/javase/downloads/index.html&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;4. Install ADT Plugin &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://developer.android.com/sdk/eclipse-adt.html#installing&quot;&gt;http://developer.android.com/sdk/eclipse-adt.html#installing&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;5. Follow Hello Android instructions&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;http://developer.android.com/resources/tutorials/hello-world.html&quot;&gt;http://developer.android.com/resources/tutorials/hello-world.html&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 284px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5559283942116261154&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5jgaLNGG44QeJAW6s6WAWn1hpDs8W15A-Qq-cofs-DF01h4PAwYgqn5RP8AyYk0yJF337L48-NLT5Eemi8EPeszlhbYURbcMyeqT1smZ1itkJ_F6X4t6e0GliKb6FnQs0K5WXmVErlnQ/s400/HelloAndroid2.png&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/7121637078995878801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-create-hello-android-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/7121637078995878801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/7121637078995878801'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2011/01/how-to-create-hello-android-application.html' title='How to create a Hello Android application'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgglLARrE9iTElMP0DIr89UvY8NmDTMWwrGMYrqYBrXGfXtzU4kZBHGcsmj_dVOLgv6HZROToiRNn2xoQ_8aA7N9W4jYnWRT_NUV288rrpBd-xkY9nla-P86gQVX65v56L9mp-acaxu_PA/s72-c/HelloAndroid1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-5590270756435141448</id><published>2010-11-29T08:44:00.000-08:00</published><updated>2010-11-29T08:46:26.057-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Non Alphanumeric"/><category scheme="http://www.blogger.com/atom/ns#" term="Strip"/><title type='text'>How to strip non-alphanumeric chars from a string</title><content type='html'>The example below also leaves the space character and commas intact.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;font-family: consolas&quot;&gt;      &lt;span style=&quot;color: blue&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue&quot;&gt;string&lt;/span&gt; StripSpecialChars(&lt;span style=&quot;color: blue&quot;&gt;string&lt;/span&gt; inputString)&lt;br /&gt;      {&lt;br /&gt;         &lt;span style=&quot;color: blue&quot;&gt;return&lt;/span&gt; (&lt;span style=&quot;color: #2b91af&quot;&gt;Regex&lt;/span&gt;.Replace(StripHTML(inputString), &lt;span style=&quot;color: #a31515&quot;&gt;&quot;[^A-Za-z0-9 ,]&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;));&lt;br /&gt;      }&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/5590270756435141448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/11/how-to-strip-non-alphanumeric-chars.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/5590270756435141448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/5590270756435141448'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/11/how-to-strip-non-alphanumeric-chars.html' title='How to strip non-alphanumeric chars from a string'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-3437803105314592676</id><published>2010-11-29T08:35:00.000-08:00</published><updated>2010-11-29T08:37:48.160-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="Strip"/><category scheme="http://www.blogger.com/atom/ns#" term="Tags"/><title type='text'>How to strip HTML tags out of a string</title><content type='html'>&lt;pre style=&quot;font-family: consolas&quot;&gt;      &lt;span style=&quot;color: blue&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue&quot;&gt;string&lt;/span&gt; StripHTML(&lt;span style=&quot;color: blue&quot;&gt;string&lt;/span&gt; inputString)&lt;br /&gt;      {&lt;br /&gt;         &lt;span style=&quot;color: blue&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #2b91af&quot;&gt;Regex&lt;/span&gt;.Replace&lt;br /&gt;           (inputString, &lt;span style=&quot;color: #a31515&quot;&gt;&quot;&lt;.*?&gt;&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue&quot;&gt;string&lt;/span&gt;.Empty);&lt;br /&gt;      }&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/3437803105314592676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/11/how-to-strip-html-tags-out-of-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/3437803105314592676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/3437803105314592676'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/11/how-to-strip-html-tags-out-of-string.html' title='How to strip HTML tags out of a string'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-2711967608752087340</id><published>2010-11-13T13:45:00.000-08:00</published><updated>2010-11-13T13:49:26.192-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Identity"/><category scheme="http://www.blogger.com/atom/ns#" term="Modify Identity"/><category scheme="http://www.blogger.com/atom/ns#" term="Reseed"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>How to reseed an identity field</title><content type='html'>When I create e-commerce sites, the order numbers always start at 1.  My customers like to pretend that they&#39;ve had lots of orders when they launch, so I need to update their order number to something higher.  The problem is this is always the identity field of the table.  This command does the trick.  It doesn&#39;t update the old order numbers, but I don&#39;t need those updated so it&#39;s no big deal.&lt;br /&gt;&lt;br /&gt;DBCC CHECKIDENT(&#39;order&#39;, RESEED, 1000070 )</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/2711967608752087340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/11/how-to-reseed-identity-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/2711967608752087340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/2711967608752087340'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/11/how-to-reseed-identity-field.html' title='How to reseed an identity field'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-5847626182894510211</id><published>2010-10-19T07:51:00.000-07:00</published><updated>2010-10-19T08:09:20.762-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ComboBox"/><category scheme="http://www.blogger.com/atom/ns#" term="DropDownList"/><category scheme="http://www.blogger.com/atom/ns#" term="Html.DropDownList"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="Selected"/><category scheme="http://www.blogger.com/atom/ns#" term="SelectedIndex"/><category scheme="http://www.blogger.com/atom/ns#" term="SelectedItem"/><title type='text'>How to set the selected item in an MVC Dropdownlist</title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:10.0pt;line-height:115%;font-family: &amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;The first parameter to the Html.DropDownList needs to be a name that does not match the name in your model.  Below I used &quot;OptionId&quot; instead of &quot;Options&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  &gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 14px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-weight: normal; &quot;&gt;&lt;b&gt;View&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:10.0pt;line-height:115%;font-family: &amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background:yellow;mso-highlight:yellow&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color:blue&quot;&gt;=&lt;/span&gt; Html.DropDownList(&lt;span style=&quot;color:#A31515&quot;&gt;&quot;OptionId&quot;&lt;/span&gt;,Model.Options) &lt;span style=&quot;background:yellow;mso-highlight:yellow&quot;&gt;%&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 14px;&quot;&gt;&lt;b&gt;Controller&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 14px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;color:#2B91AF;mso-no-proof:yes&quot;&gt;SelectListItem&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt; item1 = &lt;span style=&quot;color:blue&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2B91AF&quot;&gt;SelectListItem&lt;/span&gt;();&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item1.Text = &lt;span style=&quot;color:#A31515&quot;&gt;&quot;Red&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item1.Value = &lt;span style=&quot;color:#A31515&quot;&gt;&quot;Red&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item1.Selected = &lt;span style=&quot;color:blue&quot;&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;viewModel.Options.Add(item1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;color:#2B91AF;mso-no-proof:yes&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;color:#2B91AF;mso-no-proof:yes&quot;&gt;SelectListItem&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt; item2 = &lt;span style=&quot;color:blue&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2B91AF&quot;&gt;SelectListItem&lt;/span&gt;(); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item2.Text = &lt;span style=&quot;color:#A31515&quot;&gt;&quot;Green&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item2.Value = &lt;span style=&quot;color:#A31515&quot;&gt;&quot;Green&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item2.Selected = &lt;span style=&quot;color:blue&quot;&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;viewModel.Options.Add(item2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;color:#2B91AF;mso-no-proof:yes&quot;&gt;SelectListItem&lt;/span&gt;&lt;span style=&quot;font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt; item3 = &lt;span style=&quot;color:blue&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2B91AF&quot;&gt;SelectListItem&lt;/span&gt;(); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item3.Text = &lt;span style=&quot;color:#A31515&quot;&gt;&quot;Blue&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item3.Value = &lt;span style=&quot;color:#A31515&quot;&gt;&quot;Blue&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;item3.Selected = &lt;span style=&quot;color:blue&quot;&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none&quot;&gt;&lt;span style=&quot;font-size: 10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-no-proof:yes&quot;&gt;viewModel.Options.Add(item3);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/5847626182894510211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/10/how-to-set-selected-item-in-mvc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/5847626182894510211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/5847626182894510211'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/10/how-to-set-selected-item-in-mvc.html' title='How to set the selected item in an MVC Dropdownlist'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-6244511156848866239</id><published>2010-10-05T06:46:00.000-07:00</published><updated>2010-10-06T05:29:16.454-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="Modal Dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="Scrolling"/><title type='text'>How to create a modal dialog in jQuery and prevent scrolling in background</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcSUf7cHxLs2dn_kRYzSWin4QBGVkl71GA9zr-GJ83xtcIWW63eq9wV6FD3Sx8y9edULwEcONIMC8UKZW07Arc69QRXryWjHzaBmVx-iRKTvsYAW6QvH8AZY-07hLuSslLgdqZKOgZi0/s1600/jQueryDialog.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 281px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcSUf7cHxLs2dn_kRYzSWin4QBGVkl71GA9zr-GJ83xtcIWW63eq9wV6FD3Sx8y9edULwEcONIMC8UKZW07Arc69QRXryWjHzaBmVx-iRKTvsYAW6QvH8AZY-07hLuSslLgdqZKOgZi0/s400/jQueryDialog.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5524579430765720594&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;!--StartFragment--&gt; &lt;!-- {\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red163\green21\blue21;}??\fs20     $(document).ready(\cf3 function\cf0 () \{\par ??        $(\cf4 &quot;#dialog&quot;\cf0 ).dialog(\{ autoOpen: \cf3 false\par ??\cf0             , modal: \cf3 true\par ??\cf0             , buttons:\par ??            \{\par ??                \cf4 &quot;Cancel&quot;\cf0 : \cf3 function\cf0 () \{ $(\cf3 this\cf0 ).dialog(\cf4 &quot;close&quot;\cf0 ); $(\cf4 &quot;body&quot;\cf0 ).css(\cf4 &quot;overflow&quot;\cf0 , \cf4 &quot;auto&quot;\cf0 ); \}\par ??                , \cf4 &quot;Save&quot;\cf0 : \cf3 function\cf0 () \{ $(\cf3 this\cf0 ).dialog(\cf4 &quot;close&quot;\cf0 ); $(\cf4 &quot;body&quot;\cf0 ).css(\cf4 &quot;overflow&quot;\cf0 , \cf4 &quot;auto&quot;\cf0 ); \}\par ??            \}\par ??        \});\par ??    \});} --&gt; &lt;div style=&quot;font-family: Courier New; font-size: 10pt; color: black; background: white;&quot;&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;$(document).ready(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;() {&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#dialog&quot;&lt;/span&gt;).dialog({ autoOpen: &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;, modal: &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;, buttons:&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;	&lt;/span&gt;&lt;/span&gt;{&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;	&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&quot;Cancel&quot;&lt;/span&gt;: &lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;() { &lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;$(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;).dialog(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;close&quot;&lt;/span&gt;); &lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;body&quot;&lt;/span&gt;).css(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;overflow&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;auto&quot;&lt;/span&gt;); }&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Save&quot;&lt;/span&gt;: &lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;() { &lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;$(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;).dialog(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;close&quot;&lt;/span&gt;); &lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;body&quot;&lt;/span&gt;).css(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;overflow&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;auto&quot;&lt;/span&gt;); }&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;        }&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;});&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;});&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;!--StartFragment--&gt; &lt;!-- {\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red0\green128\blue0;\red163\green21\blue21;}??\fs20     \cf3 function\cf0  RenameFile(filename, id) \{\par ??        \cf4 //alert(&quot;You have chosen to rename &quot; + filename + &quot;(id=&quot;+id+&quot;)&quot;);\par ??\cf0         $(\cf5 &quot;#OldFilename&quot;\cf0 ).html(\cf5 &quot;&lt;b&gt;From: &lt;/b&gt;&quot;\cf0  + filename);\par ??        $(\cf5 &quot;#NewFilename&quot;\cf0 ).val(filename);\par ??\par ??        $(\cf5 &quot;#dialog&quot;\cf0 ).dialog(\cf5 &quot;open&quot;\cf0 );\par ??        $(\cf5 &quot;body&quot;\cf0 ).css(\cf5 &quot;overflow&quot;\cf0 , \cf5 &quot;hidden&quot;\cf0 );\par ??    \} } --&gt; &lt;/p&gt;&lt;div style=&quot;font-family: Courier New; font-size: 10pt; color: black; background: white;&quot;&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt; RenameFile(filename, id) {&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#OldFilename&quot;&lt;/span&gt;).html(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&lt;b&gt;From: &lt;/b&gt;&quot;&lt;/span&gt; + filename);&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#NewFilename&quot;&lt;/span&gt;).val(filename);&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#dialog&quot;&lt;/span&gt;).dialog(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;open&quot;&lt;/span&gt;);&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;body&quot;&lt;/span&gt;).css(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;overflow&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;hidden&quot;&lt;/span&gt;);&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;} &lt;/p&gt; &lt;/div&gt; &lt;!--EndFragment--&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;!--StartFragment--&gt; &lt;!-- {\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red163\green21\blue21;\red255\green0\blue0;}??\fs20     \cf3 &lt;\cf4 div\cf0  \cf5 id\cf3 =&quot;dialog&quot;\cf0  \cf5 title\cf3 =&quot;Change Filename&quot;&gt;\par ??\cf0         \cf3 &lt;\cf4 p\cf0  \cf5 id\cf3 =&quot;OldFilename&quot;&gt;&lt;\cf4 b\cf3 &gt;\cf0 From:\cf5  \cf3 &lt;/\cf4 b\cf3 &gt;\cf0 oldfilename.doc\cf3 &lt;/\cf4 p\cf3 &gt;\par ??\cf0         \cf3 &lt;\cf4 p\cf3 &gt;&lt;\cf4 b\cf3 &gt;\cf0 To:\cf5  \cf3 &lt;/\cf4 b\cf3 &gt;&lt;\cf4 input\cf0  \cf5 id\cf3 =&quot;NewFilename&quot;\cf0  \cf5 type\cf3 =&quot;text&quot;\cf0  \cf5 style\cf3 =&quot;\cf5 width\cf0 :\cf3 200px&quot;\cf0  \cf3 /&gt;&lt;/\cf4 p\cf3 &gt;\cf0  \par ??    \cf3 &lt;/\cf4 div\cf3 &gt;} --&gt; &lt;/p&gt;&lt;div style=&quot;font-family: Courier New; font-size: 10pt; color: black; background: white;&quot;&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;dialog&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Change Filename&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;OldFilename&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;From:&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;oldfilename.doc&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;To:&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;NewFilename&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;text&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;200px&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;!--StartFragment--&gt; &lt;!-- {\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Courier New;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red163\green21\blue21;\red255\green0\blue0;\red255\green238\blue98;}??\fs20             \cf3 &lt;\cf4 a\cf0  \cf5 style\cf3 =&quot;\cf5 cursor\cf0 :\cf3 hand\cf0 ;\cf5 text-decoration\cf0 :\cf3 underline\cf0 ;\cf5 color\cf0 :\cf3 Blue&quot;\cf0  \cf5 onclick\cf3 =&quot;javascript:RenameFile(&#39;\cf0\cb6\highlight6 &lt;%\cb0\highlight0 = Html.Encode(doc.FileName) \cb6\highlight6 %&gt;\cf3\cb0\highlight0 &#39;,\cf0\cb6\highlight6 &lt;%\cb0\highlight0 = doc.PathID \cb6\highlight6 %&gt;\cf3\cb0\highlight0 )&quot;&gt;\cf0 rename\cf3 &lt;/\cf4 a\cf3 &gt;\par ??} --&gt; &lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;div style=&quot;font-family: Courier New; font-size: 10pt; color: black; background: white;&quot;&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;cursor&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;hand&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt;text-decoration&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;underline&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt;color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;Blue&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;javascript:RenameFile(&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffee62;&quot;&gt;&amp;lt;%&lt;/span&gt;= Html.Encode(doc.FileName) &lt;span style=&quot;background: #ffee62;&quot;&gt;%&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;,&lt;/span&gt;&lt;span style=&quot;background: #ffee62;&quot;&gt;&amp;lt;%&lt;/span&gt;= doc.PathID &lt;span style=&quot;background: #ffee62;&quot;&gt;%&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;)&quot;&gt;&lt;/span&gt;rename&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;!--EndFragment--&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt; &lt;/div&gt; &lt;!--EndFragment--&gt;&lt;p&gt;&lt;/p&gt; &lt;/div&gt; &lt;!--EndFragment--&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/6244511156848866239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/10/how-to-create-modal-dialog-in-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6244511156848866239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6244511156848866239'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/10/how-to-create-modal-dialog-in-jquery.html' title='How to create a modal dialog in jQuery and prevent scrolling in background'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcSUf7cHxLs2dn_kRYzSWin4QBGVkl71GA9zr-GJ83xtcIWW63eq9wV6FD3Sx8y9edULwEcONIMC8UKZW07Arc69QRXryWjHzaBmVx-iRKTvsYAW6QvH8AZY-07hLuSslLgdqZKOgZi0/s72-c/jQueryDialog.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-6764850090389691112</id><published>2010-09-29T06:31:00.000-07:00</published><updated>2010-09-29T06:56:37.639-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System.Web.Security.MembershipCreateStatus"/><category scheme="http://www.blogger.com/atom/ns#" term="Unresolved type"/><category scheme="http://www.blogger.com/atom/ns#" term="upgrading"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2008"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>How to resolve unresolved type System.Web.Security.MembershipCreateStatus which appears after converting from vs2008 to vs2010</title><content type='html'>I upgraded a project I was working on from vs2008 to vs2010 and started getting an error for an unresolved type: &lt;span class=&quot;Apple-style-span&quot;&gt;System.Web.Security.MembershipCreateStatus.&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;My project was targeting the .NET Framework 3.5 and during the conversion, I selected not to change the target to the .NET Framework 4.0.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;         &lt;/div&gt;&lt;/div&gt;&lt;div&gt;This issue was occurring in my Test project which was generated automatically when I created an MVC 2 project in vs2008.  In vs2010, test projects cannot target the 3.5 Framework (by design). The quick fix was to delete AccountController.cs in the test project.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A better solution would be create another MVC2 project in vs2010 and use the generated Test project.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/6764850090389691112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-resolve-unresolved-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6764850090389691112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6764850090389691112'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-resolve-unresolved-type.html' title='How to resolve unresolved type System.Web.Security.MembershipCreateStatus which appears after converting from vs2008 to vs2010'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-1839152991674749392</id><published>2010-09-23T08:27:00.000-07:00</published><updated>2010-09-23T10:18:08.061-07:00</updated><title type='text'>How to add a configuration file to your class library</title><content type='html'>I have a web project with some configuration settings in the web.config.  I added a class library to the project and realized I could not access those values from the class library.  The solution is to add an app.config file to the class library project and copy the configuration settings from the web.config to the app.config.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To access ConfigurationManager from the class library, I need to add a reference to the System.Configuration .Net assembly.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you don&#39;t like having the settings in both places, you could retrieve the configuration values for the web application by using the class library (app.config), and remove the configuration values from the web.config.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/1839152991674749392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-add-configuration-file-to-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/1839152991674749392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/1839152991674749392'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-add-configuration-file-to-your.html' title='How to add a configuration file to your class library'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-6459057669573437591</id><published>2010-09-22T11:28:00.000-07:00</published><updated>2010-09-22T11:45:50.763-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cell"/><category scheme="http://www.blogger.com/atom/ns#" term="Column"/><category scheme="http://www.blogger.com/atom/ns#" term="Insert"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Tab"/><category scheme="http://www.blogger.com/atom/ns#" term="Table"/><category scheme="http://www.blogger.com/atom/ns#" term="Word"/><title type='text'>How to insert a tab in Microsoft Word when your cursor is in a table cell</title><content type='html'>When you&#39;re working in a table in Word, the tab key will bring you to the next cell (not insert a tab).&lt;br /&gt;&lt;br /&gt;When you want to insert a tab, use [Ctrl][Tab] instead&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNediryQt2N9gInWrCDqwMJvyxb7zt1nYLG71-M_jeIJToTJCyTkNzkxuS8d81aM-nJ608ME1OtK1p-6l9yFxBaDCuKJFFU8WmEJJn73cxsrswtWP8tFkMNl2IV1KsSdxTkNj-T7cSrmU/s1600/ctrltab.JPG&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 400px; height: 175px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNediryQt2N9gInWrCDqwMJvyxb7zt1nYLG71-M_jeIJToTJCyTkNzkxuS8d81aM-nJ608ME1OtK1p-6l9yFxBaDCuKJFFU8WmEJJn73cxsrswtWP8tFkMNl2IV1KsSdxTkNj-T7cSrmU/s400/ctrltab.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5519810239263390082&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/6459057669573437591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-insert-tab-in-microsoft-word.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6459057669573437591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6459057669573437591'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-insert-tab-in-microsoft-word.html' title='How to insert a tab in Microsoft Word when your cursor is in a table cell'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNediryQt2N9gInWrCDqwMJvyxb7zt1nYLG71-M_jeIJToTJCyTkNzkxuS8d81aM-nJ608ME1OtK1p-6l9yFxBaDCuKJFFU8WmEJJn73cxsrswtWP8tFkMNl2IV1KsSdxTkNj-T7cSrmU/s72-c/ctrltab.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-999831924404996043</id><published>2010-09-21T06:22:00.001-07:00</published><updated>2010-09-21T06:30:58.737-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flowcharts"/><category scheme="http://www.blogger.com/atom/ns#" term="Free"/><category scheme="http://www.blogger.com/atom/ns#" term="Gliffy"/><category scheme="http://www.blogger.com/atom/ns#" term="Online"/><category scheme="http://www.blogger.com/atom/ns#" term="Visio"/><title type='text'>How to create FREE flowcharts online</title><content type='html'>&lt;div&gt;This is a pretty cool product. &lt;a href=&quot;http://www.gliffy.com/&quot; target=&quot;_blank&quot;&gt;http://www.gliffy.com&lt;/a&gt; It&#39;s easy to use like Visio, which no longer comes with my MSDN subscription :( . You can create .pdf, png or jpgs.&lt;/div&gt;&lt;p align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyvgIAlamAtP5pV8099ue3CXeUgJcUdDdi9Ibwm0QNvA0KM7URyvHgUqxIjXZiHA-GwHE8DF_Iwak8VS-Vx5zK2NFxXMRC4rdJBiNSIzpQrG5IXJuuL9IJaNwE2izkhCVYm64q3YesJaI/s1600/flowchart.jpg&quot;&gt;&lt;img style=&quot;WIDTH: 400px; HEIGHT: 362px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5519358104732210626&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyvgIAlamAtP5pV8099ue3CXeUgJcUdDdi9Ibwm0QNvA0KM7URyvHgUqxIjXZiHA-GwHE8DF_Iwak8VS-Vx5zK2NFxXMRC4rdJBiNSIzpQrG5IXJuuL9IJaNwE2izkhCVYm64q3YesJaI/s400/flowchart.jpg&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/999831924404996043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-create-free-flowcharts-online.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/999831924404996043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/999831924404996043'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-create-free-flowcharts-online.html' title='How to create FREE flowcharts online'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyvgIAlamAtP5pV8099ue3CXeUgJcUdDdi9Ibwm0QNvA0KM7URyvHgUqxIjXZiHA-GwHE8DF_Iwak8VS-Vx5zK2NFxXMRC4rdJBiNSIzpQrG5IXJuuL9IJaNwE2izkhCVYm64q3YesJaI/s72-c/flowchart.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-6474154746314961004</id><published>2010-09-20T05:49:00.000-07:00</published><updated>2010-09-20T05:56:28.463-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Display"/><category scheme="http://www.blogger.com/atom/ns#" term="Hidden Files"/><category scheme="http://www.blogger.com/atom/ns#" term="Hidden Folders"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>How to display hidden files and folders in Windows 7</title><content type='html'>1. Start | Control Panel | View By: Category&lt;div&gt;2. Click Appearance and Personalization&lt;/div&gt;&lt;div&gt;3. Below &quot;Folder Options&quot; there is a link for &quot;Show hidden files and folders&quot;&lt;/div&gt;&lt;div&gt;4. Then select the radio button &quot;Show hidden files, folders and drives&quot;&lt;/div&gt;&lt;div&gt;5. Click [ok]&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/6474154746314961004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-display-hidden-files-and-folders.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6474154746314961004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/6474154746314961004'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-display-hidden-files-and-folders.html' title='How to display hidden files and folders in Windows 7'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-171906850753170466</id><published>2010-09-20T00:35:00.000-07:00</published><updated>2010-09-20T11:02:01.065-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Hidden"/><category scheme="http://www.blogger.com/atom/ns#" term="Hidden Field"/><category scheme="http://www.blogger.com/atom/ns#" term="Html.HiddenFor"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>How to use a hidden input in MVC</title><content type='html'>&lt;div&gt;While working on an e-commerce site, I needed to update my order total and submit it with the other form variables. My order total displayed to the user was just text, which doesn&#39;t get passed to the controller when submitted, so I needed a hidden input that I could update.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;My html looks like this:&lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;font-family: consolas&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: red&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&quot;display_currency&quot;&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: red&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&quot;totalprice&quot;&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&gt;&lt;/span&gt;$0.00&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;background: yellow&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt; Html.HiddenFor(m=&gt;m.TotalOrder) &lt;span style=&quot;background: yellow&quot;&gt;%&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;and my javascript.  (snippet is from an UpdateTotal() function)&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: consolas; white-space: pre; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: consolas; white-space: pre; &quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;var&lt;/span&gt; total = 500.25&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: consolas; white-space: pre; &quot;&gt;$(&lt;span style=&quot;color: maroon&quot;&gt;&quot;#totalprice&lt;/span&gt;&quot;).html&lt;span style=&quot;color: maroon&quot;&gt;(&quot;$&lt;/span&gt;&quot; + total.toFixed(2));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;font-family: consolas&quot;&gt;$&lt;span style=&quot;color: maroon&quot;&gt;(&quot;#TotalOrder&lt;/span&gt;&quot;).val(total.toFixed(2));&lt;span style=&quot;color: darkgreen&quot;&gt; //hidden control for mode&lt;/span&gt;l&lt;/pre&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;when submitting the form, the model contains the correct value for TotalOrder&lt;div&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/171906850753170466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-display-and-update-hidden-input.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/171906850753170466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/171906850753170466'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-display-and-update-hidden-input.html' title='How to use a hidden input in MVC'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1411116192370663366.post-755394929831477247</id><published>2010-09-18T19:07:00.000-07:00</published><updated>2010-09-20T01:08:28.202-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Color Syntax"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML Copy"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>How to copy color syntax from VS2010 to Blogger</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;div&gt;&lt;b&gt;Update:  &lt;/b&gt;I just noticed that this is working in Chrome (which is what I usually use), but on in Internet Explorer 8&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step 1:&lt;/b&gt;  Install &lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef&quot;&gt;Productivity Power Tools&lt;/a&gt; (which include HTML copy)&lt;/span&gt;&lt;div&gt;&lt;a href=&quot;http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef&quot;&gt;&lt;/a&gt;&lt;b&gt;Step 2:&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; Highlight some code and copy to the clipboard with [Ctrl][c]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step 3:&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; In Blogger, paste with [Ctrl][v]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;If pasting HTML, you&#39;ll need to encode your less than signs.  (Change &amp;lt; to &amp;amp;lt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;pre style=&quot;font-family: consolas&quot;&gt;               &lt;span style=&quot;color: blue&quot;&gt;switch&lt;/span&gt; (pricedisplaytype)&lt;br /&gt;         {&lt;br /&gt;            &lt;span style=&quot;color: blue&quot;&gt;case&lt;/span&gt; (&lt;span style=&quot;color: blue&quot;&gt;int&lt;/span&gt;)&lt;span style=&quot;color: #2b91af&quot;&gt;ProductPriceDisplayType&lt;/span&gt;.DontShowPrice:&lt;br /&gt;               item.ItemTitle = description;&lt;br /&gt;               &lt;span style=&quot;color: blue&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;            &lt;span style=&quot;color: blue&quot;&gt;case&lt;/span&gt; (&lt;span style=&quot;color: blue&quot;&gt;int&lt;/span&gt;)&lt;span style=&quot;color: #2b91af&quot;&gt;ProductPriceDisplayType&lt;/span&gt;.ShowPriceEach:&lt;br /&gt;               item.ItemTitle = &lt;span style=&quot;color: #2b91af&quot;&gt;String&lt;/span&gt;.Format(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;{0} (${1:n3} each)&quot;&lt;/span&gt;, description, qty.Price / qty.Quantity);&lt;br /&gt;               &lt;span style=&quot;color: blue&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;            &lt;span style=&quot;color: blue&quot;&gt;case&lt;/span&gt; (&lt;span style=&quot;color: blue&quot;&gt;int&lt;/span&gt;)&lt;span style=&quot;color: #2b91af&quot;&gt;ProductPriceDisplayType&lt;/span&gt;.ShowTotalPrice:&lt;br /&gt;               item.ItemTitle = &lt;span style=&quot;color: #2b91af&quot;&gt;String&lt;/span&gt;.Format(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;{0} (${1:n2})&quot;&lt;/span&gt;, description, qty.Price);&lt;br /&gt;               &lt;span style=&quot;color: blue&quot;&gt;break&lt;/span&gt;;&lt;br /&gt;         }&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://craigmhoward.blogspot.com/feeds/755394929831477247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-copy-color-syntax-from-vs2010-to_18.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/755394929831477247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1411116192370663366/posts/default/755394929831477247'/><link rel='alternate' type='text/html' href='http://craigmhoward.blogspot.com/2010/09/how-to-copy-color-syntax-from-vs2010-to_18.html' title='How to copy color syntax from VS2010 to Blogger'/><author><name>Craig Howard</name><uri>http://www.blogger.com/profile/03438590138407787283</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifWp4IqYXVuJmvUkGr-fhnUsRBCSaVjGZnr07PJBUAJLU9tnTb9RRapOJHs3bCuKMBMIhigYRcDd3AXHoUtoHu0sIEs0UW9XtdFmvz83CXZoCXkaeRxr4lrNQ5ix06eKs/s220/craigzoom.jpg'/></author><thr:total>0</thr:total></entry></feed>