<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ASP.NET - Code Snippets and Tutorials</title>
	<atom:link href="http://www.aspneter.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aspneter.com</link>
	<description>Free ASP.NET Code Snippets, Source Code, Articles, Examples, Tutorials and Programming Help</description>
	<lastBuildDate>Mon, 14 May 2012 16:13:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>A generic error occurred in GDI+ (Possible Solution)</title>
		<link>http://www.aspneter.com/2012/05/a-generic-error-occurred-in-gdi-possible-solution/</link>
		<comments>http://www.aspneter.com/2012/05/a-generic-error-occurred-in-gdi-possible-solution/#comments</comments>
		<pubDate>Mon, 14 May 2012 16:13:14 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Bedugging]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=658</guid>
		<description><![CDATA[I guess you&#8217;ve read about permissions thing which is that your application doesn&#8217;t have a write permission on some directory. But sometimes it can be simply a missing directory. Yeah it did happen to me today. I just found out that VS compiler excluded an empty folder from the pre-compiled version. As soon as i [...]]]></description>
			<content:encoded><![CDATA[<p>I guess you&#8217;ve read about <strong>permissions</strong> thing which is that your application doesn&#8217;t have a <strong>write permission on some directory</strong>. But sometimes it can be simply a <strong>missing directory</strong>. Yeah it did happen to me today. I just found out that VS compiler <strong>excluded an empty folder</strong> from the <strong>pre-compiled</strong> version. As soon as i copied the precompiled version i started getting &#8220;<strong>A generic error occurred in GDI+</strong>&#8221; error. So next time just double check if <strong>missing folder</strong> is your problem. Find the code that deals with the GDI+ and be sure that your paths match existing folder(s).</p>
<p>Hope this helps to someone</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2012/05/a-generic-error-occurred-in-gdi-possible-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get rid of the XML Parsing Error</title>
		<link>http://www.aspneter.com/2012/02/how-to-get-rid-of-the-xml-parsing-error/</link>
		<comments>http://www.aspneter.com/2012/02/how-to-get-rid-of-the-xml-parsing-error/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 11:29:52 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[System.Net]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=654</guid>
		<description><![CDATA[I just want to share a possible fix for this odd error. In my case it was a silly if statement in which i decide if MyPanel control should be rendered or not. However i missed the name of the panel control so i ended up with this XML Parsing Error. After i while i [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_655" class="wp-caption alignleft" style="width: 529px"><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2012/02/xml-parsing-error.png"><img src="http://www.aspneter.com/aspneter/wp-content/uploads/2012/02/xml-parsing-error.png" alt="XML Parsing Error" title="xml parsing error" width="519" height="200" class="size-full wp-image-655" /></a><p class="wp-caption-text">XML Parsing Error</p></div> I just want to share a possible fix for this odd error. In my case it was a silly if statement in which i decide if MyPanel control should be rendered or not. However i missed the name of the panel control so i ended up with this XML Parsing Error. After i while i figured out that i have an error in the code-behind that looked like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">If</span> condition = <span style="color: #000080;">True</span> <span style="color: #000080;">Then</span>
   MyPanel.Visible = <span style="color: #000080;">True</span>
<span style="color: #000080;">Else</span>
   Visible = <span style="color: #000080;">False</span>
<span style="color: #000080;">End</span> Try</pre></div></div>

<p>Once i changed to the below it worked like a charm.</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">If</span> condition = <span style="color: #000080;">True</span> <span style="color: #000080;">Then</span>
   MyPanel.Visible = <span style="color: #000080;">True</span>
<span style="color: #000080;">Else</span>
   MyPanel.Visible = <span style="color: #000080;">False</span>
<span style="color: #000080;">End</span> Try</pre></div></div>

<p>Hope this helps to someone at least</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2012/02/how-to-get-rid-of-the-xml-parsing-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebsiteSpark Unsubscribe &#8211; is it possible?</title>
		<link>http://www.aspneter.com/2011/11/websitespark-unsubscribe-is-it-possible/</link>
		<comments>http://www.aspneter.com/2011/11/websitespark-unsubscribe-is-it-possible/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 09:48:24 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=648</guid>
		<description><![CDATA[I would say it is not. Why? Well, because they send you a broken unsubscribe links. Of course i did that long time ago in the account options (currently cancelled) but it kept sending me various emails. Most of them if not all, do not contain an unsubscribe link. And now they finally added the [...]]]></description>
			<content:encoded><![CDATA[<p>I would say it is not. Why? Well, because they send you a broken unsubscribe links.<br />
Of course i did that long time ago in the account options (currently cancelled) but it kept sending me various emails.<br />
Most of them if not all, do not contain an unsubscribe link. And now they finally added the link at the footer but it does not work.<br />
If you click it does nothing as it starts with &#8220;file:///C%7C/Users/Stephen/Desktop/Projects&#8221; etc.<br />
This is the whole link:<br />
<span id="more-648"></span></p>
<p><code>file:///C%7C/Users/Stephen/Desktop/Projects/STX00063%20-%20WebsiteSpark-WW/2011-09/US/http://pages.email.microsoftemail.com/page.aspx?QS=11dfbe111fab00ea111afe11db11111e1836ec1111111ed&amp;emailid=111111&amp;memberid=1111111111&amp;jobid=1111111&amp;listid=1111111&amp;listname=Subscription_111111111_111111&amp;subscriberkey=myemail@domain.com&amp;emailaddr=myemail@domain.com&amp;subscriberid=111111111</code></p>
<p>Then i took only the portion which starts with <strong>http://</strong> and pasted in the address bar. </p>
<p>This is what i ended with<br />
<div id="attachment_649" class="wp-caption center" style="width: 610px"><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/11/Unsubscribe.gif"><img src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/11/Unsubscribe.gif" alt="WebsiteSpark Unsubscribe " title="WebsiteSpark Unsubscribe " width="600" height="271" class="size-full wp-image-649" /></a><p class="wp-caption-text">WebsiteSpark Unsubscribe </p></div></p>
<p>Well guys, as you see you have to read all that crap coming from Microsoft. Don&#8217;t get me wrong, i am a MS man myself. I do .NET since its beginning but, this should not happen to such gigantic corporation like is Microsoft. Shame</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/11/websitespark-unsubscribe-is-it-possible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add and watch movie on your PSP</title>
		<link>http://www.aspneter.com/2011/08/how-to-add-and-watch-movie-on-your-psp/</link>
		<comments>http://www.aspneter.com/2011/08/how-to-add-and-watch-movie-on-your-psp/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 00:38:17 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Casualties]]></category>
		<category><![CDATA[Cool Stuff]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=635</guid>
		<description><![CDATA[I bought it several months ago. Mainly for my kids to play the games on it. But, last night they ask me if they can watch a cartoon on it. I googled and found a tons of tutorials about how to convert movie to psp format which is MP4. So far so good. I converted [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_636" class="wp-caption alignleft" style="width: 266px"><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/08/psp.png"><img class="size-full wp-image-636" title="watch movie on your PSP" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/08/psp.png" alt="watch movie on your PSP" width="256" height="256" /></a><p class="wp-caption-text">watch movie on your PSP</p></div>
<p>I bought it several months ago. Mainly for my kids to play the games on it. But, last night they ask me if they can <strong>watch a cartoon on it</strong>. I googled and found a tons of tutorials about how to convert movie to psp format which is MP4. So far so good. I converted the Rio DvdRip to MP4. I connected the PSP with my laptop hoping that i will just <strong>copy the converted cartoon to the stick</strong> and it will work. But i was wrong. I put it to the root of the memory stick but it didn&#8217;t work at all. <strong>The PSP was not able to find the movie.</strong> Then i googled again and found a lots of tutorials about how to put movie on your PSP. They all suggested the same which is creating a two folders MP_ROOT and 100MNV01 inside it. Some of them even suggested that i name the files M4V10001.MP4, M4V10001.MP4 etc. respectively.  None of these worked for me. Rather i tested something pretty silly as it seemed from beginning. Meaning, i created a brand new <strong>folder named VIDEO</strong> in the<strong> root of the memory stick</strong> and i put the converted file as is Rio 2011.mp4. Final result <strong>X:\VIDEO\Rio 2011.mp4</strong> !!! Voila!</p>
<p>It worked like a charm. My kids were very happy because of that. Hopefully someone else will find this useful too.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/08/how-to-add-and-watch-movie-on-your-psp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Visual Studio 2010 Development Server (Cassini) Port Number</title>
		<link>http://www.aspneter.com/2011/07/change-visual-studio-2010-development-server-cassini-port-number/</link>
		<comments>http://www.aspneter.com/2011/07/change-visual-studio-2010-development-server-cassini-port-number/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 06:20:28 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=628</guid>
		<description><![CDATA[You guys probably know that Visual Studio includes a lightweight ASP.NET development server which is an enhanced version of Cassini. You may have noticed or heard, people want to change the port number of it so here we go; 1. Rigth click your website in Solution Explorer window and select Properties from the context menu [...]]]></description>
			<content:encoded><![CDATA[<p>You guys probably know that Visual Studio includes a lightweight ASP.NET development server which is an enhanced version of Cassini.</p>
<p>You may have noticed or heard, people want to change the port number of it so here we go;</p>
<p>1. Rigth click your website in <strong>Solution Explorer</strong> window and select <strong>Properties</strong> from the context menu (Alt + Enter).<span id="more-628"></span></p>
<p>2. Select the <strong>Web</strong> tab as shown on the picture.</p>
<div id="attachment_629" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/07/DevelopmentServerSpecificPort.jpg"><img class="size-full wp-image-629" title="Development Server Specific Port" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/07/DevelopmentServerSpecificPort.jpg" alt="Development Server Specific Port" width="600" height="452" /></a><p class="wp-caption-text">Development Server Specific Port</p></div>
<p>3. In the Servers section check the <strong>Specific Port</strong> radio button and set it to your preferred port number.</p>
<p>4. Launch the Website to see if it matches the value you specified.</p>
<p>&nbsp;</p>
<p>If you use an earlier version of Visual Studio it can be little different.</p>
<p>e.g. You may want to change the port number in the Properties (<strong>F4</strong>) window:</p>
<p>1. Having the <strong>Properties</strong> window open (F4) LEFT-click the website in <strong>Solution Explorer</strong>.</p>
<p>2. Find the <strong>Developer Web Server</strong> section and change the &#8220;<strong>Use dynamic ports</strong>&#8221; to <strong>False</strong>.</p>
<p>3. Specify the <strong>port number</strong>.</p>
<p>4. Start debugging (F5) to see if it matches the new port number.</p>
<p>&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/07/change-visual-studio-2010-development-server-cassini-port-number/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RadControls For ASP.NET AJAX 2011 Q1</title>
		<link>http://www.aspneter.com/2011/06/radcontrols-for-asp-net-ajax-2011-q1/</link>
		<comments>http://www.aspneter.com/2011/06/radcontrols-for-asp-net-ajax-2011-q1/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 16:10:15 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Third Party]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=607</guid>
		<description><![CDATA[Hello Guys, Before I continue I would like to mention that I deleted the previous version of this review which was much longer, and more eloquent but then I realized that it is not necessary at all. Simplified, the Telerik controls are a must for every serious asp.net developer. Ok here we go: I am [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/06/TelerikAjaxControls.png"><img class="alignleft size-full wp-image-608" title="Telerik Ajax Controls" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/06/TelerikAjaxControls.png" alt="RadControl for ASP.NET AJAX" width="368" height="106" /></a><br />
Hello Guys,</p>
<p>Before I continue I would like to mention that I deleted the previous version of this review which was much longer, and more eloquent but then I realized that it is not necessary at all. Simplified, the <strong>Telerik controls are a must for every serious asp.net developer</strong>.</p>
<p>Ok here we go:</p>
<p>I am fairly new to Telerik stuff and I am wondering where to start really. Nevertheless I am very pleasantly surprised by the overall look and performance.</p>
<p>Actually I have NOT been so pleasantly surprised for longer. I cannot resist mentioning that I love its ease of use and above all, easy of install.</p>
<p>Well, usually you use the standard installation (.MSI Setup) but, rather you can DL the libraries and simply add a reference to DLL’s . Voila! You are all set up to use <strong>RadControls for ASP.NET AJAX</strong>.</p>
<p>It can’t be simpler, right?<span id="more-607"></span></p>
<p>Another thing that pleases me greatly is that Telerik constantly offers <strong>internal builds</strong>. Meaning, they quickly address your problem and get it fixed in the next internal build. In that way, you don’t have to wait for another official release or Service Pack. None of the vendors (except Telerik of course) is addressing and fixing bugs on daily or weekly basis. In addition the Support always answers quickly and never makes you feel inadequate or stupid for asking the questions. Hmm I could say a lot more about the support staff, but I believe it&#8217;s unnecessary.</p>
<p>Another great discovery is that <strong>each control can have a different skin</strong>. Unlike the other vendors, Telerik made it possible. Oh yeah. Now you can have unlimited number of controls with different skins applied and have them all on the same page which is great? You don’t have to use themes anymore.</p>
<p>The feature that made me proud owner of these controls was the RadGrid’s <strong>VirtualItemCount</strong> Property. Omg, it makes the <strong>custom paging</strong> so easy.<br />
Say that you have a datasource with e.g. 20 items and you set the VirtualItemCount to preferred number of items e.g. 1000. The RadGrid will show up these 20 items but will also indicate that there are 49 pages for the items that exceed the actual number.</p>
<p>Ok there is one more Telerik control I want to mention, the  <strong>RadMonthYearPicker</strong>. You will not believe how much I missed this control. I had to hack the RadDatePicker or to use two dropdown lists to achieve the wanted effect. Usually I needed it for checkout forms when a client has to provide expiration date of his CC, or when one wants to generate a monthly report for certain month and year.  Now you can get that having a single control named RadMonthYearPicker.</p>
<p>Hmm although I love the <strong>RadRotator</strong> I hope they will improve one little thing so I don’t have to explicitly set the width and height of the banners. Beside this flaw this rotator can be used in many different ways. It can serve as an <strong>Image gallery, Slideshow, News, Live Scores, Weather Forecast, Banner Rotator</strong>, etc. etc.</p>
<p>The last one i want to mention in this review is RadWindow control. Man this is something really extra. I couldn&#8217;t believe it&#8217;s possible. You can have as much as you want windows there. For instance i found that it&#8217;s pretty useful for generating reports but you don&#8217;t want to leave the current page.</p>
<p><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/06/radwindow.gif"><img class="aligncenter size-full wp-image-624" title="RadWindow Control" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/06/radwindow.gif" alt="RadWindow Control" width="500" height="319" /></a></p>
<p>&nbsp;</p>
<p>Reading here and there I saw that a lot of developers complain about the <strong>produced code</strong>. If you compare the other vendors with Telerik you’ll see that produced HTML code counts much more lines and is more complicated than Telerik.</p>
<p>Ups, did I mention the upgrade process. If you install the controls using .msi installation it will add a new menu in the Visual Studio so all you have to do is to click the update menu item. Nothing easier, right? If you are referencing the DLLs directly you have to download the new libraries and put them in your Bin folder replacing the old ones.</p>
<p>&nbsp;</p>
<p>For further information on <strong>buying RadControls</strong> for ASP.NET AJAX please refer their website <a title="Telerik's Official Website" href="http://www.telerik.com" target="_blank">http://www.telerik.com</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/06/radcontrols-for-asp-net-ajax-2011-q1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET versus ASP Classic</title>
		<link>http://www.aspneter.com/2011/06/asp-net-versus-asp-classic/</link>
		<comments>http://www.aspneter.com/2011/06/asp-net-versus-asp-classic/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 08:52:29 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=617</guid>
		<description><![CDATA[If you often revise your decision to go for .NET. then let me tell you a few things about ASP.NET. By the way, if I have to be an ASP developer starting now I would rather work as a cleaner in a public WC indeed. Here we go:  No Visual Studio or any other IDE? No [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/06/dotnet_logo.jpg"><img class="alignleft size-full wp-image-618" title="ASP.NET is Superior" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/06/dotnet_logo.jpg" alt="ASP.NET is Superior" width="350" height="206" /></a>If you often revise your decision to go for .NET. then let me tell you a few things about ASP.NET.</p>
<p>By the way, if I have to be an ASP developer starting now I would rather work as a cleaner in a public WC indeed.</p>
<p><strong>Here we go: <span id="more-617"></span></strong></p>
<p>No Visual Studio or any other IDE? No way!</p>
<p>No server side controls? Waaaa</p>
<p>No third-party controls? Waaa</p>
<p>No master pages? Waaa</p>
<p>No membership? Hey!</p>
<p>&nbsp;</p>
<p>No forms authentication and validation? C’mon…</p>
<p>&nbsp;</p>
<p>No built-in debugging and tracing? Then how I can debug that “<strong>unstructured code</strong>”?</p>
<p>&nbsp;</p>
<p>Should I write the business logic layer in VBScript or JavaScript? Hmm should i?</p>
<p><em><strong>…….. A lots of other questions here ……….</strong></em></p>
<p>&nbsp;</p>
<p><strong>Advantages (a shorten list):</strong></p>
<p>Strongly typed variables, ADO.NET, XML classes, Object Oriented Programming, Caching, Custom Web Controls, Encryption, Web Service integration, Scalability, Reliability, Security, Stability etc.etc.</p>
<p>&nbsp;</p>
<p>There tons more reasons .NET is a drastic improvement. ASP.NET is orders of magnitudes.</p>
<p>&nbsp;</p>
<p><strong>P.S.</strong></p>
<p>When it comes to Stability:</p>
<p>ASP is running under the inetinfo.exe (<strong>IIS</strong>) process space, making it susceptible to application crashes. This happens because the IIS needs to be stopped or restarted on a regular basis. The ASP.Net process is separate from inetinfo.exe, meaning that it is not susceptible to these types of <strong>application crashes</strong>. This means that the final product will be <strong>much more stable</strong>.</p>
<p>&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/06/asp-net-versus-asp-classic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove unused Application Pools using ServerManager Class</title>
		<link>http://www.aspneter.com/2011/04/how-to-remove-unused-application-pools-using-servermanager-class/</link>
		<comments>http://www.aspneter.com/2011/04/how-to-remove-unused-application-pools-using-servermanager-class/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 00:12:42 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=605</guid>
		<description><![CDATA[Public Sub RemoveUnusedApplicationPools() Dim manager As New ServerManager Dim AppPools As New List(Of String) ' fill the list with all pools For Each apppool As ApplicationPool In manager.ApplicationPools AppPools.Add(apppool.Name) Next &#160; ' if it's used remove from the total list For Each website As Site In manager.Sites For Each app As Application In website.Applications AppPools.Remove(app.ApplicationPoolName) [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Public</span> <span style="color: #000080;">Sub</span> RemoveUnusedApplicationPools()
        <span style="color: #000080;">Dim</span> manager <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> ServerManager
        <span style="color: #000080;">Dim</span> AppPools <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> List(Of <span style="color: #000080;">String</span>)
        <span style="color: #008000;">' fill the list with all pools
</span>        <span style="color: #000080;">For</span> <span style="color: #000080;">Each</span> apppool <span style="color: #000080;">As</span> ApplicationPool <span style="color: #000080;">In</span> manager.ApplicationPools
            AppPools.Add(apppool.Name)
        <span style="color: #000080;">Next</span>
&nbsp;
        <span style="color: #008000;">' if it's used remove from the total list
</span>        <span style="color: #000080;">For</span> <span style="color: #000080;">Each</span> website <span style="color: #000080;">As</span> Site <span style="color: #000080;">In</span> manager.Sites
            <span style="color: #000080;">For</span> <span style="color: #000080;">Each</span> app <span style="color: #000080;">As</span> Application <span style="color: #000080;">In</span> website.Applications
                AppPools.Remove(app.ApplicationPoolName)
            <span style="color: #000080;">Next</span>
        <span style="color: #000080;">Next</span>
&nbsp;
        <span style="color: #008000;">' remove the unused pools
</span>        <span style="color: #000080;">For</span> <span style="color: #000080;">Each</span> unusedApplicationPool <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> <span style="color: #000080;">In</span> AppPools
            <span style="color: #000080;">Dim</span> apppool <span style="color: #000080;">As</span> ApplicationPool = manager.ApplicationPools(unusedApplicationPool)
            manager.ApplicationPools.Remove(apppool)
        <span style="color: #000080;">Next</span>
&nbsp;
        <span style="color: #008000;">' call the commitchanges method
</span>        manager.CommitChanges()
        manager.Dispose()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span></pre></div></div>


]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/04/how-to-remove-unused-application-pools-using-servermanager-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DevExpress How to Enable Form Skins</title>
		<link>http://www.aspneter.com/2011/04/devexpress-how-to-enable-form-skins/</link>
		<comments>http://www.aspneter.com/2011/04/devexpress-how-to-enable-form-skins/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 18:31:17 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[Third Party]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=596</guid>
		<description><![CDATA[I just realized something about the Skins. Actually it is not enough to add XtraForm (DevExpress Form) to your project and then drag &#38; drop DefaultLookAndFeel. Oh no! If you want your forms appear with skins applied you have to do something more. No big deal, but if you don&#8217;t know this you&#8217;ll probably struggle [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_597" class="wp-caption alignleft" style="width: 227px"><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/04/skins.png"><img class="size-full wp-image-597" title="DevExpress WinForm Skins" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/04/skins.png" alt="DevExpress WinForm Skins" width="217" height="268" /></a><p class="wp-caption-text">DevExpress WinForm Skins</p></div>
<p>I just realized something about the Skins. Actually it is not enough to add XtraForm (DevExpress Form) to your project and then drag &amp; drop DefaultLookAndFeel. Oh no! If you want your forms appear with skins applied you have to do something more.</p>
<p>No big deal, but if you don&#8217;t know this you&#8217;ll probably struggle with it. <span id="more-596"></span></p>
<p>Meaning, to get ride of this please open the ApplicationEvents.vb (Properties -&gt; View Application Events) and then add the following code to the Partial Friend Class MyApplication:</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Private</span> <span style="color: #000080;">Sub</span> MyApplication_Startup(<span style="color: #000080;">ByVal</span> sender <span style="color: #000080;">As</span> <span style="color: #000080;">Object</span>, <span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
DevExpress.Skins.SkinManager.EnableFormSkins()
DevExpress.UserSkins.BonusSkins.Register()
<span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span></pre></div></div>

<p>&nbsp;</p>
<p><strong>Note:</strong> If you haven&#8217;t referenced the BonusSkins you should do that. Otherwise just remove the second line of the code above.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/04/devexpress-how-to-enable-form-skins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Visual Studio 2010 Service Pack 1</title>
		<link>http://www.aspneter.com/2011/03/microsoft-visual-studio-2010-service-pack-1/</link>
		<comments>http://www.aspneter.com/2011/03/microsoft-visual-studio-2010-service-pack-1/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 08:06:03 +0000</pubDate>
		<dc:creator>Kulrom</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.aspneter.com/?p=591</guid>
		<description><![CDATA[Hello guys. I was wondering what do you think about the final version of the Visual Studio 2010 Service Pack 1? I found that a lots of developers react negatively. Many of them even rolling back the SP1. They talk about incompatibilities with the SP1 release. Please share your experience and opinion about the new [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_592" class="wp-caption alignleft" style="width: 178px"><a href="http://www.aspneter.com/aspneter/wp-content/uploads/2011/03/vslogo.png"><img class="size-full wp-image-592" title="Visual Studio 2010 SP1" src="http://www.aspneter.com/aspneter/wp-content/uploads/2011/03/vslogo.png" alt="Visual Studio 2010 SP1" width="168" height="95" /></a><p class="wp-caption-text">Visual Studio 2010 SP1</p></div>
<p>Hello guys. I was wondering what do you think about the final version of the Visual Studio 2010 Service Pack 1?</p>
<p>I found that a lots of developers react negatively. Many of them even rolling back the SP1. They talk about incompatibilities with the SP1 release.</p>
<p>Please share your experience and opinion about the new Service Pack!!! Thanks</p>
<p><a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5&amp;displaylang=en">Download Link</a></p>
<p><a href="http://go.microsoft.com/fwlink/?LinkID=207267">MSDN Subscribers Here</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.aspneter.com/2011/03/microsoft-visual-studio-2010-service-pack-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

