<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-597005046064074832</id><updated>2011-12-07T11:56:00.103+02:00</updated><category term='SiteCore'/><category term='Visual Studio'/><category term='ASP.NET 2.0 Directives Page Control Assembly'/><category term='protocol'/><category term='life-cycle'/><category term='SQL'/><category term='TIP'/><category term='CryptographicException'/><category term='Outlook'/><category term='free'/><category term='NET'/><category term='blogspot'/><category term='INSERT'/><category term='parent'/><category term='events'/><category term='reply'/><category term='Change'/><category term='column'/><category term='localhost'/><category term='Form'/><category term='validation'/><category term='ASP.NET'/><category term='dangerous'/><category term='HTTP'/><category term='Request'/><category term='Sacha Barber'/><category term='Could not'/><category term='WebMethod'/><category term='message'/><category term='flag'/><category term='not'/><category term='attributes'/><category term='essentials'/><category term='Debugging'/><category term='can&apos;t'/><category term='Error'/><category term='Page'/><category term='UpdatePanel'/><category term='acceptchanges'/><category term='aspx'/><category term='navigation bar'/><category term='table'/><category term='Shareware software development'/><category term='NameValueCollection'/><category term='forward'/><category term='type'/><category term='MSN'/><category term='datatable'/><category term='controls'/><category term='GridView'/><category term='80072745'/><category term='Async'/><category term='2007'/><category term='IIS'/><category term='data-bound'/><category term='beta'/><category term='webservice'/><category term='Eval'/><category term='hidden'/><category term='UAC'/><category term='2.0'/><category term='FileUpload'/><category term='Failed'/><category term='JavaScript'/><category term='remove'/><category term='Entity Framework'/><category term='Basic'/><category term='.NET'/><category term='Excel'/><category term='Bind'/><category term='closed'/><category term='Vista'/><category term='inline'/><category term='client'/><category term='headers'/><category term='connection'/><category term='lines'/><category term='INDEX'/><category term='AJAX'/><category term='load'/><category term='tag'/><category term='2003'/><category term='faceid'/><category term='mailitem'/><category term='Programming'/><category term='Name'/><category term='New'/><category term='QueryString'/><category term='NavBar'/><category term='delete'/><category term='vs2010'/><category term='Convert'/><category term='hide'/><category term='folders'/><category term='Concepts'/><category term='update'/><category term='row'/><category term='Instance'/><category term='Solve'/><category term='Employer'/><category term='common'/><category term='26'/><category term='exam'/><category term='enum'/><category term='turn off'/><category term='guide'/><category term='login'/><category term='Error 0019'/><category term='howto'/><category term='deployment'/><category term='Server'/><category term='files'/><category term='ASP'/><category term='pipeline'/><category term='ARITHABORT'/><category term='Beginner'/><category term='cell'/><category term='2005'/><category term='create'/><category term='blogger'/><category term='.NET 4.0'/><category term='Error Code'/><category term='Tooltip'/><category term='potentially'/><category term='IE'/><category term='VS2005'/><category term='data'/><category term='WPF'/><category term='binding'/><title type='text'>Developer's blog :)</title><subtitle type='html'>.NET Software Development tasks using such technologies: ASP.NET, WPF, WinForms, ADO.NET, Entity Framework, SQL.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-2757035325141878485</id><published>2011-02-10T15:45:00.001+02:00</published><updated>2011-02-10T15:45:29.291+02:00</updated><title type='text'>VS2010 Tips: How to make jQuery Intellisense work for external JavaScript file</title><content type='html'>&lt;p&gt;Simply drag-n-drop the jQuery library from Solution Explorer to the opened external JavaScript file. &lt;/p&gt;  &lt;p&gt;&lt;img title="image" border="0" alt="image" src="http://blog.meidianto.com/wp-content/uploads/2010/05/image11.png" width="529" height="262" /&gt;&lt;/p&gt;  &lt;p&gt;The Intellisense should work now.&lt;/p&gt;  &lt;p&gt;&lt;img title="image" border="0" alt="image" src="http://blog.meidianto.com/wp-content/uploads/2010/05/image12.png" width="503" height="259" /&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-2757035325141878485?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/2757035325141878485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=2757035325141878485' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2757035325141878485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2757035325141878485'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2011/02/vs2010-tips-how-to-make-jquery.html' title='VS2010 Tips: How to make jQuery Intellisense work for external JavaScript file'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-1298088782621043010</id><published>2011-01-31T22:49:00.000+02:00</published><updated>2011-01-31T22:49:22.739+02:00</updated><title type='text'>Windows Azure SDK: connecting to non SQLExpress Instance</title><content type='html'>&lt;h1 class="entry-title"&gt;&lt;/h1&gt;&lt;div class="entry-meta"&gt;       &lt;span class="meta-prep meta-prep-author"&gt;&lt;/span&gt;&lt;span class="author vcard"&gt;&lt;a class="url fn n" href="http://kristofmattei.be/author/kristof/" title="View all posts by Kristof"&gt;&lt;/a&gt;&lt;/span&gt;     &lt;/div&gt;&lt;div class="entry-content"&gt;       When you want to build an Azure application, but you don’t have  SQL Express installed the build action in Visual Studio will fail.&lt;br /&gt;You will receive the following message in your output window:&lt;br /&gt;&lt;blockquote&gt;Windows Azure Tools: Failed to initialize the Development  Storage service. Unable to start Development Storage. Failed to start  Development Storage: the SQL Server instance ‘localhost\SQLExpress’  could not be found. Please configure the SQL Server instance for  Development Storage using the ‘DSInit’ utility in the Windows Azure SDK.&lt;/blockquote&gt;To fix this you open the Windows Azure SDK Command Prompt:&lt;br /&gt;&lt;a href="http://kristofmattei.be/wp-content/uploads/2010/01/image2.png" rel="lightbox[883]"&gt;&lt;img alt="Windows Azure SDK Command Prompt" height="388" src="http://kristofmattei.be/wp-content/uploads/2010/01/image_thumb2.png" style="display: inline;" title="Windows Azure SDK Command Prompt" width="429" /&gt;&lt;/a&gt;&lt;br /&gt;And enter the following text:&lt;br /&gt;&lt;pre&gt;dsinit /sqlinstance:.&lt;/pre&gt;&lt;a href="http://kristofmattei.be/wp-content/uploads/2010/01/image3.png" rel="lightbox[883]"&gt;&lt;img alt="dsinit /sqlinstance:." height="342" src="http://kristofmattei.be/wp-content/uploads/2010/01/image_thumb3.png" style="display: inline; width: 658px;" title="dsinit /sqlinstance:." width="677" /&gt;&lt;/a&gt;&lt;br /&gt;This will cause Azure to use the default instance (with no name). You  can switch this to whatever you like, just replace the . (dot) by the  appropriate MS SQL instance.&lt;br /&gt;The result will look like this:&lt;br /&gt;&lt;a href="http://kristofmattei.be/wp-content/uploads/2010/01/image5.png" rel="lightbox[883]"&gt;&lt;img alt="Development Storage Initialization" height="372" src="http://kristofmattei.be/wp-content/uploads/2010/01/image_thumb5.png" style="display: inline;" title="Development Storage Initialization" width="484" /&gt;&lt;/a&gt; &lt;br /&gt;Good luck, happy coding.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-1298088782621043010?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/1298088782621043010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=1298088782621043010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1298088782621043010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1298088782621043010'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2011/01/windows-azure-sdk-connecting-to-non.html' title='Windows Azure SDK: connecting to non SQLExpress Instance'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-8333704955355624539</id><published>2011-01-17T23:49:00.000+02:00</published><updated>2011-01-17T23:49:16.031+02:00</updated><title type='text'>How to Fix "PageHandlerFactory-Integrated" bad module "ManagedPipelineHandler in IIS7</title><content type='html'>After setting up a new Windows 7 computer with IIS 7.5 and Visual Studio 2010, I tried to start my ASP.NET 4.0 website using the Local IIS web server.  However, right off the bat I was hit with the following IIS error message:&lt;br /&gt;&lt;br /&gt;HTTP Error 500.21 - Internal Server Error&lt;br /&gt;Handler 'PageHandlerFactory-Integrated' has a bad module 'ManagedPipelineHandler' in its module list.&lt;br /&gt;&lt;br /&gt;Apparently, the reason I was recieving the Internal Server error message was that I had installed SQL Server 2008, after installing Visual Studio 2010, and because of this it corrupted the IIS Machine level configuration files ('If you install VS2010 and then install VS2008 and VS2008 SP1, the configuration files for ASP.NET in IIS only include about 1/2 of the correct .Net 4.0 configuration sections.' read more here).&lt;br /&gt;&lt;br /&gt;To repair this problem I ran a full silent repair of the .NET Framework 4.0.   Here's how on either a 32 bit or 64 bit computer:&lt;br /&gt;&lt;br /&gt;  1. Click Start -&amp;gt; All Programs -&amp;gt; Accessories -&amp;gt; Run&lt;br /&gt;  2. In the Open textbox paste in the following line (see list of all .NET Framework version install, repair and unistall command lines here):&lt;br /&gt;&lt;br /&gt;     For silent repair on 32 bit computer with .Net Framework version 4.0.30319 use:&lt;br /&gt;&lt;br /&gt;     %windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart&lt;br /&gt;&lt;br /&gt;     For silent repair on 64 bit computer with .Net Framework version 4.0.30319 use:&lt;br /&gt;&lt;br /&gt;     %windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart&lt;br /&gt;&lt;br /&gt;  3. Click OK to start the repair&lt;br /&gt;  4. After, the repair ran for a few minutes, I restarted IIS 7.5, and things began to work correctly!&lt;br /&gt;&lt;br /&gt;Hopefully, that will work for you...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-8333704955355624539?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.gotknowhow.com/articles/fix-bad-module-managedpipelinehandler-in-iis7' title='How to Fix &quot;PageHandlerFactory-Integrated&quot; bad module &quot;ManagedPipelineHandler in IIS7'/><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/8333704955355624539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=8333704955355624539' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8333704955355624539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8333704955355624539'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2011/01/how-to-fix-pagehandlerfactory.html' title='How to Fix &quot;PageHandlerFactory-Integrated&quot; bad module &quot;ManagedPipelineHandler in IIS7'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-7998850478191544153</id><published>2011-01-10T15:51:00.000+02:00</published><updated>2011-01-10T15:51:26.941+02:00</updated><title type='text'>Microsoft Campus Tours - Microsoft Research Part 3 - The Model Shop | Microsoft Campus Tours | Channel 9</title><content type='html'>&lt;a href="http://channel9.msdn.com/Series/CampusTours/Microsoft-Campus-Tours-Microsoft-Research-Part-3-The-Model-Shop"&gt;Microsoft Campus Tours - Microsoft Research Part 3 - The Model Shop | Microsoft Campus Tours | Channel 9&lt;/a&gt;:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-7998850478191544153?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://channel9.msdn.com/Series/CampusTours/Microsoft-Campus-Tours-Microsoft-Research-Part-3-The-Model-Shop' title='Microsoft Campus Tours - Microsoft Research Part 3 - The Model Shop | Microsoft Campus Tours | Channel 9'/><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/7998850478191544153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=7998850478191544153' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7998850478191544153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7998850478191544153'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2011/01/microsoft-campus-tours-microsoft.html' title='Microsoft Campus Tours - Microsoft Research Part 3 - The Model Shop | Microsoft Campus Tours | Channel 9'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-7597884376963238360</id><published>2011-01-09T15:25:00.000+02:00</published><updated>2011-01-09T15:25:16.724+02:00</updated><title type='text'>7 Exciting Web Development Trends for 2011</title><content type='html'>Nice article about development trends&lt;br /&gt;&lt;a href="http://net.tutsplus.com/articles/general/7-exciting-web-development-trends-for-2011"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;P.S. Thanks to Udger for the link :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-7597884376963238360?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/7597884376963238360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=7597884376963238360' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7597884376963238360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7597884376963238360'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2011/01/7-exciting-web-development-trends-for.html' title='7 Exciting Web Development Trends for 2011'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5773427746903863262</id><published>2011-01-08T00:01:00.000+02:00</published><updated>2011-01-08T00:01:35.173+02:00</updated><title type='text'>ASP.NET Cookies Expires property is not initialized</title><content type='html'>It appears that you cannot read is the cookie's expiration date and time - HttpCookie.Expires property. It turns out that when the browser sends cookie information to the server, the browser does not include the expiration information. You can read the Expires property, but it always returns a date-time value of zero.&lt;br /&gt;&lt;br /&gt;Browser is responsible for managing cookies; the Expires property is an example of this. The primary purpose of the Expires property is to help the browser perform housekeeping on its store of cookies. From the server's perspective, the cookie either exists or it does not; the expiration is not a useful piece of information on the server side. Therefore, the browser does not provide this information when it sends the cookie. If you are concerned about the expiration date of a cookie, you must reset it.&lt;br /&gt;&lt;br /&gt;At times you might want to modify a cookie, perhaps to change its value or to extend its expiration. (Remember that you cannot read a cookie's expiration date because the browser does not pass the expiration information to the server.)&lt;br /&gt;&lt;br /&gt;You do not really directly change a cookie, of course. Although you can get a cookie from the Request.Cookies collection and manipulate it, the cookie itself still lives someplace on the user's hard disk. So modifying a cookie really consists of creating a new cookie with new values and then sending the cookie to the browser to overwrite the old version on the client.&lt;br /&gt;&lt;br /&gt;The following example shows how you might change the value of a cookie that stores a count of the user's visits to the site:&lt;br /&gt;&lt;br /&gt;Dim counter As Integer&lt;br /&gt;If Request.Cookies("counter") Is Nothing Then&lt;br /&gt;    counter = 0&lt;br /&gt;Else&lt;br /&gt;    counter = CInt(Request.Cookies("counter").Value)&lt;br /&gt;End If&lt;br /&gt;counter += 1&lt;br /&gt;Response.Cookies("counter").Value = counter.ToString&lt;br /&gt;Response.Cookies("counter").Expires = DateTime.Now.AddDays(1)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa289495%28v=vs.71%29.aspx"&gt;Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5773427746903863262?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5773427746903863262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5773427746903863262' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5773427746903863262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5773427746903863262'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2011/01/aspnet-cookies-expires-property-is-not.html' title='ASP.NET Cookies Expires property is not initialized'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-2404085280101526958</id><published>2010-04-06T00:11:00.001+03:00</published><updated>2010-04-06T00:11:09.536+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Entity Framework'/><category scheme='http://www.blogger.com/atom/ns#' term='Error 0019'/><title type='text'>Entity Framework Error 0019</title><content type='html'>&lt;p&gt;I’ve got this error while refactoring a project that contains an Entity Data Model.&amp;#160; I’ve tried to google and find good solution.&amp;#160; Here it is:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_j5Qttpe542Y/S7pR4dTHWeI/AAAAAAAAF3g/bzvmqGhmkCE/s1600-h/image%5B3%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_j5Qttpe542Y/S7pR5rCfX8I/AAAAAAAAF3k/9VwsxsR19p4/image_thumb%5B1%5D.png?imgmax=800" width="632" height="423" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;Errors:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;BAModel.csdl(3,4) : error 0019: The EntityContainer name must be unique. An EntityContainer with the name 'BAEntities' is already defined.     &lt;br /&gt;BAModel.csdl(118,4) : error 0019: Each type name in a schema must be unique. Type name 'BAModel.Activity' was already defined.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;One reason you might see this is if you have two models in a project that have the same schema. Maybe you decided to start your model over from scratch.&lt;/p&gt;  &lt;p&gt;But in this scenario, that was not the case. It turned out that the problem was because &lt;strong&gt;I had changed the assembly name of the project that contained the model. The reference to the original assembly was still in the client application's BIN folder along with the new one.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_j5Qttpe542Y/S7pR6TiA7aI/AAAAAAAAF3o/PZ4QnwnRF4k/s1600-h/image%5B7%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_j5Qttpe542Y/S7pR7OpypuI/AAAAAAAAF3s/O9e6lB3FW4E/image_thumb%5B3%5D.png?imgmax=800" width="326" height="465" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Entity Framework was attempting to load the metadata files from both assemblies and detected the conflict.&lt;/p&gt;  &lt;p&gt;Cleaning the project didn't fix the problem. The leftover assembly was still there.. I had to delete the dll and pdb file manually. &lt;/p&gt;  &lt;p&gt;I first came across this problem and fixed it last week. But it happened again with another solution today and took me a while to remember the cause and the fix. The older I get, the more I need to rely on my blog for retaining that which my memory seems to be incapable of storing away.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://thedatafarm.com/blog/data-access/entity-framework-error-0019/" target="_blank"&gt;Original solution&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-2404085280101526958?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/2404085280101526958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=2404085280101526958' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2404085280101526958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2404085280101526958'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2010/04/entity-framework-error-0019.html' title='Entity Framework Error 0019'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_j5Qttpe542Y/S7pR5rCfX8I/AAAAAAAAF3k/9VwsxsR19p4/s72-c/image_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-4587862971408793553</id><published>2010-04-01T15:27:00.001+03:00</published><updated>2010-04-01T15:30:52.407+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SiteCore'/><category scheme='http://www.blogger.com/atom/ns#' term='CryptographicException'/><title type='text'>Sitecore - CryptographicException file not found</title><content type='html'>&lt;p&gt;I’ve got an issue with CryptographicException file not found in Sitecore. See details below &lt;/p&gt;  &lt;blockquote&gt;   &lt;h3&gt;&lt;font color="#ffff00"&gt;Server Error in '/' Application.        &lt;hr size="1" width="100%" /&gt;&lt;/font&gt;&lt;/h3&gt;    &lt;h4&gt;&lt;i&gt;&lt;font color="#ffff00"&gt;The system cannot find the file specified.         &lt;br /&gt;&lt;/font&gt;&lt;/i&gt;&lt;/h4&gt;   &lt;font color="#ffff00"&gt;&lt;b&gt;Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.       &lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Security.Cryptography.CryptographicException: The system cannot find the file specified.      &lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt;&lt;/font&gt;    &lt;p&gt;&lt;code&gt;&lt;font color="#ffff00"&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/font&gt;&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;&lt;b&gt;&lt;font color="#ffff00"&gt;Stack Trace:&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p&gt;&lt;code&gt;&lt;font color="#ffff00"&gt;&lt;/font&gt;&lt;/code&gt;&lt;/p&gt;    &lt;pre&gt;&lt;font color="#ffff00"&gt;[CryptographicException: The system cannot find the file specified.&lt;br /&gt;]&lt;br /&gt;   System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) +7715070&lt;br /&gt;   System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters) +258&lt;br /&gt;   System.Security.Cryptography.DSA.FromXmlString(String xmlString) +501&lt;br /&gt;   Sitecore.Nexus.Licensing.NexusLicenseApi.(String xml, Guid instance) +124&lt;br /&gt;   Sitecore.Nexus.Licensing.NexusLicenseApi.GetSnapShot(Guid instance) +683&lt;br /&gt;   Sitecore.SecurityModel.License.LicenseManager.GetSnapshotData(Guid instance) +47&lt;br /&gt;   Sitecore.SecurityModel.License.LicenseManager.UpdateSnapshot() +70&lt;br /&gt;   Sitecore.SecurityModel.License.LicenseManager.Initialize() +8&lt;br /&gt;   Sitecore.Nexus.Web.HttpModule.Application_Start() +76&lt;br /&gt;   Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +435&lt;br /&gt;   System.Web.HttpApplication.InitModulesCommon() +65&lt;br /&gt;   System.Web.HttpApplication.InitModules() +43&lt;br /&gt;   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729&lt;br /&gt;   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298&lt;br /&gt;   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107&lt;br /&gt;   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;  &lt;font color="#ffff00"&gt;&lt;br /&gt;    &lt;hr size="1" width="100%" /&gt;&lt;b&gt;Version Information:&lt;/b&gt; Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927&lt;/font&gt; &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;After hours of trying to find the solution I’ve found out that this is IIS settings issue.&amp;#160;&amp;#160; This issue was caused by MVC 2 installation, unfortunately it’s uninstall didn’t help.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;To fix this:&lt;br /&gt;1. go to IIS Manager&lt;br /&gt;2. go to the application pool instance&lt;br /&gt;3. click advanced settings&lt;br /&gt;4. Under Process model, set Load User Profile to true&lt;br /&gt;Hope this will help!&lt;br /&gt;Eugene  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-4587862971408793553?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/4587862971408793553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=4587862971408793553' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4587862971408793553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4587862971408793553'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2010/04/sitecore-cryptographicexception-file.html' title='Sitecore - CryptographicException file not found'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-897838845704661413</id><published>2010-03-26T16:47:00.001+02:00</published><updated>2010-03-26T16:59:02.861+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blogger'/><category scheme='http://www.blogger.com/atom/ns#' term='NavBar'/><category scheme='http://www.blogger.com/atom/ns#' term='remove'/><category scheme='http://www.blogger.com/atom/ns#' term='navigation bar'/><category scheme='http://www.blogger.com/atom/ns#' term='hide'/><category scheme='http://www.blogger.com/atom/ns#' term='blogspot'/><title type='text'>How to Remove and Hide Blogger NavBar (Top Navigation Bar)</title><content type='html'>&lt;p&gt;I find this Navigation bar on top of the blog useless for me and readers of the blog.&lt;/p&gt;  &lt;p&gt;Unfortunately it’s not possible to hide this NavBar using blogger settings.&amp;#160;&amp;#160; But you can do this manually editing Html of the page and adding needed CSS class there.&amp;#160; Here are the instructions:&lt;/p&gt;  &lt;li&gt;Login to Blogger. &lt;/li&gt;  &lt;li&gt;On the Blogger Dashboard, click on the &lt;strong&gt;Layout &lt;/strong&gt;link of the blog.     &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_j5Qttpe542Y/S6zJEuBSUhI/AAAAAAAAF2Y/jfYf1HPn46c/s1600-h/image%5B6%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_j5Qttpe542Y/S6zJFXI8oJI/AAAAAAAAF2c/XNRfSBezXQw/image_thumb%5B2%5D.png?imgmax=800" width="382" height="116" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/li&gt;  &lt;li&gt;The Edit HTML page under Layout tab should be loaded. If not, go to the tab. &lt;/li&gt;  &lt;li&gt;Search for the following line of code:    &lt;p&gt;&lt;code&gt;&lt;font size="3"&gt;&amp;lt;/style&amp;gt;&lt;/font&gt;&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;Then, add the following line of code before that line:&lt;/p&gt;    &lt;p&gt;&lt;code&gt;&lt;font size="3"&gt;#navbar-iframe{ display: none !important; }&lt;/font&gt;&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;The Blogger Classic Template uses iframe to load the NavBar, and styles it with ID named navbar-iframe. The name actually also works for new Blogger Widget Template too. &lt;/p&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt; &lt;/li&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-897838845704661413?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/897838845704661413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=897838845704661413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/897838845704661413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/897838845704661413'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2010/03/how-to-remove-and-hide-blogger-navbar.html' title='How to Remove and Hide Blogger NavBar (Top Navigation Bar)'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_j5Qttpe542Y/S6zJFXI8oJI/AAAAAAAAF2c/XNRfSBezXQw/s72-c/image_thumb%5B2%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-425386296425010493</id><published>2010-03-26T15:45:00.001+02:00</published><updated>2010-03-26T15:51:11.725+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='exam'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='free'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET 4.0'/><category scheme='http://www.blogger.com/atom/ns#' term='beta'/><category scheme='http://www.blogger.com/atom/ns#' term='vs2010'/><title type='text'>Register for Visual Studio 2010 Beta Exams</title><content type='html'>&lt;p&gt;&lt;/p&gt;  &lt;h5&gt;You are invited to take part in one or more beta exams for Visual Studio 2010 and the Microsoft .NET Framework 4.&lt;/h5&gt;  &lt;p&gt;If you pass one of the beta exams, the exam credit will be added to your transcript and you will not need to take the exam in its released form. The 71-xxx identifier is used for registering for beta versions of MCP exams, when the exam is released in its final form the 70-xxx identifier is used for registration.    &lt;br /&gt;By participating in beta exams, you have the opportunity to provide the Microsoft Certification program with feedback about exam content, which is integral to development of exams in their released version. We depend on the contributions of experienced IT professionals and developers as we continually improve exam content and maintain the value of Microsoft certifications. The following exams are a part of this beta offering.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-511&amp;amp;locale=en-us"&gt;Exam 71-511, TS: Windows Applications Development with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a name="EDABAAAA"&gt;&lt;/a&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-515&amp;amp;locale=en-us"&gt;Exam 71-515, TS: Web Applications Development with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-513&amp;amp;locale=en-us"&gt;Exam 71-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-516&amp;amp;locale=en-us"&gt;Exam 71-516: TS: Accessing Data with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-518&amp;amp;locale=en-us"&gt;Exam 71-518: Pro: Designing and Developing Windows Applications Using Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-519&amp;amp;locale=en-us"&gt;Exam 71-519: Pro: Designing and Developing Web Applications Using Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;hr align="center" size="1" width="100%" noshade="noshade" /&gt;  &lt;p&gt;&lt;b&gt;Availability&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Registration begins: March 17, 2010&lt;/p&gt;  &lt;p&gt;Beta exam period runs: April 5, 2010 – April 30, 2010&lt;/p&gt;  &lt;p&gt;Receiving this invitation does not guarantee you a seat in the beta; we recommend that you register as soon as registration opens. Beta exams have limited availability and are operated under a first-come-first-served basis. Once all beta slots are filled, no additional seats will be offered. &lt;b&gt;If you register, please ensure you are committed to attend.&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Testing is held at Prometric testing centers worldwide, although this exam may not be available in all countries (&lt;i&gt;see Regional Restrictions&lt;/i&gt;). All testing centers will have the capability to offer this exam in its live version.&lt;/p&gt;  &lt;p&gt;&lt;i&gt;Regional Restrictions&lt;/i&gt;: India, Pakistan, China &lt;/p&gt;  &lt;hr align="center" size="1" width="100%" noshade="noshade" /&gt;  &lt;p&gt;&lt;a name="ECABAAAA"&gt;&lt;/a&gt;&lt;b&gt;Registration Information&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;You must register at least 24 hours prior to taking the exam.    &lt;br /&gt;Please use the following promotional codes when registering for your chosen exam(s): &lt;/p&gt;  &lt;table border="0" cellspacing="0" cellpadding="2" width="400"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;Exam Number&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;&lt;b&gt;Beta Code&lt;/b&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;71-511&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;511BC&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;71-515&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;515AA&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;71-513&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;513CD&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;71-516&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;516B1&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;71-518&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;518PE&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;b&gt;71-519&lt;/b&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;519ZS&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;To register in North America, please call: &lt;/p&gt;  &lt;p&gt;•Prometric: (800) 755-EXAM (800-755-3926)&lt;/p&gt;  &lt;p&gt;Outside the U.S./Canada, please contact: &lt;/p&gt;  &lt;p&gt;•Prometric: &lt;a href="http://www.register.prometric.com/ClientInformation.asp"&gt;http://www.register.prometric.com/ClientInformation.asp&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a name="EBABAAAA"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;hr align="center" size="1" width="100%" noshade="noshade" /&gt;  &lt;p&gt;&lt;b&gt;Test Information and Support&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;You are invited to take this beta exam at no charge.    &lt;br /&gt;You will be given four hours to complete the beta exam. Please plan accordingly. &lt;/p&gt;  &lt;p&gt;Find exam preparation information: &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-511&amp;amp;locale=en-us"&gt;Exam 70-511, TS: Windows Applications Development with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-515&amp;amp;locale=en-us"&gt;Exam 70-515, TS: Web Applications Development with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-513&amp;amp;locale=en-us"&gt;Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-516&amp;amp;locale=en-us"&gt;Exam 70-516: TS: Accessing Data with Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-518&amp;amp;locale=en-us"&gt;Exam 70-518: Pro: Designing and Developing Windows Applications Using Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-519&amp;amp;locale=en-us"&gt;Exam 70-519: Pro: Designing and Developing Web Applications Using Microsoft .NET Framework 4&lt;/a&gt;&lt;/p&gt;  &lt;hr align="center" size="1" width="100%" noshade="noshade" /&gt;  &lt;p&gt;&lt;a name="EAABAAAA"&gt;&lt;/a&gt;&lt;b&gt;Frequently Asked Questions&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;For Microsoft Certified Professional (MCP) help and information, you may log in to the MCP Web site at &lt;a href="http://www.microsoft.com/learning/mcp/"&gt;http://www.microsoft.com/learning/mcp/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;or contact your Regional Service Center: &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/learning/support/worldsites.asp"&gt;http://www.microsoft.com/learning/support/worldsites.asp&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;•&lt;a href="http://www.microsoft.com/learning/mcpexams/faq/procedures.mspx"&gt;What is a beta exam?&lt;/a&gt;&lt;u&gt; &lt;/u&gt;&lt;/p&gt;  &lt;p&gt;•&lt;a href="http://www.microsoft.com/learning/mcpexams/faq/procedures.mspx"&gt;Where can I learn more about the registration process?&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;•&lt;a href="http://www.microsoft.com/learning/mcpexams/status/beta.mspx"&gt;Where can I learn more about the beta exam invitation process?&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;•&lt;a href="http://www.microsoft.com/learning/mcp/newgen/default.mspx"&gt;Where can I learn more about the new structure of Microsoft Certification?&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;•&lt;a href="http://www.microsoft.com/learning/support/default.mspx"&gt;Who do I contact for help with this beta exam or other MCP questions? &lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-425386296425010493?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/425386296425010493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=425386296425010493' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/425386296425010493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/425386296425010493'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2010/03/register-for-visual-studio-2010-beta.html' title='Register for Visual Studio 2010 Beta Exams'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-7136090220230381585</id><published>2010-03-09T23:36:00.001+02:00</published><updated>2010-03-09T23:36:28.143+02:00</updated><title type='text'>SQL 2008 Management Tools: Can't save changes that require Recreation of Database</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;New stupid default setting in SQL Server's Management Tools: When you design a table in a database and then try to make a change to a table structure that requires the table to be recreated, the management tools will not allow you to save the changes. Instead you'll be greeted by this friendly dialog:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.west-wind.com/Weblog/images/200801/WindowsLiveWriter/SqlServerManagementToolsCant_10055/PreventSave2_2.png"&gt;&lt;img border="0" alt="PreventSave2" src="http://www.west-wind.com/Weblog/images/200801/WindowsLiveWriter/SqlServerManagementToolsCant_10055/PreventSave2_thumb.png" width="539" height="425" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Notice that there's no option to save the changes - it's a hard rule that is applied upon saving and you can get past this other than back out of the dialog.&lt;/p&gt;  &lt;p&gt;My first thought here is &amp;quot;Crap! Now what?&amp;quot; and off I go searching for an option to turn this off. Eventually I find a solution after a quick &lt;a href="http://msdn.microsoft.com/en-us/library/bb895146.aspx"&gt;search online&lt;/a&gt;. As it turns out it's just an annoying configuration default setting that can be easily changed, but if you're like me and you spend a while searching around the Management Tools and finding nothing initially, I ended up eventually backing out of my initial database changes and losing a bit of work in the process. It wasn't until a bit later that I found the setting to change. &lt;/p&gt;  &lt;p&gt;Hopefully you'll find this entry before you back out of database changes - you can get out of the above dialog, make the settings change and then still go ahead and save changes to your database. &lt;/p&gt;  &lt;p&gt;The fix is: Go to Tools | Options | Designers | Tables and Designers and uncheck the &lt;em&gt;Prevent Saving Changes&lt;/em&gt; &lt;em&gt;that require table re-creation &lt;/em&gt;option:&lt;/p&gt;  &lt;p&gt;&lt;img border="0" alt="PreventSavingChanges" src="http://www.west-wind.com/Weblog/images/200801/WindowsLiveWriter/SqlServerManagementToolsCant_10055/PreventSavingChanges_3.png" width="757" height="435" /&gt;&lt;/p&gt;  &lt;p&gt;and that does the trick. &lt;/p&gt;  &lt;p&gt;This is a pretty harsh change IMHO. While I think it's a good idea that the tools now detect table recreation changes and can notify you, I think the better option by far would have been to pop up that initial dialog with a warning message AND provide an option on the buttons to either go forward or abort. Instead this arcane switch is going to cause some pause for most people familiar with the old tool behavior. It's not like this option is easy to find - I looked in the database options before I finally found it in the global tool options.&lt;/p&gt;  &lt;p&gt;As it is, reverting back to the 'old' behavior now doesn't let you know that a table recreate is required either, so the behavior now is the same as was with the old tools. Here Microsoft added some useful functionality and then UI fails to expose it intelligently...&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.west-wind.com/weblog/posts/455560.aspx" target="_blank"&gt;Source&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-7136090220230381585?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/7136090220230381585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=7136090220230381585' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7136090220230381585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7136090220230381585'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2010/03/sql-2008-management-tools-can-save.html' title='SQL 2008 Management Tools: Can&amp;#39;t save changes that require Recreation of Database'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-2542976470648641612</id><published>2010-01-05T19:51:00.002+02:00</published><updated>2010-01-18T13:06:15.193+02:00</updated><title type='text'>Enable the Secret "How-To Geek" Mode in Windows 7</title><content type='html'>&lt;p&gt;We haven’t told anybody before, but Windows has a hidden “How-To Geek Mode” that you can enable which gives you access to every Control Panel tool on a single page—and we’ve documented the secret method for you here.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Update: Do not use this on Vista&lt;/strong&gt;. If you did, you can use Ctrl+Shift+Esc to start task manager, File \ Run and open a command prompt with cmd.exe, and then use the rmdir command to get rid of the folder.&lt;/p&gt;  &lt;p&gt;To activate the secret How-To Geek mode, right-click on the desktop, choose New –&amp;gt; Folder, and then give it this name:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;How-To Geek.{ED7BA470-8E54-465E-825C-99712043E01C}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image27.png" border="0" height="173" width="229" /&gt;&lt;/p&gt;  &lt;p&gt;Once you’ve done so, you’ll have activated the secret mode, and the icon will change…&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image28.png" border="0" height="151" width="273" /&gt;&lt;/p&gt;  &lt;p&gt;Double-click on the icon, and now you can use the How-To Geek mode, which lists out every single Control Panel tool on a single page.&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image29.png" border="0" height="350" width="572" /&gt;&lt;/p&gt;  &lt;p&gt;At this point you might notice why this is a stupid geek trick—it’s much easier to use the default Control Panel than navigating through a massive list, and anybody that really calls themselves a geek will be using the Start Menu or Control Panel search box anyway.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;In case you were wondering, this is the same as that silly “God Mode” trick that everybody else is writing about. For more on why it’s pointless, &lt;/em&gt;&lt;a href="http://www.edbott.com/weblog/?p=2724"&gt;&lt;em&gt;see Ed Bott’s post on the subject&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Alright, So It’s Not &lt;em&gt;&lt;strong&gt;Really&lt;/strong&gt;&lt;/em&gt; a Secret How-To Geek Mode&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Sadly, this is nothing more than a stupid geek trick using a technique that isn’t widely known—Windows uses GUIDs (Globally Unique Identifiers) behind the scenes for every single object, component, etc. And when you create a new folder with an extension that is a GUID recognized by Windows, it’s going to launch whatever is listed in the registry for that GUID.&lt;/p&gt;  &lt;p&gt;You can see for yourself by heading into regedit.exe and searching for {ED7BA470-8E54-465E-825C-99712043E01C} under the HKCR \ CLSID section. You’ll see on the right-hand pane that it’s the “All Tasks” view of the Control Panel, which you can’t normally see from the UI.&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image30.png" border="0" height="258" width="591" /&gt;&lt;/p&gt;  &lt;p&gt;You can use this same technique for other Windows objects by doing some digging around in the registry… for instance, if you were to search under HKCR \ CLSID for “Recycle Bin”, you’d eventually come across the right key—the one on the left-hand side here:&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image31.png" border="0" height="274" width="604" /&gt;&lt;/p&gt;  &lt;p&gt;So if you created a folder with the name “The Geek Knows Deleted Files.{645FF040-5081-101B-9F08-00AA002F954E}”, you’d end up with this icon, clearly from the Recycle Bin.&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image32.png" border="0" height="165" width="267" /&gt;&lt;/p&gt;  &lt;p&gt;And it’s even a fully functional Recycle Bin… just right-click and you’ll see the menu:&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image33.png" border="0" height="182" width="277" /&gt;&lt;/p&gt;  &lt;p&gt;So here’s the quick list of the ones I felt like digging up, but I’m sure there’s more things you can launch if you really felt like it.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Recycle Bin:&lt;/strong&gt; {645FF040-5081-101B-9F08-00AA002F954E}&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;My Computer:&lt;/strong&gt; {20D04FE0-3AEA-1069-A2D8-08002B30309D}&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Network Connections:&lt;/strong&gt; {7007ACC7-3202-11D1-AAD2-00805FC1270E}&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;User Accounts:&lt;/strong&gt; {60632754-c523-4b62-b45c-4172da012619}&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Libraries:&lt;/strong&gt;  {031E4825-7B94-4dc3-B131-E946B44C8DD5}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To use any of them, simply create a new folder with the syntax AnyTextHere.{GUID}&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Create Shortcuts to GUIDs&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Since the GUID points to a Windows object launched by Windows Explorer, you can also create shortcuts and launch them directly from explorer.exe instead of creating the folder. For instance, if you wanted to create a shortcut to My Computer, you could paste in the following as the location for a new shortcut:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;explorer ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image34.png" border="0" height="251" width="523" /&gt;&lt;/p&gt;  &lt;p&gt;And just like that, you’d have a shortcut to My Computer, which you can customize with a different icon, and a shortcut key if you so choose.&lt;/p&gt;  &lt;p&gt;&lt;img title="image" alt="image" src="http://www.howtogeek.com/wp-content/uploads/2010/01/image35.png" border="0" height="167" width="238" /&gt;&lt;/p&gt;  &lt;p&gt;Yeah, it’s a stupid geek trick, but it’s always fun to learn new things.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Note: The Control Panel’s All Items hack and the Libraries hack will probably only work in Windows 7. The others should work in any version of Windows. &lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.howtogeek.com/howto/8711/stupid-geek-tricks-enable-the-secret-how-to-geek-mode-in-windows/" target="_blank"&gt;Source&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-2542976470648641612?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/2542976470648641612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=2542976470648641612' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2542976470648641612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2542976470648641612'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2010/01/enable-secret-geek-mode-in-windows-7.html' title='Enable the Secret &amp;quot;How-To Geek&amp;quot; Mode in Windows 7'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-7536808336798130933</id><published>2009-11-05T21:43:00.001+02:00</published><updated>2009-11-05T21:43:18.064+02:00</updated><title type='text'>How to use standard FileUpload in AJAX-enabled web applications</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I would like to note that this article is not about the ability to upload files to the server without the postback. There are a lot of articles on this topic, just type &amp;quot;AJAX FileUpload&amp;quot; in any search engine and you'll get many examples. However with AJAX they actually have little in common, because the XMLHttpRequest does not support asynchronous uploading of files to the server, they are rather a variety of imitations, for example, using hidden IFRAME element. Nevertheless I want to emphasize that the article is not about that but about the standard FileUpload control. &lt;/p&gt;  &lt;p&gt;There are two problems you might encounter when using it on UpdatePanel. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Problem 1&lt;/b&gt;    &lt;br /&gt;If the postback is caused by a control which lies on the UpdatePanel, the FileUpload is always empty when it come to the server, regardless whether a file has been selected or not.    &lt;br /&gt;Example: &lt;/p&gt;  &lt;pre&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; runat=server&amp;gt;&lt;br /&gt;  &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;     &amp;lt;asp:FileUpload ID=&amp;quot;FileUpload1&amp;quot; runat=server /&amp;gt;&lt;br /&gt;     &amp;lt;asp:Button ID=&amp;quot;btnUpload&amp;quot; runat=server Text=&amp;quot;Upload&amp;quot; OnClick=&amp;quot;btnUpload_Click&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As XMLHttpRequest does not allow to send files asynchronously, they have to be submitted in a common manner. This problem is well described around, it is solved by registration of the control that has to submit the form as a postback trigger (in the above example it is &lt;code&gt;btnUpload&lt;/code&gt; button). &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; runat=server&amp;gt;&lt;br /&gt;  &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;     &amp;lt;asp:FileUpload ID=&amp;quot;FileUpload1&amp;quot; runat=server /&amp;gt;&lt;br /&gt;     &amp;lt;asp:Button ID=&amp;quot;btnUpload&amp;quot; runat=server Text=&amp;quot;Upload 2&amp;quot; OnClick=&amp;quot;btnUpload_Click&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;  &amp;lt;Triggers&amp;gt;&lt;br /&gt;      &amp;lt;asp:PostBackTrigger ControlID=&amp;quot;btnUpload&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Problem 2&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;FileUpload does not work if it is loaded not on the initial page load but appears only after asynchronous update of the page part. &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;Example (&lt;code&gt;pnlUpload&lt;/code&gt; panel is invisible in the beginning and is shown after clicking on &lt;code&gt;btnShowFileUpload&lt;/code&gt; button): &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; runat=server&amp;gt;&lt;br /&gt;   &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;        &amp;lt;asp:Button ID=&amp;quot;btnShowFileUpload&amp;quot; runat=server Text=&amp;quot;Show File Upload&amp;quot; OnClick=&amp;quot;btnShowFileUpload_Click&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;asp:Panel ID=&amp;quot;pnlUpload&amp;quot; runat=server Visible=&amp;quot;False&amp;quot;&amp;gt;&lt;br /&gt;           &amp;lt;asp:FileUpload ID=&amp;quot;FileUpload1&amp;quot; runat=server /&amp;gt;&lt;br /&gt;           &amp;lt;asp:Button ID=&amp;quot;btnUpload&amp;quot; runat=server Text=&amp;quot;Upload&amp;quot; OnClick=&amp;quot;btnUpload_Click&amp;quot;/&amp;gt;&lt;br /&gt;       &amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;   &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;   &amp;lt;Triggers&amp;gt;&lt;br /&gt;        &amp;lt;asp:PostBackTrigger ControlID=&amp;quot;btnUpload&amp;quot; /&amp;gt;&lt;br /&gt;   &amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;&lt;br /&gt;.......................&lt;br /&gt;&lt;br /&gt;protected void btnShowFileUpload_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;    pnlUpload.Visible = true;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The problem is caused by the requirement that for the normal work of FileUpload the form should have &lt;b&gt;enctype=&amp;quot;multipart/form-data&amp;quot;&lt;/b&gt;. Usually, it is set in overriden &lt;code&gt;OnPreRender&lt;/code&gt; method of FileUpload control. &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;protected internal override void OnPreRender(EventArgs e)&lt;br /&gt;{&lt;br /&gt;    base.OnPreRender(e);&lt;br /&gt;    HtmlForm form = this.Page.Form;&lt;br /&gt;    if ((form != null) &amp;amp;&amp;amp; (form.Enctype.Length == 0))&lt;br /&gt;    {&lt;br /&gt;        form.Enctype = &amp;quot;multipart/form-data&amp;quot;;&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;Although during asynchronous postback this code is also executed but the form is not updated. That is why it is required to set the form content type explicitly during the first page load, for example, in the &lt;code&gt;Page_Load&lt;/code&gt; event handler of the page or a control where FileUpload is placed. &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;    if (!IsPostBack)&lt;br /&gt;        this.Page.Form.Enctype = &amp;quot;multipart/form-data&amp;quot;;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;In case if this task is repeated in a few places you may do a simple control derived from FileUpload with overriden &lt;code&gt;OnLoad&lt;/code&gt; method and use it. &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;public class CustomFileUpload : FileUpload&lt;br /&gt;{&lt;br /&gt;	protected override void OnLoad(EventArgs e)&lt;br /&gt;	{&lt;br /&gt;	    base.OnLoad(e);&lt;br /&gt;&lt;br /&gt;	    if (!Page.IsPostBack)&lt;br /&gt;	        this.Page.Form.Enctype = &amp;quot;multipart/form-data&amp;quot;;&lt;br /&gt;	}&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;a href="http://marss.co.ua/FileUploadAndUpdatePanel.aspx" target="_blank"&gt;Source article&lt;/a&gt;&lt;/pre&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-7536808336798130933?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/7536808336798130933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=7536808336798130933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7536808336798130933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/7536808336798130933'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2009/11/how-to-use-standard-fileupload-in-ajax.html' title='How to use standard FileUpload in AJAX-enabled web applications'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-6528596122306788879</id><published>2009-10-19T01:31:00.004+03:00</published><updated>2009-10-19T11:56:50.578+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='UpdatePanel'/><category scheme='http://www.blogger.com/atom/ns#' term='FileUpload'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET 2.0 Directives Page Control Assembly'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Async'/><title type='text'>Async FileUpload control for AJAX pages</title><content type='html'>&lt;p style="color: rgb(0,0,0)"&gt;&lt;span style="font-size: 85%; color: rgb(0,0,128); font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;With the new release of Ajax Control Toolkit (v 3.0.30930) released specifically for .NET 3.5 SP1 (with Visual Studio 2008 SP1), there are couple of new controls.&amp;#160; One of them is the AsyncFileUpload control.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Thanks to the codeplex community which keeps getting better and better with time, the Ajax Control Toolkit has grown into one of our largest community contributed controls for ASP.NET with about 43 controls that help in accomplishing rich user experiences in ASP.NET Websites.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;The AsyncFileUpload is one simple way of accomplishing what I had written earlier using PostbackTrigger, the regular FileUpload control etc.,&amp;#160; To be able to use the AsyncFileUpload Control, you must have the latest version of AjaxControlToolkit installed.&amp;#160; The other pre-requisites are obviously &lt;/font&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&amp;amp;DisplayLang=en"&gt;&lt;font size="2"&gt;NET 3.5 SP1&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; and &lt;/font&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E"&gt;&lt;font size="2"&gt;Visual Studio 2008 SP1&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; (or the free &lt;/font&gt;&lt;a href="http://www.microsoft.com/express/vwd/"&gt;&lt;font size="2"&gt;Visual Web Developer Express Edition&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;You can download the pre-requisites from the respective links above.&amp;#160; For downloading the AjaxControlToolkit, visit the &lt;/font&gt;&lt;a href="http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804"&gt;&lt;font size="2"&gt;CodePlex&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; site.&amp;#160; You can download just the binary files or the Source files as well, if you require to modify.&amp;#160; The Script Files is useful if you want to just work with the client side scripts and not use the server controls.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Once you have downloaded, you would need to add them to Visual Studio or VWD.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;1. Open Visual Studio and create a new webapplication or website.&amp;#160; Click to open the ToolBox&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;2. Right Click and select “Add Tab”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;3. Provide a name say “Ajax Control Toolkit”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;4. Right Click the newly created tab and select “Choose Items”&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;5. Click on the “Browse” button in the file dialog that opens and browse to the place where you downloaded the AjaxControlToolkit binaries&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;6. Typically I would put them under C:\Program Files\Microsoft ASP.NET for consistency.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;7. Select the AjaxControlToolkit.dll and it would list all the new controls.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;8. Click “Ok” to add all the controls.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;9. You should now see under the newly created toolbox tab these controls.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Once you are done with above, create a simple Default.aspx page in the application you created and drop the Script Manager control into your webform.&amp;#160; Next add an UpdatePanel with ContentTemplate.&amp;#160; Inside the ContentTemplate, add the AsyncFileUpload control into the webform as well as a button and 2 labels for the uploading and displaying messages respectively.&amp;#160; The markup looks something like below&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;font size="2"&gt;&amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;          &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;div&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/asp:ScriptManager&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;asp:Image ID=&amp;quot;img1&amp;quot; runat=&amp;quot;server&amp;quot; ImageUrl=&amp;quot;~/Images/spin2.png&amp;quot; /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ContentTemplate&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;cc1:AsyncFileUpload ID=&amp;quot;AsyncFileUpload1&amp;quot; runat=&amp;quot;server&amp;quot; UploaderStyle=&amp;quot;Modern&amp;quot; ThrobberID=&amp;quot;img1&amp;quot;&amp;#160; /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;br /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;asp:Button ID=&amp;quot;btnUpload&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Upload&amp;quot;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; onclick=&amp;quot;btnUpload_Click&amp;quot;&amp;#160;&amp;#160; /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;br /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;asp:Label ID=&amp;quot;Label1&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;br /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;br /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/ContentTemplate&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/asp:UpdatePanel&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;br /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;asp:Label ID=&amp;quot;Label2&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;/div&amp;gt;           &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;/form&amp;gt;&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Also, you can see that I have added an asp:Image pointing to a spin image that is specified as the ID for ThrobberID in the AsyncFileUpload definition.&amp;#160; This is optional but nice to have since this would display the throbber icon while uploading takes time.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Once you are done, you would need to define the action in the codebehind or in the script&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;font size="2"&gt;protected void Page_Load(object sender, EventArgs e)          &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Label2.Text = DateTime.Now.ToString();           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; protected void btnUpload_Click(object sender, EventArgs e)          &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; AsyncFileUpload1.SaveAs(Server.MapPath((AsyncFileUpload1.FileName)));           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Label1.Text = &amp;quot;You uploaded &amp;quot; + AsyncFileUpload1.FileName;           &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/font&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Notice, the Label in the Page_Load event is just to indicate that indeed the operation happened asynchronously since the time that is displayed initially doesn’t change once you click on Upload button.&amp;#160; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;Try running this and you will find that the whole operation happens asynchronously without a full page reload.&amp;#160; Note that, you would need to still put the AsyncFileUpload control inside UpdatPanel for this behaviour.&amp;#160; Otherwise, it would behave like a regular postback control&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-6528596122306788879?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/6528596122306788879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=6528596122306788879' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6528596122306788879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6528596122306788879'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2009/10/async-fileupload-control-for-ajax-pages.html' title='Async FileUpload control for AJAX pages'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-8020805552161855108</id><published>2009-09-23T16:31:00.001+03:00</published><updated>2009-09-23T16:34:33.825+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Instance'/><category scheme='http://www.blogger.com/atom/ns#' term='Change'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>How To: Change Instance Name Of SQL Server</title><content type='html'>&lt;p&gt;&lt;span style="font-size:85%;"&gt;Recently I change the network name of one of my servers at work, because the box changed its job from a virtual machine server to the database server. Everything was going great until I decided to setup the server for replication and received the following error message.&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;New Publication Wizard&lt;br /&gt;——————————&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, ‘old_name’. (Replication.Utilities)&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;——————————&lt;br /&gt;OK&lt;br /&gt;——————————&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;So with a little hunting and SQL queries I found out that SQL Server doesn’t use the network name, it only excepts that as an alias. My SQL Server instance was still named “old_name”. I found that out by running these two queries:&lt;/span&gt;&lt;/p&gt; &lt;div class="dp-highlighter"&gt;&lt;ol class="dp-sql" start="1"&gt;&lt;li class="alt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;&lt;span&gt;sp_helpserver  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;&lt;span class="keyword"&gt;select&lt;/span&gt;&lt;span&gt; @@servername  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre style="display: none;" name="code" class="sql"&gt;sp_helpserver select @@servername&lt;/pre&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;So in order to get the network name and the SQL Server instance name back in sync I had do these steps:&lt;/span&gt;&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Run this in Microsoft SQL Server Management Studio: &lt;/span&gt;&lt;div class="dp-highlighter"&gt;&lt;ol class="dp-sql" start="1"&gt;&lt;li class="alt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;&lt;span&gt;sp_dropserver &lt;/span&gt;&lt;span class="string"&gt;'old_name'&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;go  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;sp_addserver &lt;span class="string"&gt;'new_name'&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span class="string"&gt;'local'&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;go  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre style="display: none;" name="code" class="sql"&gt;sp_dropserver 'old_name' go sp_addserver 'new_name','local' go&lt;/pre&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Restart SQL Server service.  I prefer the command prompt for this, but you can just as easily do it in &lt;em&gt;Services&lt;/em&gt; under the &lt;em&gt;Control Panel&lt;/em&gt;&lt;br /&gt;&lt;kbd&gt;net stop mssqlserver&lt;/kbd&gt;&lt;br /&gt;&lt;kbd&gt;net start mssqlserver&lt;/kbd&gt;&lt;/span&gt;  &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Then after that is done run this again, to make sure everything is changed:&lt;/span&gt;&lt;/p&gt; &lt;div class="dp-highlighter"&gt;&lt;ol class="dp-sql" start="1"&gt;&lt;li class="alt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;&lt;span&gt;sp_helpserver  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;&lt;span class="keyword"&gt;select&lt;/span&gt;&lt;span&gt; @@servername  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre style="display: none;" name="code" class="sql"&gt;sp_helpserver select @@servername&lt;/pre&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;I don’t understand why SQL Server uses it’s own name versus the network name, might be due to the fact you can have multiple SQL Server instances install on one machine. It wasn’t too hard to change and probably stems from the days when SQL Server was known as Sybase, all in all, I learned something new and it only took 30 minutes of my day to fine the answer.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;From: &lt;a href="http://www.coderjournal.com/2008/02/how-to-change-instance-name-of-sql-server/"&gt;Source&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-8020805552161855108?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/8020805552161855108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=8020805552161855108' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8020805552161855108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8020805552161855108'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2009/09/how-to-change-instance-name-of-sql.html' title='How To: Change Instance Name Of SQL Server'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-4470116257452371045</id><published>2009-07-24T17:07:00.001+03:00</published><updated>2009-07-24T17:10:15.928+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TIP'/><category scheme='http://www.blogger.com/atom/ns#' term='lines'/><category scheme='http://www.blogger.com/atom/ns#' term='howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='New'/><category scheme='http://www.blogger.com/atom/ns#' term='cell'/><title type='text'>Excel TIP: New lines in an Excel cell</title><content type='html'>I just wanted to find out how to enter a new line in an Excel cell. &lt;br /&gt;&lt;br /&gt;Answer is to use &lt;span style="font-weight:bold;"&gt;Alt+Enter&lt;/span&gt; to create a new line. Additionally when you do that, Excel automatically enables text wrap for the cell.&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;----------&lt;br /&gt;Alt+Enter : Enter new line in a cell&lt;br /&gt;F2: Edit a cell&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-4470116257452371045?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/4470116257452371045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=4470116257452371045' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4470116257452371045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4470116257452371045'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2009/07/excel-tip-new-lines-in-excel-cell.html' title='Excel TIP: New lines in an Excel cell'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5485210049681547077</id><published>2009-06-29T15:54:00.002+03:00</published><updated>2010-03-26T15:55:34.896+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='closed'/><category scheme='http://www.blogger.com/atom/ns#' term='connection'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='26'/><title type='text'>Resolving “A network-related or instance-specific error occurred while establishing a connection to SQL Server…”</title><content type='html'>SQL Server 2005 Error:“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) ”   &lt;br /&gt;Things to check:1. Make sure your database engine is configured to accept remote connections• Start &amp;gt; All Programs &amp;gt; SQL Server 2005 &amp;gt; Configuration Tools &amp;gt; SQL Server Surface Area Configuration• Click on Surface Area Configuration for Services and Connections• Select the instance that is having a problem &amp;gt; Database Engine &amp;gt; Remote Connections• Enable local and remote connections• Restart instance   &lt;br /&gt;2. Check the SQL Server service account• If you are not using a domain account as a service account (for example if you are using NETWORK SERVICE), you may want to switch this first before proceeding   &lt;br /&gt;3. If you are using a named SQL Server instance, make sure you are using that instance name in your connection strings in your ASweb P.NET application• Usually the format needed to specify the database server is machinename\instancename• Check your connection string as well   &lt;br /&gt;  &lt;br /&gt;&lt;span style="color: white"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt"&gt;&amp;lt;connectionStrings&amp;gt;&lt;/span&gt;&lt;/span&gt;   &lt;br /&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color: white"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt"&gt;&amp;lt;add name=”SampleConnectionString” connectionString=”Data Source=machinename\instancename;Initial Catalog=AdventureWorks;Integrated Security=SSPI;Min Pool Size=5;Max Pool Size=60;Connect Timeout=30″ providerName=”System.Data.SqlClient”/&amp;gt;&lt;/span&gt;&lt;/span&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color: white"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt"&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;br /&gt;  &lt;br /&gt;4.You may need to create an exception on the firewall for the SQL Server instance and port you are using• Start &amp;gt; Run &amp;gt; Firewall.cpl• Click on exceptions tab• Add the sqlservr.exe (typically located in C:\Program Files (x86)\Microsoft SQL Server\MSSQL.x\MSSQL\Binn), and port (default is 1433)• Check your connection string as well   &lt;br /&gt;5. If you are using a named SQL Server instance, make sure you are using that instance name in your connection strings   &lt;br /&gt;6. Check SQLBrowser; check that it is running. You may also need to create an exception in your firewall for SQLBrowser.   &lt;br /&gt;7. Check that you have connectivity to the SQL Server. Note what you are using to connect: machine name, domain name or IP address? Use this when checking connectivity. For example if you are using myserver• Start &amp;gt; Run &amp;gt; cmd•netstat -ano findstr 1433•telnet myserver 1433•ping -a myserver   &lt;br /&gt;Check what ports are IP addresses are being returned.   &lt;br /&gt;Alternative:If you still can’t get any connection, you may want to create a SQL account on the server, a corresponding SQL user on the database in question, and just use this username/password combo in your web application.   &lt;br /&gt;  &lt;br /&gt;Source: &lt;a href="http://www.sqlmusings.com/2009/03/11/resolving-a-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-sql-server/"&gt;http://www.sqlmusings.com/2009/03/11/resolving-a-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-sql-server/&lt;/a&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5485210049681547077?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5485210049681547077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5485210049681547077' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5485210049681547077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5485210049681547077'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2009/06/resolving-network-related-or-instance.html' title='Resolving “A network-related or instance-specific error occurred while establishing a connection to SQL Server…”'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5131716580002824145</id><published>2009-05-27T22:44:00.001+03:00</published><updated>2009-05-27T22:46:52.916+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Convert'/><category scheme='http://www.blogger.com/atom/ns#' term='NameValueCollection'/><category scheme='http://www.blogger.com/atom/ns#' term='QueryString'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>How to convert NameValueCollection to a (Query) String</title><content type='html'>&lt;div class="main"&gt;  &lt;div class="snap_preview"&gt;&lt;p&gt;Most ASP.NET developers know that you can get a key/value pair string from the &lt;code&gt;Request.QueryString&lt;/code&gt; object (via the &lt;code&gt;.ToString()&lt;/code&gt; method).  However that functionality isn’t the same for a generic &lt;code&gt;NameValueCollection&lt;/code&gt; object (of which &lt;code&gt;Request.QueryString&lt;/code&gt; is derived from).&lt;/p&gt;&lt;br /&gt;&lt;p&gt;So how do you take a &lt;code&gt;NameValueCollection&lt;/code&gt; object and get a nicely formatted key/value pair string? (i.e. “&lt;code&gt;key1=value1&amp;amp;key2=value2&lt;/code&gt;“) … Here’s a method I wrote a while ago:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="dp-highlighter"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=597005046064074832#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"&gt;view plain&lt;/a&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=597005046064074832#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;"&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=597005046064074832#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"&gt;print&lt;/a&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=597005046064074832#" onclick="dp.sh.Toolbar.Command('About',this);return false;"&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-c"&gt;&lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;&lt;span class="comment"&gt;/// Constructs a QueryString (string).&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;/// Consider this method to be the opposite of "System.Web.HttpUtility.ParseQueryString"&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;&lt;span class="comment"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;&lt;span class="comment"&gt;/// &amp;lt;param name="nvc"&amp;gt;NameValueCollection&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;&lt;span class="comment"&gt;/// &amp;lt;returns&amp;gt;String&amp;lt;/returns&amp;gt;&lt;/span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;&lt;span class="keyword"&gt;public&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span class="keyword"&gt;static&lt;/span&gt;&lt;span&gt; String ConstructQueryString(NameValueCollection parameters)  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;{  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;    List&amp;lt;String&amp;gt; items = &lt;span class="keyword"&gt;new&lt;/span&gt;&lt;span&gt; List&amp;lt;String&amp;gt;();  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;    &lt;span class="keyword"&gt;foreach&lt;/span&gt;&lt;span&gt; (String name &lt;/span&gt;&lt;span class="keyword"&gt;in&lt;/span&gt;&lt;span&gt; parameters)  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;        items.Add(String.Concat(name, &lt;span class="string"&gt;"="&lt;/span&gt;&lt;span&gt;, System.Web.HttpUtility.UrlEncode(parameters[name])));  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li class=""&gt;&lt;span&gt;    &lt;span class="keyword"&gt;return&lt;/span&gt;&lt;span&gt; String.Join(&lt;/span&gt;&lt;span class="string"&gt;"&amp;amp;"&lt;/span&gt;&lt;span&gt;, items.ToArray());  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"&gt;&lt;span&gt;}  &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre style="display: none;" name="code" class="csharp"&gt;/// &amp;lt;summary&amp;gt;&lt;br /&gt;&lt;br /&gt;/// Constructs a QueryString (string).&lt;br /&gt;/// Consider this method to be the opposite of "System.Web.HttpUtility.ParseQueryString"&lt;br /&gt;/// &amp;lt;/summary&amp;gt;&lt;br /&gt;/// &amp;lt;param name="nvc"&amp;gt;NameValueCollection&amp;lt;/param&amp;gt;&lt;br /&gt;/// &amp;lt;returns&amp;gt;String&amp;lt;/returns&amp;gt;&lt;br /&gt;public static String ConstructQueryString(NameValueCollection parameters)&lt;br /&gt;{&lt;br /&gt;List&amp;lt;String&amp;gt; items = new List&amp;lt;String&amp;gt;();&lt;br /&gt;&lt;br /&gt;foreach (String name in parameters)&lt;br /&gt; items.Add(String.Concat(name, "=", System.Web.HttpUtility.UrlEncode(parameters[name])));&lt;br /&gt;&lt;br /&gt;return String.Join("&amp;amp;", items.ToArray());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Just in case you didn’t know about the &lt;code&gt;System.Web.HttpUtility.ParseQueryString&lt;/code&gt; method, it’s a quick way of converting a query (key/value pairs) string back into a &lt;code&gt;NameValueCollection&lt;/code&gt;.&lt;/p&gt;From : http://blog.leekelleher.com/2008/06/06/how-to-convert-namevaluecollection-to-a-query-string/&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5131716580002824145?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5131716580002824145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5131716580002824145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5131716580002824145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5131716580002824145'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2009/05/most-asp.html' title='How to convert NameValueCollection to a (Query) String'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-3035426524166661718</id><published>2008-12-30T11:52:00.003+02:00</published><updated>2008-12-30T11:57:18.170+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Form'/><category scheme='http://www.blogger.com/atom/ns#' term='dangerous'/><category scheme='http://www.blogger.com/atom/ns#' term='Request'/><category scheme='http://www.blogger.com/atom/ns#' term='potentially'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='validation'/><title type='text'>Server Error in '/' Application ... A potentially dangerous Request.Form value was detected ...</title><content type='html'>&lt;h2&gt;Symptom:&lt;/h2&gt;   &lt;p&gt;When entering a value with angled brackets into a text box on a .NET    application the following error is generated in the browser:&lt;/p&gt;   &lt;blockquote&gt;    &lt;p&gt;&lt;code&gt;Server Error in '/&lt;folder&gt;' Application.&lt;/folder&gt;&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;&lt;code&gt;A potentially dangerous Request.Form value was detected from     the client (TextBoxN="...")&lt;/code&gt;&lt;/p&gt;   &lt;/blockquote&gt;   &lt;h2&gt;Cause&lt;/h2&gt;   &lt;p&gt;The .NET framework is throwing up an error because it detected something    in the entered text which looks like an HTML statement. The text doesn't    need to contain valid HTML, just anything with opening and closing angled    brackets ("&lt;...&gt;").&lt;/p&gt;   &lt;p&gt;The reason behind the error is as a security precaution. Developers need    to be aware that users might try to inject HTML (or even a script) into    a text box which may affect how the form is rendered. For further details    see &lt;a set="yes" linkindex="2" href="http://www.asp.net/learn/whitepapers/request-validation/"&gt;   www.asp.net/learn/whitepapers/request-validation/&lt;/a&gt;.&lt;/p&gt;   &lt;p&gt;This checking was not performed in the .NET 1.0 framework and was introduced    with the .NET 1.1 framework.&lt;/p&gt;   &lt;h2&gt;Remedy:&lt;/h2&gt;   &lt;p&gt;The remedy is in two parts and you MUST action both:&lt;/p&gt;   &lt;ol&gt;&lt;li&gt;To disable request validation on a page add the following directive     to the existing "page" directive in the file - you will need to switch     to the HTML view for this:    &lt;p&gt;&lt;code&gt;ValidateRequest="false"&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;for example if you already have:&lt;/p&gt;    &lt;p&gt;&lt;code&gt;&lt;%@ Page Language="vb" AutoEventWireup="false" Codebehind="MyForm.aspx.vb"     Inherits="Proj.MyForm"%&gt;&lt;br /&gt; &lt;/code&gt;&lt;/p&gt;    &lt;p&gt;then this should become:&lt;/p&gt;    &lt;p&gt;&lt;code&gt;&lt;%@ Page Language="vb" AutoEventWireup="false" Codebehind="MyForm.aspx.vb"     Inherits="Proj.MyForm" ValidateRequest="false"%&gt;&lt;br /&gt; &lt;/code&gt;&lt;/p&gt;    &lt;p&gt;Alternately, you can globally turn request validation off (but in     which case be sure to implement item two below). To globally turn request     validation off add the following to your web.config file:&lt;/p&gt;    &lt;p&gt;&lt;code&gt;&lt;pages validaterequest="false"&gt; &lt;/pages&gt;&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;this should go within the &lt;code&gt;&lt;system.web&gt;&lt;/system.web&gt;&lt;/code&gt; section. This     will turn off request validation for every page in your application.&lt;/p&gt;    &lt;table style="border: 2px outset rgb(255, 0, 0);" cellspacing="1"&gt;     &lt;tbody&gt;&lt;tr&gt;      &lt;td&gt;      &lt;h3&gt;Warning&lt;/h3&gt;      &lt;p&gt;With request validation turned off, users will be able to       enter html into text boxes on the page. For example entering:&lt;/p&gt;      &lt;blockquote&gt;       &lt;p&gt;&lt;code&gt;TalertT('Oops!')&lt;/code&gt;&lt;/p&gt;      &lt;/blockquote&gt;      &lt;p&gt;will be rendered by the browser (when the form is updated       and the contents redisplayed) as JavaScript and a message box       will appear with the message "Oops!". This is generally considered       to be undesirable!&lt;/p&gt;      &lt;/td&gt;     &lt;/tr&gt;    &lt;/tbody&gt;&lt;/table&gt;    &lt;/li&gt;&lt;li style="padding-top: 0.5em;"&gt;Unless you actually need users to be able to enter HTML you must     convert the string to its html encoding equivalent - basically this     means that certain characters (like "&lt;") are converted to codes (so     "&lt;" is converted to "&amp;lt;"). To perform this conversion use &lt;code&gt;HttpUtility.HtmlEncode&lt;/code&gt;,     for example:    &lt;p&gt;&lt;code&gt;MyLabel.Text := HttpUtility.HtmlEncode(MyTextBox.Text);&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;You only need to consider this for any text that will be rendered     in the browser.&lt;/p&gt;    &lt;/li&gt;&lt;/ol&gt;   &lt;hr /&gt;   &lt;p class="center"&gt;These notes are believed to be correct for .NET 1.1    and .NET 2, and may apply to other versions as well.&lt;/p&gt;&lt;p class="center"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="center"&gt;From:  http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_potentially_dangerous.htm&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-3035426524166661718?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/3035426524166661718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=3035426524166661718' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3035426524166661718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3035426524166661718'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/12/server-error-in-application-potentially.html' title='Server Error in &apos;/&lt;folder&gt;&apos; Application ... A potentially dangerous Request.Form value was detected ...'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-4002660199316732192</id><published>2008-12-19T18:29:00.000+02:00</published><updated>2008-12-19T18:30:41.091+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='VS2005'/><category scheme='http://www.blogger.com/atom/ns#' term='Debugging'/><category scheme='http://www.blogger.com/atom/ns#' term='client'/><title type='text'>Debugging client JavaScript in VS 2005</title><content type='html'>&lt;div class="cms-content"&gt;     &lt;p&gt;Client Java Script is one of the most important things in web development but not the best and easiest to develop. Building of bigger and more complicated scripts, especially using DOM model or form field values can cause a lot of frustration and head pain. Moreover, JavaScript debugging is not easy and obvious as should be. But there is a hope.&lt;/p&gt; &lt;p&gt;One of less known features of Visual Studio 2005 is Script Explorer, hidden in Debug menu where appears only when the debugger is running. This great tool allows easily debug JavaScripts.&lt;/p&gt; &lt;p&gt;Before start, we should ensure that client script debugging is not disabled in IE as it is by default. Suitable options are located on Advanced tab of Internet Options where both script debugging checkboxes should be unchecked.&lt;/p&gt; &lt;p&gt;   &lt;img alt="" src="http://www.developerfusion.com/res/content/5918/r-2006-07-10-123847/" align="bottom" border="0" hspace="0" /&gt; &lt;/p&gt; &lt;p&gt;We can come back to Script Explorer. As it was written before, it appears only while the debugger is working. So after starting project we can go do Debug-&gt;Windows where should be Script Explorer. Sometimes, don’t know why, it doesn’t so in this case we have to find it manually. Staying in debug mode right click on tool bar and go into Customize. Then select Debug in Categories on the left side of window and find Script Explorer on the right. Just drag it to Debugging toolbar. &lt;/p&gt; &lt;p&gt;   &lt;img alt="" src="http://www.developerfusion.com/res/content/5918/r-2006-07-10-100918/" align="bottom" border="0" hspace="0" /&gt; &lt;/p&gt; &lt;p&gt;After opening Script Explorer panel we will se the tree of active JavaScripts. At the first level are scripts that are imported from external sources or embedded in the page. There are also auto-generated scripts like postback scripts as well. By double-clicking on the selected script it will open in the main window.&lt;/p&gt; &lt;p&gt;   &lt;img alt="" src="http://www.developerfusion.com/res/content/5918/r-2006-07-10-101053/" align="bottom" border="0" hspace="0" /&gt; &lt;/p&gt; &lt;p&gt;At this moment, we can debug it in well known way using breakpoints, steps, Watch and QuickWatch, just like in the server side, including context variable browsing.&lt;/p&gt; &lt;p&gt;   &lt;img alt="" src="http://www.developerfusion.com/res/content/5918/r-2006-07-10-122214/" align="bottom" border="0" hspace="0" /&gt; &lt;/p&gt; &lt;p&gt;Breakpoints can also be set up in external *.js files before project will be loaded. Then, after loading project, the breakpoint will be activated by debugger. Note, that it is only possible to *.js files not for scripts embedded in pages. These scripts are available for debugging only after loading page.&lt;br /&gt;&lt;br /&gt;Taken from:&lt;br /&gt;http://www.developerfusion.com/code/5918/debugging-client-javascript-in-vs-2005/&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-4002660199316732192?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/4002660199316732192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=4002660199316732192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4002660199316732192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4002660199316732192'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/12/debugging-client-javascript-in-vs-2005.html' title='Debugging client JavaScript in VS 2005'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-1532758886915339882</id><published>2008-11-25T16:27:00.000+02:00</published><updated>2008-11-25T16:29:18.268+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='row'/><category scheme='http://www.blogger.com/atom/ns#' term='acceptchanges'/><category scheme='http://www.blogger.com/atom/ns#' term='datatable'/><category scheme='http://www.blogger.com/atom/ns#' term='update'/><title type='text'>How to delete a row in the DataTable (solution) .</title><content type='html'>&lt;p class="headline"&gt;How to delete a row in the DataTable (solution)   &lt;/p&gt;       &lt;p&gt;The VS .NET / ADO .NET documentation is very poor in the parts about deleting rows from the table. It should tell you the following, but it doesn't.&lt;br /&gt;&lt;br /&gt;Let's say you want to delete a record. You read the help, and you write something like:&lt;br /&gt;&lt;br /&gt;row.Delete();&lt;br /&gt;table.AcceptChanges();&lt;br /&gt;&lt;br /&gt;or, you write something like:&lt;br /&gt;&lt;br /&gt;table.Rows.RemoveAt(i);&lt;br /&gt;&lt;br /&gt;which is equivalent to the code above.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All is good and well. You have deleted the row from the data table. Now, you want to update the physical database, and you call the Update method.&lt;br /&gt;&lt;br /&gt;BZZZZZZZT! Wrong answer! The database rows won't be deleted at all!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What you need to do (and the MS documentation doesn't tell you - just check in the parts about RemoveAt, Delete, Update - it is nowhere to be found) is:&lt;br /&gt;&lt;br /&gt;row.Delete();   // mark row for deletion&lt;br /&gt;&lt;br /&gt;...Update();  // update the physical database&lt;br /&gt;&lt;br /&gt;table.AcceptChanges(); // remove the rows marked for deletion from the dataset&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Microsoft, please update your documentation! You could easily put this in the help pages for Delete(), RemoveAt(), or Update()!&lt;br /&gt;&lt;br /&gt;Thank you very much!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;taken from: http://discuss.fogcreek.com/dotnetquestions/default.asp?cmd=show&amp;amp;ixPost=1950&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-1532758886915339882?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/1532758886915339882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=1532758886915339882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1532758886915339882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1532758886915339882'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/11/how-to-delete-row-in-datatable-solution.html' title='How to delete a row in the DataTable (solution) .'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-8211732071930092493</id><published>2008-08-20T22:42:00.003+03:00</published><updated>2008-08-20T22:44:53.042+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='deployment'/><category scheme='http://www.blogger.com/atom/ns#' term='webservice'/><category scheme='http://www.blogger.com/atom/ns#' term='type'/><category scheme='http://www.blogger.com/atom/ns#' term='create'/><category scheme='http://www.blogger.com/atom/ns#' term='Solve'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Could not'/><title type='text'>How do I – Solve the “Could not create type WebService.Name” error when trying to deploying a web service?</title><content type='html'>&lt;p&gt;OK, so you wrote a web service and you may even have tested it and everything worked fine. So the you did some "cleanup" and tried to deploy the web service. It compiles and deploys just fine, but when you try to invoke and hit the service you are presented with the following error: &lt;/p&gt;&lt;p&gt;Server Error in '/' Application.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Parser Error&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.&lt;br /&gt;&lt;strong&gt;Parser Error Message: &lt;/strong&gt;Could not create type 'WebServices.Candidates'.&lt;br /&gt;&lt;strong&gt;Source Error:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Line 1: &amp;lt;%@ WebService Language="C#" CodeBehind="Candidates.asmx.cs" Class="WebServices.Candidates" %&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Source File: &lt;/strong&gt;/Candidates.asmx&lt;strong&gt; Line: &lt;/strong&gt;1&lt;/p&gt;&lt;p&gt;So just how do you solve this problem? &lt;/p&gt;&lt;p&gt;Here's my checklist of things to check when having trouble deploying web services: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;Check that IIS is using ASP.NET 2.0. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Begin by starting up the Internet Information Services manager. &lt;/li&gt;&lt;li&gt;Expand "Web Sites". &lt;/li&gt;&lt;li&gt;Expand your web site e.g. "Default Web Site". &lt;/li&gt;&lt;li&gt;Locate the Virtual Directory to which the web service was deployed and right click it. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv2.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;On the popup menu, click "Properties". &lt;/li&gt;&lt;li&gt;On the Properties window, select the "ASP.NET" tab. &lt;/li&gt;&lt;li&gt;Ensure that the APS.NET Version is set to 2.0.x and not 1.1.x. &lt;/li&gt;&lt;li&gt;If it is set to 1.1.x, set it to 2.0.x and retry your web service. &lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Ensure your Visual Studio build properties are set correctly. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Locate the .asmx file in your Solution Explorer pane and right click it. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv3.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;On the popup menu, click "Properties". &lt;/li&gt;&lt;li&gt;Ensure that the Build Action is set to "Content". &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv4.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Locate the code behind (.cs or .vb) file in the Solution Explorer and right click it. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv5.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;On the popup menu, click "Properties". &lt;/li&gt;&lt;li&gt;Ensure the Build Action is set to "Compile". &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv6.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;If either of these weren't set correctly, make the correction, recompile, redeploy and retest. &lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Ensure ASP.NET 2.0 is an Allowed web services extension. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Open the IIS Manager. &lt;/li&gt;&lt;li&gt;Expand your computer. &lt;/li&gt;&lt;li&gt;Click the "Web Service Extensions" option. &lt;/li&gt;&lt;li&gt;&lt;p&gt;In the right hand pane, locate the "ASP.NET v2.0.x" entry and ensure that its Status is "Allowed". If it is not allowed, the "Allow" button on the left will be enabled. Click it to change the setting. &lt;/p&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv7.png" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;If it was not allowed, correct the setting and retry your service. &lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Check for the WebMethod attribute. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Review your code and ensure that you have the [WebMethod] attribute set for all web methods in the service. This does not mean that all methods have to be web methods, but the ones you are trying to consume should have this attribute in its declaration. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv8.png" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Ensure the .asmx and code behind file match definitions. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Open your code behind (.cs or .vb) file. &lt;/li&gt;&lt;li&gt;Look at the web service declaration at the top. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv9.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;In our example, ensure that #2 and #3 match. If they don't, correct the problem. &lt;/li&gt;&lt;li&gt;Next note the namespace at #1. &lt;/li&gt;&lt;li&gt;Now open the .asmx file. This can usually be done by double clicking it in the Solution Explorer, but if you're not able to get it to open through the IDE, open Windows Explorer, navigate to the file, right click it and select Open in Visual Studio to work around the problem. &lt;/li&gt;&lt;li&gt;Now look at the code. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv10.png" /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Note the value of Class in this case is "WebServices.Candidates". The Class value should be the full namespace value as well as the class name. Given our code behind file's values, in this case, the Class value should have been "Crowe.PartnerNomination.WebServices.Candidates", but instead it is just "WebServices.Candidates". This is a common issue when reworking already written web services into a namespace hierarchy. For some reason the .asmx file does not always reflect the changes made which then causes the error message at the beginning of this post. &lt;/li&gt;&lt;li&gt;Change the Class value, recompile, redeploy and retest. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img alt="" src="http://www.cjvandyk.com/blog/Lists/Photos/101007_2128_HowdoISolv11.png" /&gt;&lt;/p&gt;&lt;p&gt;Taken from: &lt;a title="http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=" href="http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=133"&gt;http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=133&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f3f05d68-23b7-418a-b757-c3d9135ab8d7" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/IIS" rel="tag"&gt;IIS&lt;/a&gt;,&lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebService" rel="tag"&gt;WebService&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Solve" rel="tag"&gt;Solve&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Could%20not" rel="tag"&gt;Could not&lt;/a&gt;,&lt;a href="http://technorati.com/tags/create" rel="tag"&gt;create&lt;/a&gt;,&lt;a href="http://technorati.com/tags/type" rel="tag"&gt;type&lt;/a&gt;,&lt;a href="http://technorati.com/tags/error" rel="tag"&gt;error&lt;/a&gt;,&lt;a href="http://technorati.com/tags/deployment" rel="tag"&gt;deployment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-8211732071930092493?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/8211732071930092493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=8211732071930092493' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8211732071930092493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8211732071930092493'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/08/how-do-i-solve-could-not-create-type.html' title='How do I – Solve the “Could not create type WebService.Name” error when trying to deploying a web service?'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-2510071453468234950</id><published>2008-08-05T22:51:00.002+03:00</published><updated>2008-08-14T15:18:51.215+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Outlook'/><category scheme='http://www.blogger.com/atom/ns#' term='2003'/><category scheme='http://www.blogger.com/atom/ns#' term='2007'/><category scheme='http://www.blogger.com/atom/ns#' term='table'/><category scheme='http://www.blogger.com/atom/ns#' term='faceid'/><title type='text'>Visual Studio 2005 Tools for Office, CommandBarButton FaceId Property</title><content type='html'>&lt;p&gt;From &lt;a title="http://www.kebabshopblues.co.uk/2007/01/04/visual-studio-2005-tools-for-office-commandbarbutton-faceid-property/" href="http://www.kebabshopblues.co.uk/2007/01/04/visual-studio-2005-tools-for-office-commandbarbutton-faceid-property/"&gt;http://www.kebabshopblues.co.uk/2007/01/04/visual-studio-2005-tools-for-office-commandbarbutton-faceid-property/&lt;/a&gt;&lt;br /&gt;I recently started experimenting with Visual Studio 2005 and Visual Studio Tools for Office (VSTO) 2003. This entry is a technical .Net / VS2005 / VSTO blog and will probably not be of interest unless you use these tools yourself.&lt;/p&gt;&lt;p&gt;&lt;a&gt;&lt;/a&gt;Yuck. Office applications allow many configuration / add-in options programmatically which are quite impressive, but do not sit well with other .Net development tools. For example, in Forms development, if we want to create a Button on a form programmatically, we declare a new Button(). In VSTO, we declare a new CommandBar, and then have to use the CommandBar.Add() method to create a new button on that toolbar.&lt;/p&gt;&lt;p&gt;One of the first things that I wanted to achieve - after adding a basic toolbar to Outlook 2003, was to add buttons with icons. It was frustrating that this was a topic that seemed to be omitted from the book ‘Visual Studio Tools for Office: Using C# with Excel, Word, Outlook, and Infopath’ (Carter and Lippert), and it almost entirely eluded me as to how to do it. There was the CommandBarButton.FaceId property, useful if you wanted a preset icon on your button (but no apparent documentation of what numbers should be used for which icons). Then there were the Picture and Mask properties that appeared to have relevance to this task, but I could not fathom how to use them. Web searches demonstrated some approaches, even on MSDN, that required the use of the clipboard to load an image; something that could muck up the user’s clipboard and therefore highly undesirable, it seemed to me.&lt;/p&gt;&lt;p&gt;Anyway, I finally found what I needed, on &lt;a href="http://msdn2.microsoft.com/en-gb/library/ms268747(vs.80).aspx"&gt;MSDN itself&lt;/a&gt;. This was one occasion when a generic web search with Google did not outperform Microsoft’s own site (prior poor recommendations that I had found turned out to refer to previous versions of .Net or VSTO).&lt;/p&gt;&lt;p&gt;But still in all my searches I failed to find documentation of the simplest way of assigning an icon to a button or menu entry, using the FaceId property. Possibly, I missed it; that would be easy in amongst the morass of documentation.&lt;/p&gt;&lt;p&gt;This blog documents the numbers and associated icons as discovered from using the various FaceId numbers in Outlook. I have not yet cross-checked the icon numbering with different applications. Lower down this page, I’ll comment briefly on how I got these images later in the document.&lt;/p&gt;&lt;h6&gt;The Icons&lt;/h6&gt;&lt;p&gt;The number to the &lt;em&gt;right &lt;/em&gt;of the icon is the appropriate FaceId to use:&lt;/p&gt;&lt;p&gt;&lt;img alt="0000-0099" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0000-0099.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0100-0199" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0100-0199.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0200-0299" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0200-0299.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0300-0399" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0300-0399.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0400-0499" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0400-0499.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0500-0599" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0500-0599.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0600-0699" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0600-0699.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0700-0799" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0700-0799.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0800-0899" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0800-0899.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="0900-0999" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_0900-0999.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1000-1099" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1000-1099.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1100-1199" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1100-1199.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1200-1299" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1200-1299.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1300-1399" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1300-1399.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1400-1499" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1400-1499.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1500-1599" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1500-1599.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1600-1699" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1600-1699.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1700-1799" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1700-1799.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1800-1899" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1800-1899.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="1900-1999" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_1900-1999.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2000-2099" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2000-2099.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2100-2199" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2100-2199.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2200-2299" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2200-2299.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2300-2399" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2300-2399.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2400-2499" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2400-2499.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2500-2599" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2500-2599.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2600-2699" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2600-2699.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2700-2799" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2700-2799.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2800-2899" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2800-2899.gif" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt="2900-2999" src="http://www.kebabshopblues.co.uk/wp-content/uploads/2007/01/faceId_2900-2999.gif" /&gt;&lt;/p&gt;&lt;h6&gt;How I Made These Images&lt;/h6&gt;&lt;p&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchtipstricksbuildingmicrosoftofficeadd-inswithvisualcnetvisualbasicnet.asp"&gt;MSDN Support&lt;/a&gt; had a very tempting page which refers to ‘Finding FaceID Numbers for Your Microsoft Office 97 Toolbars’; but that text is not linked and does not retrieve anything on a search; though the text suggests that it (should have been) a tool to provide documentation of these FaceId’s in an Excel spreadsheet. Tempting, therefore, but fruitless (even if it referred to past versions, perhaps it might have helped?)&lt;/p&gt;&lt;p&gt;So, I wrote a little piece of code to create an Outlook toolbar with 104 buttons (the first 4 buttons being repeated, so there were 100 unique faceId’s), each with a FaceId and a text caption of the number used to achieve the icon. Making the Outlook window very narrow (so only the first four buttons were displayed) meant that clicking on the toolbar expansion button gave a drop-down with 100 unique buttons on. A bit of jiggery pokery with a screen-shot gave the necessary images. It was a pain to be such a manual process, but there you go; sometimes these things can’t be helped… I did decide to stop at 2999 though &lt;img alt=";)" src="http://www.kebabshopblues.co.uk/wp-includes/images/smilies/icon_wink.gif" /&gt;&lt;/p&gt;&lt;p&gt;Maybe my OCD will cut in soon though and compel me to find the last icon…&lt;/p&gt;&lt;p&gt;[Added 24/1/07: I have now added a post with &lt;a href="http://www.kebabshopblues.co.uk/2007/01/24/outlook-faceid-3000-3999/"&gt;FaceId’s 3000 - 3999&lt;/a&gt; for your enjoyment.]&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-2510071453468234950?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/2510071453468234950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=2510071453468234950' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2510071453468234950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2510071453468234950'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/08/visual-studio-2005-tools-for-office.html' title='Visual Studio 2005 Tools for Office, CommandBarButton FaceId Property'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-2302113712766590038</id><published>2008-07-29T09:17:00.003+03:00</published><updated>2008-07-29T09:25:37.444+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mailitem'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Outlook'/><category scheme='http://www.blogger.com/atom/ns#' term='parent'/><category scheme='http://www.blogger.com/atom/ns#' term='forward'/><category scheme='http://www.blogger.com/atom/ns#' term='reply'/><title type='text'>Outlook Programming: how to find the parent message for a reply or forward message.</title><content type='html'>I'm currently involved in developing Outlook add-in.  During that I've faced the problem how to find the parent message for a reply or forward message.   The idea is that all messages in a conversation have the same ConversationTopic value, while the ConversationIndex is increased by 5 bytes with each change.   Here  is the sample that uses a MailItem named lastMailItem and searches the Inbox for a matching parent item.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#c0c0c0;"&gt;MAPIFolder inbox = m_applicationObject.Session.GetDefaultFolder(OlDefaultFolders.olFolderInbox);&lt;br /&gt;Items inboxItems = inbox.Items.Restrict("[ConversationTopic] = " + "\"" + m_lastMailItem.ConversationTopic + "\"");&lt;br /&gt;&lt;br /&gt;string str = m_lastMailItem.ConversationIndex;&lt;br /&gt;string convIndex = str.Substring(0, str.Length - 10);&lt;br /&gt;foreach (MailItem item in inboxItems)&lt;br /&gt;{&lt;br /&gt;if (item.ConversationIndex == convIndex)&lt;br /&gt;{&lt;br /&gt;// Item is found, add your code here!!&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;Hope this will help you lot's.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-2302113712766590038?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/2302113712766590038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=2302113712766590038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2302113712766590038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/2302113712766590038'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/07/outlook-programming-how-to-find-parent.html' title='Outlook Programming: how to find the parent message for a reply or forward message.'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-1656140620776143374</id><published>2008-07-29T09:13:00.002+03:00</published><updated>2008-07-29T09:17:11.325+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='login'/><category scheme='http://www.blogger.com/atom/ns#' term='MSN'/><category scheme='http://www.blogger.com/atom/ns#' term='can&apos;t'/><category scheme='http://www.blogger.com/atom/ns#' term='Error Code'/><category scheme='http://www.blogger.com/atom/ns#' term='80072745'/><title type='text'>Resolving the issue of those using MSN Messenger (Error Code: 80072745)</title><content type='html'>A lot of people are experiencing problems with MSN Messenger, especially the latest version. MSN Messenger 8, also known as Messenger Live!&lt;br /&gt;I expeirienced this problem myself, relating to Error Code: 80072745. It was a pain in the ass, it became rather annoying that I could not sign in.&lt;br /&gt;I kept getting the following message “We were unable to sign you in to the MSN Messenger, possibly because of a problem with your Internet connection. Please try again later. 80072745″&lt;br /&gt;I began to try signing in to an online messenger service, such as http://webmessenger.msn.com, I was able to sign in fine, so blaming the server was out of the question.&lt;br /&gt;If you are experiencing this problem, I sugest you try the following steps.&lt;br /&gt;&lt;br /&gt;In my personal case the problem was is Eset NOD32 Antivirus, and I simply removed MSN from it's Web access protection list.&lt;br /&gt;&lt;br /&gt;(Before you do the following steps, be sure that your Anti-Virus is fully updated, and you have run a full system scan for viruses/trojans.)&lt;br /&gt;1: If you are using a Firewall, be sure that MSN Messenger has been granted access.&lt;br /&gt;2: Clear your Internet Explorer’s Cache and Cookies. — Open Internet Explorer, click on Tools&gt;Options. Delete Files and Delete Cookies. (If you are using something different, Mozilla Firefox, they can be found in the Privacy TAB).&lt;br /&gt;3: MSN Messenger is required for “Use SSL 2.0″ and “Use SSL 3.0″ are enabled. — Open Internet Explorer, click on Tools&gt;Options. Go to Advanced, scroll down and check them both.&lt;br /&gt;4: Final step, Go to Start&gt;Run and type in cmd and press enter. Then enter the commands below one by one, and then press enter for each command:regsvr32 softpub.dll( A message will appear, click ok. Then type in the next command, and repeat)regsvr32 wintrust.dllregsvr32 initpki.dllregsvr32 MSXML3.dll&lt;br /&gt;After doing this, restart your Modem/Router, then try to sign in. If you are still unable to sign in, restart your computer.&lt;br /&gt;Sometimes spyware/addware can be the problem, I recommend that you use Spybot - Search and Destroy. &lt;a title="Click here for download location." href="http://www.safer-networking.org/en/mirrors/index.html" target="_blank"&gt;Click here for the Spybot website. &lt;/a&gt;&lt;br /&gt;If you need any more information, feel free to contact me. martin@martinjknight.com&lt;br /&gt;Please note that this information was taken from a well known source and was not created by me.&lt;br /&gt;Here is another way of possibly resolving the problem, which was posted by internet-kaltersia. You may want to try this out if the previous information didn’t work.&lt;a href="http://martinjknight.wordpress.com/2006/10/26/2006/10/26/resolving-the-issue-of-those-using-msn-messenger-error-code-80072745/#comment-329"&gt;&lt;/a&gt;&lt;br /&gt;Here is the crazy thing I had to do to fix this…&lt;br /&gt;Quote from Raphael&lt;br /&gt;Dear all if you have not heard simply add these addresses to the following file that should be opened with notepad and MSN will work.&lt;br /&gt;C:\WINDOWS\system32\drivers\etc\hosts - (When you open the ETC folder open the HOSTS file using notepad).&lt;br /&gt;insert the following addresses:65.54.239.80 messenger.hotmail.com65.54.239.80 dp.msnmessenger.skadns.net&lt;br /&gt;(INSERT THEM DIRECTLY UNDER THE OTHER 2 ADDRESSES AND ALIGN THEM WITH TAB.)&lt;br /&gt;Easy done … good luck.&lt;br /&gt;Thank you for that additional information!&lt;br /&gt;&lt;br /&gt;Please note that this information was taken from a well known source and was not created by me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-1656140620776143374?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/1656140620776143374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=1656140620776143374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1656140620776143374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1656140620776143374'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/07/resolving-issue-of-those-using-msn.html' title='Resolving the issue of those using MSN Messenger (Error Code: 80072745)'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-6842048410290402404</id><published>2008-07-07T16:41:00.003+03:00</published><updated>2008-07-07T16:54:29.908+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><category scheme='http://www.blogger.com/atom/ns#' term='enum'/><category scheme='http://www.blogger.com/atom/ns#' term='hidden'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='flag'/><category scheme='http://www.blogger.com/atom/ns#' term='folders'/><category scheme='http://www.blogger.com/atom/ns#' term='attributes'/><title type='text'>How to check for hidden/system files and folders.</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Maybe not everybody knows how to check whether file or folder is hidden/system.&lt;br /&gt;This code returns array of FileInfo and DirectoryInfo objects. &lt;br /&gt;&lt;br /&gt;FileInfo[] info = dirInfo.GetFiles();&lt;br /&gt;DirectoryInfo[] dirs = dirInfo.GetDirectories();&lt;br /&gt;&lt;br /&gt;They both have &lt;strong&gt;Attributes&lt;/strong&gt; property which is flag enum.  So you can use this property to check for files attributes.  Here is sample method to check whether object has hidden or system attributes:&lt;br /&gt;&lt;br /&gt;private static bool IsNotHiddenOrSystem(FileAttributes attributes)&lt;br /&gt;{&lt;br /&gt;    return (attributes &amp;amp; (FileAttributes.Hidden  FileAttributes.System)) == 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Full list of file attributes can be found on MSDN site:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-6842048410290402404?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/6842048410290402404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=6842048410290402404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6842048410290402404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6842048410290402404'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/07/how-to-check-for-hiddensystem-files-and.html' title='How to check for hidden/system files and folders.'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5687630667373441577</id><published>2008-07-05T20:00:00.001+03:00</published><updated>2008-07-05T20:00:59.205+03:00</updated><title type='text'>DynamicControlsPlaceholder - A placeholder that saves its child controls</title><content type='html'>&lt;h5&gt;Problem:&lt;/h5&gt;  &lt;p&gt;ASP.NET gives a developer the opportunity to programmatically add controls to a web form using &lt;b&gt;ParentControl.Controls.Add(new Control());&lt;/b&gt;    &lt;br /&gt;However, these controls are not persisted in any way thus having to be recreated for each subsequent request. &lt;/p&gt;  &lt;h5&gt;Goal:&lt;/h5&gt;  &lt;p&gt;To create a control that behaves like a placeholder but additionally handles recreating dynamic controls on subsequent requests.&lt;/p&gt;  &lt;h5&gt;Procedure:&lt;/h5&gt;  &lt;p&gt;I have created a custom control called DynamicControlsPlaceholder that derives from Placeholder and overrides Load- and SaveViewState.   &lt;br /&gt;In SaveViewState, the control hierarchy is recursively traversed and the control type and ID persisted to a string    &lt;br /&gt;In LoadViewState the persisted information is used to recreate the control tree to the state before.&lt;/p&gt;  &lt;h5&gt;Download (V2.2):&lt;/h5&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;p&gt;The &lt;a href="http://www.denisbauer.com/Download.aspx?File=DynamicControlsPlaceholder.zip"&gt;sourcecode&lt;/a&gt; is available in C# as a VS.NET project.&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;A &lt;a href="http://www.denisbauer.com/Download.aspx?File=DynamicControlsPlaceholderDLL.zip"&gt;ready-to-use assembly&lt;/a&gt; (including help file).&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;A &lt;a href="http://www.denisbauer.com/DynamicControlsPlaceholderDemo.aspx"&gt;demo&lt;/a&gt; shows the usage of this control. &lt;a href="http://www.denisbauer.com/Download.aspx?File=DynamicControlsPlaceholderDemo.zip"&gt;Sourcecode for the Demo (C#)&lt;/a&gt; or &lt;a href="http://www.denisbauer.com/Download.aspx?File=DynamicControlsPlaceholderDemoVB.zip"&gt;Sourcecode for the Demo &lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;From: &lt;a title="http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx" href="http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx"&gt;http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5687630667373441577?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5687630667373441577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5687630667373441577' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5687630667373441577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5687630667373441577'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/07/dynamiccontrolsplaceholder-placeholder.html' title='DynamicControlsPlaceholder - A placeholder that saves its child controls'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-3191620092180921651</id><published>2008-07-04T15:42:00.001+03:00</published><updated>2008-07-04T17:11:15.574+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='binding'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Eval'/><category scheme='http://www.blogger.com/atom/ns#' term='Bind'/><category scheme='http://www.blogger.com/atom/ns#' term='data-bound'/><category scheme='http://www.blogger.com/atom/ns#' term='controls'/><title type='text'>What's the difference between Bind and Eval</title><content type='html'>Data-binding expressions are contained within &lt;%# and %&gt; delimiters and use the Eval and Bind functions. The Eval function is used to define one-way (read-only) binding. The Bind function is used for two-way (updatable) binding. In addition to calling Eval and Bind methods to perform data binding in a data-binding expression, you can call any publicly scoped code within the &lt;%# and %&gt; delimiters to execute that code and return a value during page processing.&lt;br /&gt;Data-binding expressions are resolved when the DataBind method of a control or of the &lt;a id="ctl00_rs1_mainContentContainer_ctl29" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl29',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.aspx"&gt;Page&lt;/a&gt; class is called. For controls such as the &lt;a id="ctl00_rs1_mainContentContainer_ctl30" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl30',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt;, &lt;a id="ctl00_rs1_mainContentContainer_ctl31" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl31',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.detailsview.aspx"&gt;DetailsView&lt;/a&gt;, and &lt;a id="ctl00_rs1_mainContentContainer_ctl32" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl32',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.aspx"&gt;FormView&lt;/a&gt; controls, data-binding expressions are resolved automatically during the control's PreRender event and you are not required to call the DataBind method explicitly. &lt;br /&gt;&lt;strong&gt;Using the Eval Method&lt;/strong&gt;&lt;br /&gt;The Eval method evaluates late-bound data expressions in the templates of data-bound controls such as the &lt;a id="ctl00_rs1_mainContentContainer_ctl37" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl37',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt;, &lt;a id="ctl00_rs1_mainContentContainer_ctl38" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl38',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.detailsview.aspx"&gt;DetailsView&lt;/a&gt;, and &lt;a id="ctl00_rs1_mainContentContainer_ctl39" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl39',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.aspx"&gt;FormView&lt;/a&gt; controls. At run time, the Eval method calls the &lt;a id="ctl00_rs1_mainContentContainer_ctl40" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl40',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.databinder.eval.aspx"&gt;Eval&lt;/a&gt; method of the &lt;a id="ctl00_rs1_mainContentContainer_ctl41" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl41',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.databinder.aspx"&gt;DataBinder&lt;/a&gt; object, referencing the current data item of the naming container. The naming container is generally the smallest part of the data-bound control that contains a whole record, such as a row in a &lt;a id="ctl00_rs1_mainContentContainer_ctl42" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl42',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt; control. You can therefore use the Eval method only for binding inside templates of a data-bound control.&lt;br /&gt;The Eval method takes the name of a data field and returns a string containing the value of that field from the current record in the data source. You can supply an optional second parameter to specify a format for the returned string. The string format parameter uses the syntax defined for the &lt;a id="ctl00_rs1_mainContentContainer_ctl43" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl43',this);" href="http://msdn.microsoft.com/en-us/library/system.string.format.aspx"&gt;Format&lt;/a&gt; method of the &lt;a id="ctl00_rs1_mainContentContainer_ctl44" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl44',this);" href="http://msdn.microsoft.com/en-us/library/system.string.aspx"&gt;String&lt;/a&gt; class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Using the Bind Method&lt;/strong&gt;&lt;br /&gt;The Bind method has some similarities to the Eval method, but there are significant differences. Although you can retrieve the values of data-bound fields with the Bind method, as you can with the Eval method, the Bind method is also used when data can be modified.&lt;br /&gt;In ASP.NET, data-bound controls such as the &lt;a id="ctl00_rs1_mainContentContainer_ctl45" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl45',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt;, &lt;a id="ctl00_rs1_mainContentContainer_ctl46" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl46',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.detailsview.aspx"&gt;DetailsView&lt;/a&gt;, and &lt;a id="ctl00_rs1_mainContentContainer_ctl47" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl47',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.aspx"&gt;FormView&lt;/a&gt; controls can automatically use the update, delete, and insert operations of a data source control. For example, if you have defined SQL Select, Insert, Delete, and Update statements for your data source control, using Bind in a &lt;a id="ctl00_rs1_mainContentContainer_ctl48" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl48',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt;, &lt;a id="ctl00_rs1_mainContentContainer_ctl49" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl49',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.detailsview.aspx"&gt;DetailsView&lt;/a&gt;, or &lt;a id="ctl00_rs1_mainContentContainer_ctl50" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl50',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.aspx"&gt;FormView&lt;/a&gt; control template enables the control to extract values from child controls in the template and pass them to the data source control. The data source control in turn performs the appropriate command for the database. For this reason, the Bind function is used inside the EditItemTemplate or InsertItemTemplate of a data-bound control.&lt;br /&gt;The Bind method is typically used with input controls such as the &lt;a id="ctl00_rs1_mainContentContainer_ctl51" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl51',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.aspx"&gt;TextBox&lt;/a&gt; control rendered by a &lt;a id="ctl00_rs1_mainContentContainer_ctl52" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe62027_cctl00_rs1_mainContentContainer_ctl52',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt; row in edit mode. When the data-bound control creates these input controls as part of its own rendering, it can extract the input values.&lt;br /&gt;The Bind method takes the name of a data field to associate with the bound property.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-3191620092180921651?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/3191620092180921651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=3191620092180921651' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3191620092180921651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3191620092180921651'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/07/whats-difference-between-bind-and-eval.html' title='What&apos;s the difference between Bind and Eval'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5615126086260026175</id><published>2008-07-02T11:40:00.002+03:00</published><updated>2008-07-02T11:46:52.745+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='binding'/><category scheme='http://www.blogger.com/atom/ns#' term='common'/><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='life-cycle'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='Page'/><category scheme='http://www.blogger.com/atom/ns#' term='events'/><category scheme='http://www.blogger.com/atom/ns#' term='data-bound'/><title type='text'>More information about  ASP.NET Page life-cycle and common events</title><content type='html'>&lt;p&gt;I’ve found wonderful document about ASP.NET Page lifecycle events on &lt;a title="http://john-sheehan.com/blog" href="http://john-sheehan.com/blog"&gt;http://john-sheehan.com/blog&lt;/a&gt;.  Little information about general page Life-cycle stages and events:&lt;br /&gt;&lt;a href="http://lh4.ggpht.com/realnero/SGs-58G1jKI/AAAAAAAAAto/YgbkErfakOY/s1600-h/life%5B5%5D.jpg"&gt;&lt;img title="life" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height="332" alt="life" src="http://lh3.ggpht.com/realnero/SGs-64gckYI/AAAAAAAAAts/2hT_YyCL7pg/life_thumb%5B3%5D.jpg?imgmax=800" width="408" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;The whole document can be found here: &lt;a title="http://john-sheehan.com/blog/wp-content/uploads/aspnet-life-cycles-events.pdf" href="http://john-sheehan.com/blog/wp-content/uploads/aspnet-life-cycles-events.pdf"&gt;http://john-sheehan.com/blog/wp-content/uploads/aspnet-life-cycles-events.pdf&lt;/a&gt; . There is also information about Data Binding Events for Data-Bound Controls and Common Life-cycle Events.&lt;/p&gt;&lt;p&gt;Enjoy :)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5615126086260026175?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5615126086260026175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5615126086260026175' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5615126086260026175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5615126086260026175'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/07/more-information-about-aspnet-page-life.html' title='More information about  ASP.NET Page life-cycle and common events'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/realnero/SGs-64gckYI/AAAAAAAAAts/2hT_YyCL7pg/s72-c/life_thumb%5B3%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-3772677282124170542</id><published>2008-06-30T17:46:00.003+03:00</published><updated>2008-06-30T17:56:12.400+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tooltip'/><category scheme='http://www.blogger.com/atom/ns#' term='headers'/><category scheme='http://www.blogger.com/atom/ns#' term='NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='column'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Tooltip in ASP.NET GridView headers</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;I was searching for the way show Tooltips for headers of ASP.NET GridView control without using javascript or using unnecessary overhead in code. And I found the way how to do it. When you define columns or your GridView you should use TemplateField instead of BoundField cause it's customizable. In TemplateField you can define HeaderTemplate and put there Label control with needed Tooltip. Here is the code:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;asp:GridView ID="GridView" DataSourceID="ObjectDataSource1" runat="server" AutoGenerateColumns="False" &amp;gt;&lt;br /&gt;&amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;lt;asp:TemplateField SortExpression="ShareCount"&amp;gt;&lt;br /&gt;&amp;lt;HeaderTemplate&amp;gt;&lt;br /&gt;&amp;lt;asp:Label runat="server" Text="Nr. of Stocks" ToolTip="Total number of stocks on the market"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;lt;/HeaderTemplate&amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;asp:Label ID="Label2" runat="server" Text='&amp;lt;%# Bind("ShareCount") %&amp;gt;'&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;&amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;/p&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-3772677282124170542?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/3772677282124170542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=3772677282124170542' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3772677282124170542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3772677282124170542'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/tooltip-in-aspnet-gridview-headers.html' title='Tooltip in ASP.NET GridView headers'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-3161103100369878054</id><published>2008-06-30T14:26:00.004+03:00</published><updated>2008-06-30T14:34:59.907+03:00</updated><title type='text'>.NET Format Strings</title><content type='html'>I've found great pdf document about .NET Format Strings.&lt;br /&gt;&lt;br /&gt;Here is the sample from it.&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_j5Qttpe542Y/SGjD8-ILcmI/AAAAAAAAAtM/0WnYlqf0Rsk/s1600-h/net+format.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_j5Qttpe542Y/SGjD8-ILcmI/AAAAAAAAAtM/0WnYlqf0Rsk/s400/net+format.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5217635620545589858" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Full document can be downloaded from &lt;a href="http://john-sheehan.com/blog/"&gt;John Sheehan blog &lt;/a&gt; : &lt;br /&gt;&lt;a href="http://john-sheehan.com/blog/wp-content/uploads/msnet-formatting-strings.pdf"&gt;http://john-sheehan.com/blog/wp-content/uploads/msnet-formatting-strings.pdf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-3161103100369878054?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/3161103100369878054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=3161103100369878054' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3161103100369878054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3161103100369878054'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/net-format-strings.html' title='.NET Format Strings'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_j5Qttpe542Y/SGjD8-ILcmI/AAAAAAAAAtM/0WnYlqf0Rsk/s72-c/net+format.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-8454821968196387052</id><published>2008-06-29T17:36:00.002+03:00</published><updated>2008-06-29T17:43:59.060+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='binding'/><category scheme='http://www.blogger.com/atom/ns#' term='tag'/><category scheme='http://www.blogger.com/atom/ns#' term='NET'/><category scheme='http://www.blogger.com/atom/ns#' term='essentials'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP'/><category scheme='http://www.blogger.com/atom/ns#' term='inline'/><title type='text'>ASP.NET data binding essentials</title><content type='html'>&lt;p&gt;&lt;a id="1"&gt;&lt;/a&gt;&lt;a id="1a"&gt;&lt;/a&gt;&amp;lt;%# %&amp;gt; Syntax&lt;br /&gt;&lt;br /&gt;ASP.NET introduces a new declarative syntax, &amp;lt;%# %&amp;gt;. This syntax is the basis for using data binding in an .aspx page. All data binding expressions must be contained within these characters. The following list includes examples of simple data binding from multiple sources:&lt;br /&gt;&lt;br /&gt;• Simple property (syntax for a customer):&lt;br /&gt;&amp;lt;%# custID %&amp;gt;&lt;br /&gt;&lt;br /&gt;• Collection (syntax for an order):&lt;br /&gt;&amp;lt;asp:listbox id="List1" datasource="'&amp;lt;%#"&amp;gt;' runat="server"&amp;gt;&lt;br /&gt;&lt;br /&gt;• Expression (syntax for a contact):&lt;br /&gt;&amp;lt;%# ( customer.First Name + " " + customer.LastName ) %&amp;gt;&lt;br /&gt;&lt;br /&gt;• Method result (syntax for the outstanding balance):&lt;br /&gt;&amp;lt;%# GetBalance(custID) %&amp;gt;&lt;br /&gt;&lt;br /&gt;In the preceding examples, the inline &amp;lt;%# %&gt; tags indicate where the information from a specific data source is to be placed in the .aspx page. The following data binding example uses a TextBox Web server control: &amp;lt;asp:textbox id="txt" text=="&amp;lt;%# custID %&amp;gt;" runat=server /&amp;gt;&lt;br /&gt;&lt;br /&gt;For more information about data binding syntax, see the following .NET Framework Software Development Kit (SDK) documentation:&lt;br /&gt;Data Binding Expression Syntax&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/bda9bbfx(vs.71).aspx"&gt;http://msdn2.microsoft.com/en-us/library/bda9bbfx(vs.71).aspx&lt;/a&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-8454821968196387052?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/8454821968196387052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=8454821968196387052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8454821968196387052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8454821968196387052'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/aspnet-data-binding-essentials.html' title='ASP.NET data binding essentials'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-6722858987521965175</id><published>2008-06-27T15:39:00.003+03:00</published><updated>2008-07-02T11:47:51.830+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Beginner'/><category scheme='http://www.blogger.com/atom/ns#' term='Concepts'/><category scheme='http://www.blogger.com/atom/ns#' term='guide'/><category scheme='http://www.blogger.com/atom/ns#' term='Sacha Barber'/><category scheme='http://www.blogger.com/atom/ns#' term='Basic'/><title type='text'>WPF Beginners Guide</title><content type='html'>&lt;a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=569009"&gt;Sacha Barber&lt;/a&gt; is the great man who writes lot's of the great articles about WPF. Here is the series of his articles for beginners in WPF:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF1.aspx"&gt;WPF: A Beginner's Guide - Part 1 of n&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF2.aspx"&gt;WPF: A Beginner's Guide - Part 2 of n&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF3.aspx"&gt;WPF: A Beginner's Guide - Part 3 of n&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF3.aspx"&gt;&lt;/a&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF4.aspx"&gt;WPF: A Beginner's Guide - Part 4 of n&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF5.aspx"&gt;WPF: A Beginner's Guide - Part 5 of n&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/BeginWPF6.aspx"&gt;WPF: A Beginner's Guide - Part 6 of n&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope this will greatly help many of you and you'll get main concepts and basics of this wonderful technology. Here is his blog: &lt;a href="http://www.sachabarber.net/"&gt;Sacha Barber blog&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-6722858987521965175?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/6722858987521965175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=6722858987521965175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6722858987521965175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6722858987521965175'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/wpf-beginners-guide.html' title='WPF Beginners Guide'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-3771162306801809960</id><published>2008-06-27T08:42:00.004+03:00</published><updated>2008-06-27T08:49:43.524+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='aspx'/><category scheme='http://www.blogger.com/atom/ns#' term='type'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='2005'/><category scheme='http://www.blogger.com/atom/ns#' term='load'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><category scheme='http://www.blogger.com/atom/ns#' term='not'/><title type='text'>VS 2005 Error 1: "Could not load type..."</title><content type='html'>&lt;p&gt;You can receive this error "Could not load type" error message in your ASP.NET Application, when you browse to .aspx page by using Visual C# .NET or running from local IIS.&lt;/p&gt;&lt;p&gt;SYMPTOMS&lt;/p&gt;&lt;p&gt;When you browse to an .aspx page, you may receive one of the following error messages:&lt;br /&gt;Could not load type 'Namespace.Global'.&lt;br /&gt;-or-&lt;br /&gt;Could not load type 'Namespace.PageName'.&lt;br /&gt;&lt;br /&gt;CAUSE&lt;/p&gt;&lt;p&gt;These errors occur if the .aspx page or the Global.asax page contains a reference to a code-behind module and if the application has not been built.&lt;/p&gt;&lt;p&gt;RESOLUTION&lt;/p&gt;&lt;p&gt;Use one of the following methods to build the application:&lt;br /&gt;• Use the C# command line compiler (CSC.exe) to run the following command:&lt;br /&gt;csc /t:library /r:System.web.dll /out:mydll.dll myfile.cs&lt;br /&gt;• In Microsoft Visual Studio .NET, click Build on the Build menu.&lt;/p&gt;&lt;p&gt;NOTE: Microsoft Visual Basic .NET background compiles the project as soon as it is created. Because Visual C# .NET projects only background parse, you must explicitly build the application. &lt;/p&gt;&lt;p&gt;Steps to Reproduce the Behavior&lt;/p&gt;&lt;p&gt;1. Start Visual Studio .NET.&lt;br /&gt;2. On the File menu, point to New, and then click Project.&lt;br /&gt;3. Click Visual C# Projects under Project Types, and then click ASP.NET Web Application under Templates.&lt;br /&gt;4. Right-click WebForm1.aspx, and then click View in Browser.&lt;/p&gt;&lt;p&gt;Materials are taken from &lt;a href="http://support.microsoft.com/kb/306155"&gt;http://support.microsoft.com/kb/306155&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-3771162306801809960?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/3771162306801809960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=3771162306801809960' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3771162306801809960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/3771162306801809960'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/vs-2005-error-1-could-not-load-type.html' title='VS 2005 Error 1: &quot;Could not load type...&quot;'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-6642006678324876003</id><published>2008-06-25T11:00:00.002+03:00</published><updated>2008-06-25T11:05:27.902+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='INSERT'/><category scheme='http://www.blogger.com/atom/ns#' term='Failed'/><category scheme='http://www.blogger.com/atom/ns#' term='INDEX'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ARITHABORT'/><title type='text'>SQL Error "INSERT Failed" When You Update Table Referenced in an Indexed View</title><content type='html'>SYMPTOMS&lt;br /&gt;When you run a stored procedure or SQL INSERT statement directly, which attempts to insert a row into a table that is referenced in an indexed view, the following error may occur:&lt;br /&gt;INSERT failed because the following SET options have incorrect settings: 'ARITHABORT' Furthermore, this error may occur even if "SET ARITHABORT ON" is included in the batch or stored procedure that attempts the INSERT.&lt;br /&gt;&lt;br /&gt;CAUSE&lt;br /&gt;To successfully insert a row into a table that is referenced in an indexed view, the SQL ARITHABORT configuration setting must be set to ON. Furthermore, the statement that applies this configuration setting must be executed in its own batch. Because stored procedures contain only one batch, adding the statement to the procedure does not work.&lt;br /&gt;&lt;br /&gt;MY SOLUTION&lt;br /&gt;My own solution was to rebuild stored procedures and indexed used with the table you are updating.&lt;br /&gt;&lt;br /&gt;RESOLUTION&lt;br /&gt;To resolve this problem, add the following ADO code to your application after you open the connection to your database: MyConnection.Execute "SET ARITHABORT ON"&lt;br /&gt;where MyConnection is a reference to the ADO connection object you are using to run the stored procedure that performs an INSERT or the SQL INSERT statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Material taken from: &lt;a href="http://support.microsoft.com/kb/305333"&gt;http://support.microsoft.com/kb/305333&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-6642006678324876003?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/6642006678324876003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=6642006678324876003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6642006678324876003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6642006678324876003'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/sql-error-insert-failed-when-you-update.html' title='SQL Error &quot;INSERT Failed&quot; When You Update Table Referenced in an Indexed View'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-271960755337007683</id><published>2008-06-17T11:57:00.001+03:00</published><updated>2008-06-17T11:59:16.762+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Employer'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>New Employer</title><content type='html'>I've left Artfulbits Inc, and now I work for Euroland in Estonia as ASP.NET Developer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-271960755337007683?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/271960755337007683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=271960755337007683' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/271960755337007683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/271960755337007683'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/new-employer.html' title='New Employer'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-8005017156003238438</id><published>2008-06-01T17:08:00.000+03:00</published><updated>2008-06-01T17:32:48.773+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='HTTP'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='pipeline'/><title type='text'>HTTP pipeline in ASP.NET 2.0.</title><content type='html'>&lt;p&gt;Today I will provide you with a short reference for the steps in HTTP pipeline in ASP.NET 2.0. Some of the steps are internal and can't be subscribed by HTTP modules or global.asax:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cccccc;"&gt;1.  Internal step to validate request. Protects against malicious attacks exploiting path canonicalization&lt;br /&gt;2.  Internal step to perform URL mapping (if the URL mapping feature is enabled)&lt;br /&gt;3.  Fire BeginRequest event&lt;br /&gt;4.  Fire AuthenticateRequest event&lt;br /&gt;5.  Fire DefaultAuthentication internal event&lt;br /&gt;6.  Fire PostAuthenticateRequest event&lt;br /&gt;7.  Fire AuthorizeRequest event&lt;br /&gt;8.  Fire PostAuthorizeRequest event&lt;br /&gt;9.  Fire ResolveRequestCache event&lt;br /&gt;10. Fire PostResolveRequestCache event&lt;br /&gt;11. Internal step to determine the IHttpHandler to process the current request (this is when the page compilation takes place)&lt;br /&gt;12. Fire PostMapRequestHandler event&lt;br /&gt;13. Fire AcquireRequestState event&lt;br /&gt;14. Fire PostAcquireRequestState event&lt;br /&gt;15. Fire PreRequestHandlerExecute event&lt;br /&gt;16. Internal step to execute the IHttpHandler (call its ProcessRequest method) for the current request. The handler is determined at step #11&lt;br /&gt;17. Fire PostRequestHandlerExecute event&lt;br /&gt;18. Fire ReleaseRequestState event&lt;br /&gt;19. Fire PostReleaseRequestState event&lt;br /&gt;20. Internal step to perform response filtering (only if HttpResponse.Filter is installed)&lt;br /&gt;21. Fire UpdateRequestCache event&lt;br /&gt;22. Fire PostUpdateRequestCache event&lt;br /&gt;23. Fire EndRequest event. This is the only event that is guaranteed to be fired for each request&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I've found this info in Dmitryr's blog and took it from another &lt;a href="http://blogs.msdn.com/dmitryr/archive/2006/03/08/546908.aspx"&gt;topic&lt;/a&gt;, but this info will be valuable also. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-8005017156003238438?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/8005017156003238438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=8005017156003238438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8005017156003238438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8005017156003238438'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/06/http-pipeline-in-aspnet-20.html' title='HTTP pipeline in ASP.NET 2.0.'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-4456945685044627120</id><published>2008-05-26T00:23:00.000+03:00</published><updated>2008-05-26T12:58:17.614+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET 2.0 Directives Page Control Assembly'/><title type='text'>ASP.NET 2.0 Directives</title><content type='html'>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Today I've decided to write about ASP.NET 2.0 directives. There are 11 of them. Here is a full list of directives:&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="149"&gt;Directive&lt;/td&gt;&lt;td width="165"&gt;Attributes&lt;/td&gt;&lt;td width="1012"&gt;Short description&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;@Assembly&lt;/td&gt;&lt;td&gt;Name&lt;br /&gt;Src&lt;/td&gt;&lt;td valign="top"&gt;Imports assembly with given name into page or control&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;@Control&lt;/td&gt;&lt;td&gt;The same as Page has&lt;/td&gt;&lt;td&gt;Applied for properties setting while creating custom controls&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;@Implements&lt;/td&gt;&lt;td&gt;Interface&lt;/td&gt;&lt;td&gt;Specifies that page's class implements this interface&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;@Import&lt;/td&gt;&lt;td&gt;Namespace&lt;/td&gt;&lt;td&gt;Imports given namespace&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;@Master&lt;/td&gt;&lt;td&gt;The same as Page has&lt;/td&gt;&lt;td&gt;Apllied for specifying Master Page template. New in ASP.NET 2.0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;@MasterType&lt;/td&gt;&lt;td&gt;TypeName&lt;br /&gt;VirtualPath&lt;/td&gt;&lt;td&gt;Gives strongly typed reference on class contained in Master Page. Gives opportunity to reference class properties.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;OutputCache&lt;/td&gt;&lt;td&gt;Duration&lt;br /&gt;Location&lt;br /&gt;VaryByCustom&lt;br /&gt;VaryByHeader&lt;br /&gt;VaryByParam&lt;br /&gt;VaryByControl&lt;/td&gt;&lt;td valign="top"&gt;Controls Page or Control caching. See msdn for details.&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;@Page&lt;/td&gt;&lt;td&gt;Described below&lt;/td&gt;&lt;td&gt;Attributes refering current Page.Used only if files with .aspx extension.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;@PreviousPageType&lt;/td&gt;&lt;td&gt;TypeName&lt;br /&gt;VirtualPath&lt;/td&gt;&lt;td valign="top"&gt;Page, which was used for user data sending. New in ASP.NET 2.0.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;@Reference&lt;/td&gt;&lt;td&gt;Page&lt;br /&gt;Control&lt;/td&gt;&lt;td valign="top"&gt;Page or Control that should be compiled with current.&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td valign="top"&gt;@Register&lt;/td&gt;&lt;td&gt;Assembly&lt;br /&gt;Namespace&lt;br /&gt;Src&lt;br /&gt;TagName&lt;br /&gt;TagPrefix&lt;/td&gt;&lt;td valign="top"&gt;Associates aliases with namespaces and class names for notation in custom server control syntax.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;@Page Directive&lt;br /&gt;&lt;br /&gt;The @Page directive enables you to specify attributes and values for an Asp.Net Page to be used when the page is parsed and compiled. Every .aspx files should include this @Page directive to execute. There are many attributes belong to this directive. We shall discuss some of the important attributes here.&lt;br /&gt;&lt;br /&gt;Language: This attribute tells the compiler about the language being used in the code-behind. Values can represent any .NET-supported language, including VB.NET, C#, or JScript .NET.&lt;br /&gt;&lt;br /&gt;AutoEventWireup: For every page there is an automatic way to bind the events to methods in the same .aspx file or in code behind. The default value is true.&lt;br /&gt;&lt;br /&gt;CodeFile: Specifies the code-behid file with which the page is associated.&lt;br /&gt;&lt;br /&gt;Title: To set the page title other than what is specified in the master page.&lt;br /&gt;&lt;br /&gt;Culture: Specifies the culture setting of the page. If you set to auto, enables the page to automatically detect the culture required for the page.&lt;br /&gt;&lt;br /&gt;UICulture: Specifies the UI culture setting to use for the page. Supports any valid UI culture value.&lt;br /&gt;&lt;br /&gt;ValidateRequest: Indicates whether request validation should occur. If set to true, request validation checks all input data against a hard-coded list of potentially dangerous values. If a match occurs, an HttpRequestValidationException Class is thrown. The default is true. This feature is enabled in the machine configuration file (Machine.config). You can disable it in your application configuration file (Web.config) or on the page by setting this attribute to false.&lt;br /&gt;&lt;br /&gt;Theme: To specify the theme for the page. This is a new feature available in Asp.Net 2.0.&lt;br /&gt;&lt;br /&gt;SmartNavigation: Indicates the smart navigation feature of the page. When set to True, this returns the postback to current position of the page. The default value is false.&lt;br /&gt;&lt;br /&gt;MasterPageFile: Specify the location of the MasterPage file to be used with the current Asp.Net page.&lt;br /&gt;&lt;br /&gt;EnableViewState: Indicates whether view state is maintained across page requests. true if view state is maintained; otherwise, false. The default is true.&lt;br /&gt;&lt;br /&gt;ErrorPage: Specifies a target URL for redirection if an unhandled page exception occurs.&lt;br /&gt;&lt;br /&gt;Inherits: Specifies a code-behind class for the page to inherit. This can be any class derived from the Page class.&lt;br /&gt;&lt;br /&gt;There are also other attributes which are of seldom use such as Buffer, CodePage, ClassName, EnableSessionState, Debug, Description, EnableTheming, EnableViewStateMac, TraceMode, WarningLevel, etc. Here is an example of how a @Page directive looks&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-4456945685044627120?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/4456945685044627120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=4456945685044627120' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4456945685044627120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/4456945685044627120'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/05/aspnet-20-directives.html' title='ASP.NET 2.0 Directives'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-9128100270050519875</id><published>2008-05-05T16:44:00.000+03:00</published><updated>2008-05-06T13:52:01.739+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='turn off'/><category scheme='http://www.blogger.com/atom/ns#' term='Vista'/><category scheme='http://www.blogger.com/atom/ns#' term='message'/><category scheme='http://www.blogger.com/atom/ns#' term='UAC'/><title type='text'>How to disable Vista UAC.</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;I've noticed that Vista UAC turned on automatically about 2 weeks(my work PC is in domain) ago and now I can't turn it off using Control Panel - it simply doesn't turns off. UAC irritates me highly and I've started searching the solution how to kill it :) And found one very usefull. UAC still works but doesn't display any messages :-))&lt;br /&gt;&lt;br /&gt;You just need to create 2 keys in registry, here they are:&lt;br /&gt;In [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]&lt;br /&gt;"ConsentPromptBehaviorAdmin"=dword:00000000&lt;br /&gt;"EnableLUA"=dword:00000001&lt;br /&gt;&lt;br /&gt;Or if you want to turn it off totally simply change and reboot:&lt;br /&gt;"EnableLUA"=dword:00000000&lt;br /&gt;&lt;br /&gt;You can also use msconfig to do the same:&lt;br /&gt;- Start - Run - msconfig - Tools -Disable UAC&lt;br /&gt;&lt;br /&gt;Hope this will help other people.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-9128100270050519875?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/9128100270050519875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=9128100270050519875' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/9128100270050519875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/9128100270050519875'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/05/how-to-disable-vista-uac.html' title='How to disable Vista UAC.'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-6066287389332338094</id><published>2008-04-29T21:20:00.000+03:00</published><updated>2008-04-30T12:05:36.079+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='localhost'/><category scheme='http://www.blogger.com/atom/ns#' term='webservice'/><category scheme='http://www.blogger.com/atom/ns#' term='WebMethod'/><category scheme='http://www.blogger.com/atom/ns#' term='protocol'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>ASP.NET 2.0 Web service problem</title><content type='html'>Today I've tried to publish my web service on aspspider.net. But I've faced the problem that I can't run the webservice method with following message: "The test form is only available for requests from the local machine". I've read some information and found out that you need to edit config file of your application and add there the following declaration to specify that an ASP.NET Web service can use HttpGet and HttpPost protocols to receive request data sent from a client and return response data.&lt;br /&gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;lt;webServices&amp;gt;&lt;br /&gt;&amp;lt;protocols&amp;gt;&lt;br /&gt;&amp;lt;add name="HttpGet"/&amp;gt;&lt;br /&gt;&amp;lt;add name="HttpPost"/&amp;gt;&lt;br /&gt;&amp;lt;/protocols&amp;gt;&lt;br /&gt;&amp;lt;/webServices&amp;gt;&lt;br /&gt;&amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;&lt;br /&gt;Now it works perfect.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-6066287389332338094?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/6066287389332338094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=6066287389332338094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6066287389332338094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/6066287389332338094'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/04/aspnet-20-webservice-problem.html' title='ASP.NET 2.0 Web service problem'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5931804668290403793</id><published>2008-04-17T22:15:00.000+03:00</published><updated>2008-04-17T22:16:27.421+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shareware software development'/><title type='text'>Shareware software</title><content type='html'>I've just started to think about shareware software.  I have some ideas of software implementation and I'll try to implement my ideas soon.  The only thing that will have to do is to sell that software :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5931804668290403793?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5931804668290403793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5931804668290403793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5931804668290403793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5931804668290403793'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/04/shareware-software.html' title='Shareware software'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-1876203613515736405</id><published>2008-02-28T12:25:00.000+02:00</published><updated>2008-02-28T12:30:50.254+02:00</updated><title type='text'>First photos from new camera</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_j5Qttpe542Y/R8aNH_NLdeI/AAAAAAAAAEU/-ZG8LW6QfKs/s1600-h/P1010343.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5171976390446904802" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_j5Qttpe542Y/R8aNH_NLdeI/AAAAAAAAAEU/-ZG8LW6QfKs/s400/P1010343.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Here is new night photo made yesterday.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-1876203613515736405?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/1876203613515736405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=1876203613515736405' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1876203613515736405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/1876203613515736405'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/02/first-photos-from-new-camera.html' title='First photos from new camera'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_j5Qttpe542Y/R8aNH_NLdeI/AAAAAAAAAEU/-ZG8LW6QfKs/s72-c/P1010343.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-8938293273034420627</id><published>2008-02-26T14:55:00.000+02:00</published><updated>2008-02-26T18:28:04.816+02:00</updated><title type='text'>My first SLR camera</title><content type='html'>&lt;a href="http://www.dpreview.com/news/0703/Olympus/e510-01.jpg"&gt;&lt;img style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://www.dpreview.com/news/0703/Olympus/e510-01.jpg" border="0" /&gt;&lt;/a&gt;Yesterday I've bought my first SLR camera Olympus E510. &lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;It's really great camera, first impressions are cool!&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Here is full review of the camera: &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://www.dpreview.com/reviews/olympuse510/page3.asp"&gt;http://www.dpreview.com/reviews/olympuse510/page3.asp&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-8938293273034420627?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/8938293273034420627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=8938293273034420627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8938293273034420627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/8938293273034420627'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/02/my-first-slr-camera.html' title='My first SLR camera'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-597005046064074832.post-5925349401818533416</id><published>2008-02-13T16:01:00.000+02:00</published><updated>2008-02-13T16:02:19.751+02:00</updated><title type='text'>Hi</title><content type='html'>Here is my first post :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/597005046064074832-5925349401818533416?l=realnero.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://realnero.blogspot.com/feeds/5925349401818533416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=597005046064074832&amp;postID=5925349401818533416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5925349401818533416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/597005046064074832/posts/default/5925349401818533416'/><link rel='alternate' type='text/html' href='http://realnero.blogspot.com/2008/02/hi.html' title='Hi'/><author><name>realnero</name><uri>http://www.blogger.com/profile/07294563197168876268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
