<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rana Omer Hussain&#039;s RegEdit</title>
	<atom:link href="http://ranaomerhussain.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ranaomerhussain.wordpress.com</link>
	<description>My Weblog registry is a directory which stores settings and options for my Professional Life</description>
	<lastBuildDate>Tue, 24 Jan 2012 11:35:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ranaomerhussain.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/c81d74be73be083754f0e8c444bdcc64?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Rana Omer Hussain&#039;s RegEdit</title>
		<link>http://ranaomerhussain.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ranaomerhussain.wordpress.com/osd.xml" title="Rana Omer Hussain&#039;s RegEdit" />
	<atom:link rel='hub' href='http://ranaomerhussain.wordpress.com/?pushpress=hub'/>
		<item>
		<title>WebFldr (explorer view) SharePoint explorer does not display</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/24/webfldr-explorer-view-sharepoint-explorer-does-not-display/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/24/webfldr-explorer-view-sharepoint-explorer-does-not-display/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 11:34:55 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[MOSS]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=186</guid>
		<description><![CDATA[Problem: Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it In SharePoint, if your &#8220;Explorer View&#8221; doesn&#8217;t work and give &#8220;Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it.&#8221; error then please make sure your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=186&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Problem:</strong> Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it</p>
<p style="text-align:justify;">In SharePoint, if your &#8220;Explorer View&#8221; doesn&#8217;t work and give &#8220;<strong>Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it.</strong>&#8221; error then please make sure your &#8220;<strong>WebClient</strong>&#8221; service is up and running as shown in below screen clipping:</p>
<p style="text-align:justify;"><a href="http://ranaomerhussain.files.wordpress.com/2012/01/image.png"><img class="alignnone size-full wp-image-187" title="image" src="http://ranaomerhussain.files.wordpress.com/2012/01/image.png?w=538&#038;h=99" alt="" width="538" height="99" /></a></p>
<p style="text-align:justify;">Also make sure you are running the service with &#8220;Local Service&#8221; account.</p>
<p style="text-align:justify;">For more info view this post : <a href="http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/023f4b23-3ce6-4d83-8cb0-7398b88ba6ab/">IIS WebDAV service required for SharePoint webdav</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=186&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/24/webfldr-explorer-view-sharepoint-explorer-does-not-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>

		<media:content url="http://ranaomerhussain.files.wordpress.com/2012/01/image.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>The Best Way to Add Custom JavaScript and jQuery to SharePoint</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/19/the-best-way-to-add-custom-javascript-and-jquery-to-sharepoint/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/19/the-best-way-to-add-custom-javascript-and-jquery-to-sharepoint/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 06:39:44 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Style Library]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=184</guid>
		<description><![CDATA[During extensive SharePoint user interface customization you&#8217;ll likely encounter a scenario where you need to make a web part or user control do something it was not intended to do or have a look that cannot be accomplished using the CSS hooks provided out-of-the-box. The solution is to create a custom master page and include a reference [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=184&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">During extensive SharePoint user interface customization you&#8217;ll likely encounter a scenario where you need to make a web part or user control do something it was not intended to do or have a look that cannot be accomplished using the CSS hooks provided out-of-the-box. The solution is to <a title="How to Create a Custom SharePoint Master Page" href="http://ranaomerhussain.wordpress.com/2012/01/17/how-to-create-a-custom-sharepoint-master-page/">create a custom master page</a> and include a reference to a JavaScript file where you can modify the Document object. While straight JavaScript will do, I prefer to use the <a href="http://www.jquery.com/" target="_blank">jQuery</a> JavaScript library, which is far more robust, easier to use, and allows for plugins. Follow the steps below to add jQuery to your master page.</p>
<ol>
<li>Go to <a href="http://www.jquery.com/" target="_blank">jquery.com</a> and download the latest jQuery library to your desktop. You want to get the compressed production version, not the development version.</li>
<li>Open SharePoint Designer (SPD) and connect to the root level of your site&#8217;s site collection.</li>
<li>In SPD, open the &#8220;Style Library&#8221; folder.</li>
<li>Create a folder named &#8220;Scripts&#8221; inside of the Style Library.</li>
<li>Drag the jQuery library JavaScript file from your desktop into the Scripts folder.</li>
<li>In the Scripts folder, create a new JavaScript file and name it (e.g. &#8220;actions.js&#8221;).</li>
<li>Open your master page file in SPD.</li>
<li>Within the &lt;head&gt; tag of the master page, add a script reference to the jQuery library just above the content place holder named &#8220;PlaceHolderAdditonalPageHead&#8221; (and above your custom CSS references, if applicable) as follows:
<div>// &lt;![CDATA[<br />
src</span>="/Style%20Library/Scripts/{jquery library file}.js" type="text/javascript"&gt;<br />
// ]]&gt;</div>
</li>
<li>Immediately after the jQuery library reference add a script reference to your custom scripts file as follows:
<div>// &lt;![CDATA[<br />
src</span>="/Style%20Library/Scripts/actions.js" type="text/javascript"&gt;<br />
// ]]&gt;</div>
</li>
</ol>
<p style="text-align:justify;">Your custom master page now includes jQuery and a reference to your custom scripts file where you can add jQuery scripts. SharePoint includes a number of JavaScript files throughout the site, so be careful that the scripts you add do not conflict with SharePoint&#8217;s; the jQuery library itself does not conflict with SharePoint.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=184&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/19/the-best-way-to-add-custom-javascript-and-jquery-to-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>The Best Way to Add Custom CSS to SharePoint</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/17/the-best-way-to-add-custom-css-to-sharepoint/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/17/the-best-way-to-add-custom-css-to-sharepoint/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 08:48:22 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Style Library]]></category>
		<category><![CDATA[Style sheet]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=180</guid>
		<description><![CDATA[To thoroughly customize your SharePoint site, you&#8217;ll need to use a custom CSS. SharePoint offers a way to specify a single CSS file to use via the &#8220;Master page&#8221; settings for the site. However, using this approach still limits you to customizing only those IDs and classes that are included on the pages by SharePoint. Moreover, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=180&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">To thoroughly customize your SharePoint site, you&#8217;ll need to use a custom <acronym title="Cascading Style Sheet">CSS</acronym>. SharePoint offers a way to specify a single CSS file to use via the &#8220;Master page&#8221; settings for the site. However, using this approach still limits you to customizing only those IDs and classes that are included on the pages by SharePoint. Moreover, using this setting applies to both site and system pages, which may not be desirable.</p>
<p style="text-align:justify;">With these downsides in mind, the best approach is to <a title="How to Create a Custom SharePoint Master Page" href="http://ranaomerhussain.wordpress.com/2012/01/17/how-to-create-a-custom-sharepoint-master-page/">create a custom master page</a> and include references to one or more custom CSS files. Follow the steps below to include a custom CSS file in your master page.</p>
<ol style="text-align:justify;">
<ol>
<li>Open SharePoint Designer (SPD) and connect to the root level of your site&#8217;s site collection.</li>
<li>In SPD, open the &#8220;Style Library&#8221; folder.</li>
<li>Create a new CSS file and name it (e.g. &#8220;customstyles.css&#8221;).</li>
<li>Open your master page file in SPD.</li>
<li>In the tag add a link to your custom CSS just above the content place holder named &#8220;PlaceHolderAdditonalPageHead&#8221; as follows:</li>
</ol>
</ol>
<blockquote>
<div>&lt;link href=&#8221;/Style%20Library/customstyles.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; /&gt;</div>
</blockquote>
<div><span style="text-align:justify;">Your custom master page is now using your new CSS file in addition to all of the CSS files SharePoint uses out-of-the-box. The idea is that you are taking advantage of the &#8220;cascading&#8221; property of cascading style sheets by layering your custom styles on top of what SharePoint creates in order to alter the SharePoint look-and-feel as desired—like a skin.</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=180&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/17/the-best-way-to-add-custom-css-to-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Create a Custom SharePoint Master Page</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/17/how-to-create-a-custom-sharepoint-master-page/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/17/how-to-create-a-custom-sharepoint-master-page/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 08:35:44 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Site Settings]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=177</guid>
		<description><![CDATA[The first step in customizing your SharePoint site is to create a custom master page.  The following steps will help you do just that (please note there are differences indicated between SP 2007 and SP 2010). Open SharePoint Designer (SPD) and connect to the root level of your site&#8217;s site collection. In SPD, open the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=177&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The first step in customizing your SharePoint site is to create a custom master page.  The following steps will help you do just that (please note there are differences indicated between SP 2007 and SP 2010).</p>
<ol style="text-align:justify;">
<li>Open SharePoint Designer (SPD) and connect to the root level of your site&#8217;s site collection.</li>
<li>In SPD, open the &#8220;_catalogs&#8221; folder, then open the &#8220;masterpage&#8221; folder.</li>
<li>Identify the out-of-the-box (OOTB) most like your ultimate design.
<ol>
<li>(SP 2007) If your SharePoint&#8217;s site design is to be fixed-width and centered on the page, select BlueBand.master and copy it.</li>
<li>(SP 2007) If your SharePoint&#8217;s site design is to be a liquid layout that fills the page regardless of the user&#8217;s screen resolution, select default.master and copy it.</li>
<li>(SP 2010 beta) You want v4.master.</li>
</ol>
</li>
<li>In SPD, right-click on the master page you want to duplicate and select &#8220;Copy,&#8221; then paste it back into the same folder.</li>
<li>Rename the new file something project-specific.  For instance, if this master page is to be used on the sales portal, you might rename the new master page SalesPortal.master.</li>
<li>Publish and approve the new master page.</li>
<li>In your browser, navigate to your site&#8217;s Site Settings page.  Under the &#8220;Look-and-Feel&#8221; column click &#8220;Master page.&#8221;</li>
<li>Select your new master page as the site master page (the need to set the system master page will vary by project).  Save the settings change.</li>
</ol>
<p style="text-align:justify;">Your site is now using the new master page you created.  From here you modify the master page to your liking, including adding custom CSS and custom JavaScript and jQuery.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=177&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/17/how-to-create-a-custom-sharepoint-master-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2007 and 2010 CSS Reference Chart</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/16/sharepoint-2007-and-2010-css-reference-chart/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/16/sharepoint-2007-and-2010-css-reference-chart/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 13:38:20 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[RIBBON]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Style sheet]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=174</guid>
		<description><![CDATA[Just came across these good SharePoint CSS Reference Charts, its worth reading. SharePoint 2007 CSS Reference Chart SharePoint 2010 CSS Reference Chart<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=174&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just came across these good SharePoint CSS Reference Charts, its worth reading.</p>
<p><a title="SharePoint 2007 CSS Reference Chart" href="http://www.heathersolomon.com/content/sp07cssreference.htm">SharePoint 2007 CSS Reference Chart</a></p>
<p><a title="SharePoint 2010 CSS Reference Chart" href="http://www.heathersolomon.com/content/sp07cssreference.htm">SharePoint 2010 CSS Reference Chart</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=174&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/16/sharepoint-2007-and-2010-css-reference-chart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>The difference between web parts and lists</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/15/the-difference-between-web-parts-and-lists/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/15/the-difference-between-web-parts-and-lists/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 09:42:43 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[WebPart]]></category>
		<category><![CDATA[SPListItem]]></category>
		<category><![CDATA[SPlist]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=171</guid>
		<description><![CDATA[Did you try adding another web part to a page and it displays the same data as another web part on the page? Here is the answer. As part of my habit of posting in this site an answer for any question I see more than once in the forums, I want to share with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=171&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Did you try adding another web part to a page and it displays the same data as another web part on the page? Here is the answer.</p>
<p>As part of my habit of posting in this site an answer for any question I see more than once in the forums, I want to share with you an explanation I use in the forums to let sharepoint beginners realize what is the difference between a web part and a list.</p>
<p><strong>The confusion sounds like this:</strong><br />
&#8220;<em>I&#8217;m a newbie to the SharePoint world so if this is a really amateur question, you know why. I am currently tasked with setting up the SharePoint site for my department. I have tried to put two instances of the Links web part on the top-level of my site. It will allow me to do this but when I make a change to one of the web parts the change also occurs in the other Links web part.</em>&#8221; (taken from an <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1510594&amp;SiteID=1">msdn forum post</a>)</p>
<p><strong>To which I reply:</strong><br />
You are confusing &#8220;<strong>web parts</strong>&#8221; and &#8220;<strong>lists</strong>&#8220;<br />
A &#8220;web part&#8221; is a mechanism to <strong>display data</strong>, while a &#8220;list&#8221; is like a small database &#8211; a mechanism to <strong>store data</strong>.</p>
<p>What you did, is have one list (links, or contacts) and <strong>two web part displaying the same list</strong> - same data.</p>
<p>If you want <strong>two different sets of data</strong> then the easy way would be to <strong>create another list</strong>, and add a web part to look into that list.</p>
<p>Another option is to create a field in the list by the name (for example) &#8220;show in web part 1&#8243; of type boolean, and then configure the two webparts that show the same information to show based on that field (this method is known as a filter).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=171&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/15/the-difference-between-web-parts-and-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>How to copy attachments from one list item to another</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/15/how-to-copy-attachments-from-one-list-item-to-another/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/15/how-to-copy-attachments-from-one-list-item-to-another/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 09:20:58 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[SPListItem]]></category>
		<category><![CDATA[Attachments]]></category>
		<category><![CDATA[SPFile]]></category>
		<category><![CDATA[Dispose]]></category>
		<category><![CDATA[SPFolder]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=161</guid>
		<description><![CDATA[The microsoft support article for WSS 2 shows us how to download attachments from a list item. Basically, the attachments for a list item are stored as SPFile objects under a hidden folder in the list where those attachments are (a folder called &#8220;Attachments&#8221;) &#8211; where each list item that has an attachment has its own folder [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=161&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The <a href="http://support.microsoft.com/default.aspx/kb/929259" target="_blank">microsoft support article for WSS 2</a> shows us how to download attachments from a list item. Basically, the attachments for a list item are stored as SPFile objects under a hidden folder in the list where those attachments are (a folder called &#8220;Attachments&#8221;) &#8211; where each list item that has an attachment has its own folder &#8211; with the ID of the item being the folder&#8217;s name. Here is a code sample for a function to copy attachments from one item to another.</p>
<blockquote><p>private void CopyAttachments(SPListItem sourceItem, SPListItem targetItem){</p>
<p>try {//get the folder with the attachments for the source item</p>
<p>SPFolder sourceItemAttachmentsFolder = sourceItem.Web.Folders["Lists"].SubFolders[sourceItem.ParentList.Title] .SubFolders["Attachments"].SubFolders[sourceItem.ID.ToString()];</p>
<p>//Loop over the attachments, and add them to the target item</p>
<p>foreach (SPFile file in sourceItemAttachmentsFolder.Files)</p>
<p>{byte[] binFile = file.OpenBinary();</p>
<p>targetItem.Attachments.AddNow(file.Name, binFile);}</p>
<p>} catch { }finally { sourceItem.Web.Dispose();}}</p></blockquote>
<p style="text-align:justify;">Ref : <a href="http://www.sharepoint-tips.com/2008/11/how-to-copy-attachments-from-one-list.html">Sharepoint Tips And Tricks</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=161&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/15/how-to-copy-attachments-from-one-list-item-to-another/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>Event handler to archive items when deleted</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/15/event-handler-to-archive-items-when-deleted/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/15/event-handler-to-archive-items-when-deleted/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 09:15:52 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[item.SystemUpdate]]></category>
		<category><![CDATA[SPListItem]]></category>
		<category><![CDATA[SPItemEventProperties]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=158</guid>
		<description><![CDATA[The requirement &#8211; copy a list item that is deleted to an archive list. The solution &#8211; event receiver that copies the item. The code below does the job, but again is only a sample &#8211; you still need to implement error handling, and there are hard coded variables there you will want to change. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=158&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The requirement &#8211; copy a list item that is deleted to an archive list. The solution &#8211; event receiver that copies the item. The code below does the job, but again is only a sample &#8211; you still need to implement error handling, and there are hard coded variables there you will want to change.</p>
<p style="text-align:justify;">Note: this code is specifically for list items, not for documents in document libraries. You can easily change the code to support documents as well (see the CopyAttachments function for an example on how to copy files).</p>
<blockquote><p>public override void ItemDeleting(SPItemEventProperties properties) {</p>
<p>//note: may require permission elevation. //TODO: add error handling //get the item being deleted</p>
<p>SPListItem item = properties.ListItem;</p>
<p>//get the target list</p>
<p>SPList targetList = properties.Web.Lists["Announcements Archive"];</p>
<p>//create the new item</p>
<p>SPListItem newItem = targetList.Items.Add();</p>
<p>//copy the list item to the target</p>
<p>foreach (SPField f in item.Fields) {</p>
<p>if (!f.ReadOnlyField &amp;&amp; newItem.Fields.ContainsField(f.InternalName)) newItem[newItem.Fields.GetFieldByInternalName(f.InternalName).Id] = item[f.Id]; }</p>
<p>//copy &#8220;special&#8221; read only fields that can be written to</p>
<p>newItem["Created By"] = item["Created By"];</p>
<p>newItem["Modified By"] = item["Modified By"];</p>
<p>newItem["Modified"] = item["Modified"];</p>
<p>newItem["Created"] = item["Created"];</p>
<p>newItem.SystemUpdate(false);</p>
<p>CopyAttachments(item, newItem);</p>
<p>base.ItemDeleting(properties); }</p></blockquote>
<p style="text-align:justify;">Note: for the &#8220;CopyAttachments&#8221; View this Page : <a href="http://ranaomerhussain.wordpress.com/2012/01/15/how-to-copy-attachments-from-one-list-item-to-another/">How to copy attachments from one list item to another</a></p>
<p style="text-align:justify;">Ref : <a href="http://www.sharepoint-tips.com/2011/11/event-handler-to-archive-items-when.html">Sharepoint Tips And Tricks</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=158&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/15/event-handler-to-archive-items-when-deleted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>Change the Welcome Page / Homepage in SharePoint 2010 Programmatically</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/11/change-the-welcome-page-homepage-in-sharepoint-2010-programmatically/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/11/change-the-welcome-page-homepage-in-sharepoint-2010-programmatically/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 12:08:39 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Site Actions]]></category>
		<category><![CDATA[Site Settings]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=155</guid>
		<description><![CDATA[When exporting and importing sites throughout SharePoint 2010 that are upgraded sites from SharePoint 2007, you probably noticed that the homepage for the imported site is defaulted to SharePoint 2010′s wiki-style page at /SitePages/Home.aspx. However, until you start using these new pages you may want to revert or keep the homepage as the default.aspx page. To [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=155&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When exporting and importing sites throughout SharePoint 2010 that are upgraded sites from SharePoint 2007, you probably noticed that the homepage for the imported site is defaulted to SharePoint 2010′s wiki-style page at /SitePages/Home.aspx. However, until you start using these new pages you may want to revert or keep the homepage as the default.aspx page.</p>
<p>To do this manually, you need to go to Site Actions &gt; Site Settings &gt; Look and Feel &gt; Welcome Page.</p>
<p>However, this Welcome Page link is only available for those sites where the Publishing feature is activated at the Site Collection and Site level.</p>
<p>This could be pretty tedious if you have to do this for every site in the web application. So, if you need to do this fast for multiple sites and don’t have direct access to the Welcome Page link, what do you do? &lt;pausing for dramatic effect&gt; You use Power-Shell!</p>
<p>Below is a script I created that will prompt to enter in the Web Application and Welcome Page and then loop through each site in the Web Application and set the Welcome Page. Save this as a .ps1 file and run it from the SharePoint 2010 Management Shell:</p>
<blockquote><p><code>$webapp</code> <code>= </code><code>Read-Host</code> <code>"Enter Web Application"</code></p>
<p><code>$welcomepage</code> <code>= </code><code>Read-Host</code> <code>"Enter Welcome Page"</code></p>
<p><code>$webs</code> <code>= Get</code><code>-SPSite</code> <code>-WebApplication</code></p>
<p><code></code><code>$webapp</code> <code>-Limit</code> <code>All | Get</code><code>-SPWeb</code> <code>-Limit</code> <code>All</code></p>
<p><code></code><code>foreach</code> <code>(</code><code>$web</code> <code>in </code><code>$webs</code><code>){</code></p>
<p><code></code><code>$rootFolder</code> <code>= </code><code>$web</code><code>.RootFolder</code></p>
<p><code></code><code>$rootFolder</code><code>.WelcomePage = </code><code>$welcomepage</code></p>
<p><code></code><code>Write-Host</code> <code>"Setting"</code><code>$web</code><code>.Title</code><code>"homepage to"</code><code>$welcomepage</code>    <code>$rootFolder</code><code>.Update()</code></p>
<p><code></code><code>$web</code><code>.Dispose()</code></p>
<p><code>}</code></p></blockquote>
<p>Now, navigate back to a site and see that the homepage is now set to the given page!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=155&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/11/change-the-welcome-page-homepage-in-sharepoint-2010-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET Dynamic HTML with HTML Controls</title>
		<link>http://ranaomerhussain.wordpress.com/2012/01/11/asp-net-dynamic-html-with-html-controls/</link>
		<comments>http://ranaomerhussain.wordpress.com/2012/01/11/asp-net-dynamic-html-with-html-controls/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 10:29:39 +0000</pubDate>
		<dc:creator>nawaeinstine</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[GetAttribute]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HtmlGenericControl]]></category>

		<guid isPermaLink="false">http://ranaomerhussain.wordpress.com/?p=148</guid>
		<description><![CDATA[There are many times that you need to process a data list and generate HTML to output to an ASP.NET page. Most of the time, a Repeater is the best choice for this, but sometimes using a Repeater is not practical because the HTML has too many levels or is built with too many conditionals. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=148&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">There are many times that you need to process a data list and generate HTML to output to an ASP.NET page. Most of the time, a Repeater is the best choice for this, but sometimes using a Repeater is not practical because the HTML has too many levels or is built with too many conditionals. In these cases, you could use a StringBuilder and output the result to a Literal control, but working with strings can be error prone. My preferred method to add a Placeholder control to the page and then just add Controls to its Controls collection in the code behind.</p>
<p style="text-align:justify;">This works out well if you want to use web controls, but not if you want to use HTML controls. One of the goals with web controls was to make the properties more consistent across controls, but if you are familiar with HTML, then using the HTML controls might be more natural because the properties match the attributes you are already familiar with.</p>
<p style="text-align:justify;">The issue with HTML Controls is that they are not as friendly to work with. For many elements, such as divs, you will have to use the HtmlGenericControl class. Although web controls have a property for CssClass, this is not available for HTML controls. If you want to add a new div control with a CSS class, you will end up with something like this:</p>
<blockquote>
<p style="text-align:justify;">var divContainer = new HtmlGenericControl(“div”);<br />
divContainer.Attributes.Add(“class”, “div-class”);</p>
</blockquote>
<p style="text-align:justify;">To improve on this syntax, I added a derived control with a CSSClass property:</p>
<blockquote>
<p style="text-align:justify;">public class HtmlClassedControl : HtmlGenericControl<br />
{<br />
public HtmlClassedControl(string tag) : base(tag)<br />
{<br />
}</p>
<p>public string CssClass<br />
{<br />
get { return GetAttribute(“class”); }<br />
set { Attributes.Add(“class”, value); }<br />
}<br />
}</p></blockquote>
<p style="text-align:justify;">Next, I added another derived class for the div control to eliminate the constructor parameter:</p>
<blockquote>
<p style="text-align:justify;">public class HtmlDiv : HtmlClassedControl<br />
{<br />
public HtmlDiv() : base(“div”)<br />
{<br />
}<br />
}</p>
</blockquote>
<p style="text-align:justify;">With these changes, the syntax becomes:</p>
<blockquote>
<p style="text-align:justify;">var divContainer = new HtmlDiv {CssClass = “div-class”};</p>
</blockquote>
<p style="text-align:justify;">That may not seem like much of a change, but if you are adding 20 or 30 controls with nesting and looping, it makes a huge difference in readability and maintainabiliy… not to mention less code to write. You could easily add classes for other HTML elements such as ordering list, list item, etc.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ranaomerhussain.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ranaomerhussain.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ranaomerhussain.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ranaomerhussain.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ranaomerhussain.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ranaomerhussain.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ranaomerhussain.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ranaomerhussain.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ranaomerhussain.wordpress.com&amp;blog=2271092&amp;post=148&amp;subd=ranaomerhussain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ranaomerhussain.wordpress.com/2012/01/11/asp-net-dynamic-html-with-html-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7c78262c7cd4a36306035293a24de147?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nawaeinstine</media:title>
		</media:content>
	</item>
	</channel>
</rss>
