<?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>Shafaqat&#039;s Blog</title>
	<atom:link href="http://shafaqat309.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shafaqat309.wordpress.com</link>
	<description>My thoughts of .net</description>
	<lastBuildDate>Fri, 27 Jan 2012 06:13:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='shafaqat309.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Shafaqat&#039;s Blog</title>
		<link>http://shafaqat309.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://shafaqat309.wordpress.com/osd.xml" title="Shafaqat&#039;s Blog" />
	<atom:link rel='hub' href='http://shafaqat309.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Lazy Loading, Delay Loading, Calling updatepanel refresh from client side</title>
		<link>http://shafaqat309.wordpress.com/2011/06/14/delay-loading-lazy-loading-calling-update-panel-refresh-from-client-side-in-pageload-ajax-performance/</link>
		<comments>http://shafaqat309.wordpress.com/2011/06/14/delay-loading-lazy-loading-calling-update-panel-refresh-from-client-side-in-pageload-ajax-performance/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 12:33:49 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[2.0]]></category>
		<category><![CDATA[3.5]]></category>
		<category><![CDATA[4.0]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[.net 2.0]]></category>
		<category><![CDATA[.net 3.5]]></category>
		<category><![CDATA[.net 4.0]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ajax performance]]></category>
		<category><![CDATA[Client Side Scripting]]></category>
		<category><![CDATA[delay loading]]></category>
		<category><![CDATA[lazy loading]]></category>
		<category><![CDATA[multiple updatepanels]]></category>
		<category><![CDATA[page load method]]></category>
		<category><![CDATA[performance improvement]]></category>
		<category><![CDATA[refresh panel]]></category>
		<category><![CDATA[update panel]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/06/14/lazy-loading-calling-update-panel-refresh-from-client-side/</guid>
		<description><![CDATA[Hi all Some days back I was working with update panels and I created a simple application with multiple update panels on my page. Update panels were fetching data from a third part content management system, so sending a request, fetching and displaying the data was not a tricky part of the application but that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=587&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all</p>
<p>Some days back I was working with update panels and I created a simple application with multiple update panels on my page. Update panels were fetching data from a third part content management system, so sending a request, fetching and displaying the data was not a tricky part of the application but that used to take around 30 to 40 seconds per request.</p>
<p>Initially It was good but later when we customized our application to allow user to add multiple update panels on 1 page, we got stuck with performance issues, when user tried to load a page it used to take 1 or 2 minutes to complete page output.</p>
<p>I searched a lot to find out the way to improve the page performance, I got the idea of lazy loading but that worked well if there was only 1 update panel on the page. After spending lot of time, finally I figured out the lazy loading implementation with unlimited number of update panels, so in ideal situation a web page loads immediately without any third party call and after page load is completed it execute update panel refresh calls from JavaScript and shows a progress bar when update panel is loading the data. So if you have n number of update panels placed on your web page, the update panel placed at first position will start loading and after that 2<sup>nd</sup> panel load will start then 3<sup>rd</sup> and so on.</p>
<p>So for the clear understanding of this concept I am creating a user control and that user controls has 1 update panel and some other content controls, I will drop the user control on my page 4 times, so there will be 4 update panels rendered.</p>
<p>Here is the sample script for user control</p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">UpdatePanel</span><br />
<span style="color:red;">ID<span style="color:blue;">=&#8221;upUpdatePanel&#8221;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span> UpdateMode<span style="color:blue;">=&#8221;Conditional&#8221;</span> OnPreRender<span style="color:blue;">=&#8221;upUpdatePanel_PreRender&#8221;&gt;</span></span></span></span></span></p>
<p><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">ContentTemplate<span style="color:blue;">&gt;</span></span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">LinkButton</span></span></span></span><span class="Apple-style-span" style="color:#ff0000;font-family:Consolas;font-size:12px;">ID<span style="color:blue;">=&#8221;LinkButton1&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span> Enabled<span style="color:blue;">=&#8221;false&#8221;</span> ForeColor<span style="color:blue;">=&#8221;Black&#8221;</span></span><span class="Apple-style-span" style="color:#ff0000;font-family:Consolas;font-size:12px;">Font-Bold<span style="color:blue;">=&#8221;true&#8221;</span> Font-Size<span style="color:blue;">=&#8221;Large&#8221;</span> onclick<span style="color:blue;">=&#8221;LinkButton1_Click&#8221;&gt;</span>LinkButton disabled so far<span style="color:blue;">&lt;/<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">LinkButton<span style="color:blue;">&gt;</span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">br</span> /&gt;</span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">br</span> /&gt;</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">Label</span><span style="color:red;">ID<span style="color:blue;">=&#8221;Label2&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span> Text<span style="color:blue;">=&#8221;Label&#8221;&gt;&lt;/<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">Label<span style="color:blue;">&gt;</span></span></span></span></span></span></span></span></span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">HiddenField</span></span></span></span><span class="Apple-style-span" style="color:#ff0000;font-family:Consolas;font-size:12px;">ID<span style="color:blue;">=&#8221;HiddenField1&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">/&gt;</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">GridView</span><br />
<span style="color:red;">ID<span style="color:blue;">=&#8221;GridView1&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span> PageSize<span style="color:blue;">=&#8221;3&#8243;</span> AllowPaging<span style="color:blue;">=&#8221;True&#8221;</span> OnPageIndexChanging<span style="color:blue;">=&#8221;GridView1_PageIndexChanging&#8221;&gt;</span><br />
</span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">GridView<span style="color:blue;">&gt;</span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;/<span style="color:maroon;">ContentTemplate<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">UpdatePanel<span style="color:blue;">&gt;</span><br />
</span></span></span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">UpdateProgress</span><br />
<span style="color:red;">ID<span style="color:blue;">=&#8221;updProgressTab&#8221;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span> AssociatedUpdatePanelID<span style="color:blue;">=&#8221;upUpdatePanel&#8221;&gt;</span><br />
</span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;<span style="color:maroon;">ProgressTemplate<span style="color:blue;">&gt;</span></span></span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">div</span></span><span class="Apple-style-span" style="color:#ff0000;font-family:Consolas;font-size:12px;">style<span style="color:blue;">=&#8221;<span style="color:red;">position<span style="color:blue;">: relative; <span style="color:red;">top<span style="color:blue;">: 50%; <span style="color:red;">text-align<span style="color:blue;">: center;&#8221;&gt;</span></span></span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">Image</span><span style="color:red;">ID<span style="color:blue;">=&#8221;imgLoading1&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span> ImageUrl<span style="color:blue;">=&#8221;simple.gif&#8221;</span> Width<span style="color:blue;">=&#8221;34px&#8221;</span> Height<span style="color:blue;">=&#8221;30px&#8221;</span><span style="color:blue;">/&gt;</span>Refreshing&#8230;</span><br />
</span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">div<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">ProgressTemplate<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:maroon;">asp<span style="color:blue;">:<span style="color:maroon;">UpdateProgress<span style="color:blue;">&gt;<br />
</span></span></span></span></span></p>
<p>Note : update panel&#8217;s update mode is &#8220;conditional&#8221; and I have registered on_PreRender event of the update panel.</p>
<p>For on_preRender I have implemented this logic :</p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">protected</span><br />
<span style="color:blue;">void</span> upUpdatePanel_PreRender(<span style="color:blue;">object</span> sender, <span style="color:#2b91af;">EventArgs</span> e)<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><br />
<span style="color:blue;">string</span> eventTarget = Request.Params[<span style="color:#a31515;">"__EVENTTARGET"</span>] <span style="color:blue;">as</span><br />
<span style="color:blue;">string</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><br />
<span style="color:blue;">if</span> (<span style="color:blue;">string</span>.IsNullOrEmpty(eventTarget) == <span style="color:blue;">false</span>)<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><br />
<span style="color:blue;">if</span> (eventTarget.StartsWith(<span style="color:blue;">this</span>.ID))<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> System.Threading.<span style="color:#2b91af;">Thread</span>.Sleep(2000);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> LinkButton1.Enabled = <span style="color:blue;">true</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> LinkButton1.Text = <span style="color:#a31515;">&#8220;Enabled Now&#8221;</span>;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><br />
<span style="color:blue;">this</span>.Label2.Text = <span style="color:#2b91af;">DateTime</span>.Now.ToString();<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> BindGrid1();<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">So I guess nothing special in the code logic, I am just trying to load a grid with hard coded values and with 2 second time interval.<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">So here is the tricky and most important part of the topic<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:#2b91af;">StringBuilder</span> sb = <span style="color:blue;">new</span><br />
<span style="color:#2b91af;">StringBuilder</span>();<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;var loopCounter = -1;&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;function pageLoad(sender, e) {&#8220;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;if (!e.get_isPartialLoad()) {&#8220;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;var refreshPanels = $(\&#8221;[id*=\" + \"upUpdatePanel\" + \"]\&#8221;);&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;var panel = refreshPanels[++loopCounter];&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;__doPostBack(panel.id, &#8217;1&#8242;);&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;}function EndRequestHandler() {&#8220;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;var panel = refreshPanels[++loopCounter];&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;if (panel==null) {&#8220;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(EndRequestHandler);&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;}&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;else {&#8220;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;__doPostBack(panel.id, &#8217;2&#8242;);}}&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> sb.Append(<span style="color:#a31515;">&#8220;}&#8221;</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> Page.ClientScript.RegisterClientScriptBlock(<span style="color:blue;">typeof</span>(<span style="color:#2b91af;">Page</span>), <span style="color:#a31515;">&#8220;MYScript&#8221;</span>, sb.ToString(), <span style="color:blue;">true</span>);<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">Let me explain in detail.<br />
</span></p>
<ul>
<li><span style="font-family:Consolas;font-size:9pt;">First thing you need to know is that this will be rendered from controls load event<br />
</span></li>
<li><span style="font-family:Consolas;font-size:9pt;">I am calling some script after page load event.<br />
</span></li>
<li><span style="font-family:Consolas;font-size:9pt;">&#8220;<span style="color:#a31515;">$(\&#8221;[id*=\" + \"upUpdatePanel\" + \"]\&#8221;);&#8221;</span>)&#8221; this part is basically a JQuery selector that selects all divs having id &#8220;<span style="color:#a31515;">upUpdatePanel&#8221;, </span>which is id of my update panel.<br />
</span></li>
<li><span style="font-family:Consolas;font-size:9pt;">After that I am registering an end request event handler, that will be raised when update panel load request is completed.<br />
</span></li>
<li><span style="font-family:Consolas;font-size:9pt;">I am looping through all panels and calling __doPostBack of each update panel. __doPostBack will call &#8220;upUpdatePanel_PreRender&#8221; event.<br />
</span></li>
<li><span style="font-family:Consolas;font-size:9pt;">In EndRequestHsndler I am checking if there is another update panel remaining then call its __doPostBack otherwise simple remove end request event handler.<br />
</span></li>
</ul>
<p><span style="font-family:Consolas;font-size:9pt;">In my page I have dropped 4 user controls<br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:maroon;">table</span><br />
<span style="color:red;">border<span style="color:blue;">=&#8221;0&#8243;</span> cellpadding<span style="color:blue;">=&#8221;0&#8243;</span> cellspacing<span style="color:blue;">=&#8221;0&#8243;</span> width<span style="color:blue;">=&#8221;100%&#8221;&gt;</span><br />
</span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;<span style="color:maroon;">tr<span style="color:blue;">&gt;</span></span></span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">td</span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;"> <span style="color:red;">style<span style="color:blue;">=&#8221;<span style="color:red;">width<span style="color:blue;">: 50%&#8221;&gt;</span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">uc1<span style="color:blue;">:<span style="color:maroon;">WebUserControl1</span><span style="color:red;">ID<span style="color:blue;">=&#8221;WebUserControl11&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span><span style="color:blue;">/&gt;</span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;/<span style="color:maroon;">td<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;<span style="color:maroon;">td</span><span style="color:red;">style<span style="color:blue;">=&#8221;<span style="color:red;">width<span style="color:blue;">: 50%&#8221;&gt;</span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">uc1<span style="color:blue;">:<span style="color:maroon;">WebUserControl1</span><span style="color:red;">ID<span style="color:blue;">=&#8221;WebUserControl12&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span><span style="color:blue;">/&gt;</span><br />
</span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">td<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">tr<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;<span style="color:maroon;">tr<span style="color:blue;">&gt;</span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">td</span><span style="color:red;">style<span style="color:blue;">=&#8221;<span style="color:red;">width<span style="color:blue;">: 50%&#8221;&gt;</span></span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">uc1<span style="color:blue;">:<span style="color:maroon;">WebUserControl1</span><span style="color:red;">ID<span style="color:blue;">=&#8221;WebUserControl13&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span><span style="color:blue;">/&gt;</span><br />
</span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">td<span style="color:blue;">&gt;</span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> <span style="color:blue;">&lt;<span style="color:maroon;">td</span><span style="color:red;">style<span style="color:blue;">=&#8221;<span style="color:red;">width<span style="color:blue;">: 50%&#8221;&gt;</span></span></span></span></span></span><span class="Apple-style-span" style="color:#0000ff;font-family:Consolas;font-size:12px;">&lt;<span style="color:maroon;">uc1<span style="color:blue;">:<span style="color:maroon;">WebUserControl1</span></span></span></span><span class="Apple-style-span" style="color:#ff0000;font-family:Consolas;font-size:12px;">ID<span style="color:blue;">=&#8221;WebUserControl14&#8243;</span> runat<span style="color:blue;">=&#8221;server&#8221;</span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;"><span style="color:maroon;"><span style="color:blue;"><span style="color:red;"> <span style="color:blue;">/&gt;</span><br />
</span></span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">td<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">tr<span style="color:blue;">&gt;</span><br />
</span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">&lt;/<span style="color:maroon;">table<span style="color:blue;">&gt;<br />
</span></span></span></span></p>
<p><span style="font-family:Consolas;font-size:9pt;">This shows page output like<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading1.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">In above screen you can see first panel is being refreshed.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading2.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">Now first panel has been loaded and now second panel is being refreshed. Same for 3<sup>rd</sup> and fourth<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading3.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading4.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><a href="http://www.4shared.com/folder/Ryz_jgeH/Lazy_Loading.html"><span style="font-family:Consolas;font-size:9pt;">http://www.4shared.com/folder/Ryz_jgeH/Lazy_Loading.html</span></a></p>
<p><span><span style="font-family:Consolas;"><span class="Apple-style-span" style="font-size:9pt;">you can download code form above link and </span><span class="Apple-style-span" style="font-size:12px;">off course leave a comment if you did like my effort :)</span><span class="Apple-style-span" style="font-size:9pt;"> </span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/587/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=587&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/06/14/delay-loading-lazy-loading-calling-update-panel-refresh-from-client-side-in-pageload-ajax-performance/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/06/061411_1233_lazyloading4.png" medium="image" />
	</item>
		<item>
		<title>Forms Bases Authentication for SharePoint 2010</title>
		<link>http://shafaqat309.wordpress.com/2011/05/01/forms-bases-authentication-for-sharepoint-2010/</link>
		<comments>http://shafaqat309.wordpress.com/2011/05/01/forms-bases-authentication-for-sharepoint-2010/#comments</comments>
		<pubDate>Sun, 01 May 2011 15:15:42 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>
		<category><![CDATA[Claim based authentication]]></category>
		<category><![CDATA[Forms Authentication]]></category>
		<category><![CDATA[Forms based Authentication]]></category>
		<category><![CDATA[IIS 7]]></category>
		<category><![CDATA[SharePoint Features]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/05/01/forms-bases-authentication-for-sharepoint-2010/</guid>
		<description><![CDATA[There are not a lot of differences with configuring FBA for SharePoint 2010 compared to 2007, but there are a few.  For instance, SharePoint 2010 no longer supports &#8220;classic FBA&#8221;, rather forms based authentication is provided through Claims Authentication.  There is also the introduction of the Secure Store Service which is the next-gen of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=577&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">There are not a lot of differences with configuring FBA for SharePoint 2010 compared to 2007, but there are a few.  For instance, SharePoint 2010 no longer supports &#8220;classic FBA&#8221;, rather forms based authentication is provided through Claims Authentication.  There is also the introduction of the Secure Store Service which is the next-gen of the Single Sign On service of old.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Both of these come into play when configuring Forms Based Authentication.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:12pt;"><strong>1 . Configure SQL for membership store<br />
</strong></span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">The membership store is still created using the ASP.NET SQL Server Setup Wizard.  This is launched from the .NET 2.0 Framework folder on the server at:<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">This wizard will take you thorough the steps and will build out the SQL database for you.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa1.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa2.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa3.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<h2><span style="color:#555555;font-family:Verdana;font-size:12pt;">2. Configure Central Admin Web Site to use SQL Membership Provider<br />
</span></h2>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">SharePoint web sites out of the box are configured to use Active Directory.  So you may be wondering why we&#8217;re configuring Central Admin to use FBA when we don&#8217;t really want to login in as an FBA user.  Well, we actually don&#8217;t want to configure it to to login as a forms user, but we do need to be able to add users from out membership database when configuring site collection admins, and the like.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">So all we want to do is tell the Central Admin web application to use our SQL membership provider as well as AD, so when you use the people picker to select users, it will provide results from our membership database.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Open IIS Manager and locate central administration site<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa4.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Open the Connection Strings Page.  Under Actions menu on the right, select Add… to create a new connection string.  Provide the details for the membership database for the new connection string.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa5.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa6.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;"><strong>Add Role Provider</strong><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Go back to the Web Application page and open up Providers page.  Here we will create a provider for Roles and Users.  Set feature to .NET Roles and click Add… in the Actions pane to add a new role provider.  I called it <strong>FBARoleProvider</strong> and selected the right type and connection string.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa7.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa8.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;"><strong>Add Membership Provider</strong><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Now set feature to .NET Users and click Add… from the actions pane to add a membership provider.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa9.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Select the correct type and connection string, and whatever behaviors you choose.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">That&#8217;s it for the providers for Central Admin.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">To verify that all looks ok, we can check the web.config of the web application.  To get to the right web.config, right-click on the web application under sites, and select E<strong>xplore</strong>.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa10.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa11.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa12.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<h2><span style="color:#555555;font-family:Verdana;font-size:12pt;">3 . Configure Secure Store Web Service to use SQL Membership Provider<br />
</span></h2>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Everything we did for Central Admin site, we are going to do for the<strong>SecurityTokenServiceAppliaation</strong> which is in the <strong>SharePoint Web Services</strong> application.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa13.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<h2><span style="color:#555555;font-family:Verdana;font-size:12pt;">4. Create Extranet Web Application<br />
</span></h2>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Ok, finally we are ready to create our web application (called <strong>SharePoint – FBA</strong>) that will use FBA authentication.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">In Central Admin, Select the <strong>Application Management</strong> page, and select <strong>Manage web applications</strong>.  Select New from the ribbon to create a new web application.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Select Claims Based Mode Authentication as Authentication Type. Allow anonymous access and select values for all the other options until you get to the &#8220;<strong>Enable Forms Based Authentication</strong>&#8220;.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Add the values we created earlier in the section &#8220;Enable Forms Based Authentication&#8221; for role and membership provider.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa14.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa15.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">You can specify your custom login page, I will do in later posts.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa16.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa17.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Click ok and application will be created.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">So now our application has been created but we need to configure the same roles and membership providers for this application too, previously we did for only central administration.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa18.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">So our new web application is here in IIS manager, I will configure it with roles and members<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa19.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Add a new connection string<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa20.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Open the .NET Roles page for our web application.  You will receive a warning that the default role provider is not trusted.  There is a pre-configured SharePoint related role and membership is available, so we don&#8217;t need to create our own.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa21.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa22.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Now create some new roles and user for our web application<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa23.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">When u try to open new roles you will see following error message, simple ignore it<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa24.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">We do not have any roles in our database at this point, so let&#8217;s create two (StandardUser, SuperUser) by clicking <strong>Add…</strong> in the actions pane.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa25.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Now we need to do the same for .NET Users.  Open the <strong>.NET Users</strong> page.  You will get a similar warning saying the default is not trusted.  Assuming you don&#8217;t let&#8217;s add some.  Click <strong>Add…</strong> from the Actions pane to add users, and assign them roles.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa26.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa27.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">Now create and open the site collection<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa28.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa29.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">After creating a new site collection when u open it you will see the following screen<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa30.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">As we have created a user in sql server database and that user is site collection administrator, so use for based authentication.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa31.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa32.png?w=510" alt="" /><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;">So you have been logged in with sql server user. That&#8217;s it.<br />
</span></p>
<p><span style="color:#555555;font-family:Verdana;font-size:9pt;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/577/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=577&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/05/01/forms-bases-authentication-for-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa4.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa5.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa6.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa7.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa8.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa9.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa10.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa11.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa12.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa13.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa14.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa15.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa16.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa17.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa18.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa19.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa20.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa21.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa22.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa23.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa24.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa25.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa26.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa27.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa28.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa29.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa30.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa31.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/05/050111_1506_formsbasesa32.png" medium="image" />
	</item>
		<item>
		<title>Creating quick steps for SharePoint Lists</title>
		<link>http://shafaqat309.wordpress.com/2011/04/27/creating-quick-actions-for-sharepoint-listsquick-steps-sharepoint-designer-2010-sharepoint-features-sharepoint-lists-windows-sharepoint-foundation-windows-sharepoint-server-2010-windows-sharepoi/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/27/creating-quick-actions-for-sharepoint-listsquick-steps-sharepoint-designer-2010-sharepoint-features-sharepoint-lists-windows-sharepoint-foundation-windows-sharepoint-server-2010-windows-sharepoi/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 10:55:15 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[SharePoint Designer 2010]]></category>
		<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>
		<category><![CDATA[Quick Steps]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[SharePoint Lists]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/27/creating-quick-actions-for-sharepoint-lists/</guid>
		<description><![CDATA[Quick steps are one click handlers that performs some operations. Now with SharePoint 2010 and SharePoint designer 2010 it is possible to define quick steps easily. In this post, we are going to see how we can add new ECB options for list items and also see how to add button in existing ribbon tab. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=535&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Quick steps are one click handlers that performs some operations. Now with SharePoint 2010 and SharePoint designer 2010 it is possible to define quick steps easily.</span></p>
<p>In this post, we are going to see how we can add new ECB options for list items and also see how to add button in existing ribbon tab. These both options are now possible with SharePoint Designer 2010.</p>
<p>Creating ECB menu option in MOSS 2007 requires creating feature targeting edit control block with CustomActions and deploying it on server.</p>
<p>However there is one limitation for adding control in existing ribbon tab. You cannot have JavaScript function, showing message, disabling controls etc. when creating quick step using Designer 2010. These all can be done via in feature. We will have a detailed post in this topic going forward which is a vast topic.</p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Open you site and select a list, you will see &#8220;New Quick Steps&#8221; menu on the top right side.</span><br />
<img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui1.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Let&#8217;s go ahead and create one ECB menu option for lists. Open SharePoint Designer 2010. Connect with the site. If you notice, SPD2010 is way different from SPD2007. There are so many differences. SPD2010 looks very clean and clear. It gives very user friendly interface than SPD2007.</span></p>
<p>Click on Lists and Libraries and choose the list on which you want to create ECB menu item. I have created a new list &#8220;Quick Step List&#8221;</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui2.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Double click on the Tasks List to make it open on right side panel, you will see list work flows and custom actions on the top ribbon, we can create new custom actions and work folws from here<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui3.png?w=510" alt="" /></p>
<p>When you click on custom action you will see 5 options</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui4.png?w=510" alt="" /></p>
<p>I am using &#8220;List Item Menu&#8221; for this demo because I want to add a quick action on all items page for the list. After clicking you will see the following screen.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui5.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Give the name and description. Here you can choose if you have your own page, you can send user to this page with parameters. If you want to initiate any workflow you can do that from here. Or you can also send user to any other url that you wish.</span></p>
<p>Just to demonstrate i am using Google image and redirecting user to google.com from ECB menu. So mention that URL, use 16 by 16 image of Google, which will be shown to user in the menu item. And finally click on OK. And you are almost done. Remember this image should be in the IMAGES folder under 14 hive. (New structure, not 12 hive like in MOSS 2007)</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui6.png?w=510" alt="" /></p>
<p>Save it and move to list item page and create a new entry.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui7.png?w=510" alt="" /></p>
<p>Click on the link and you will be moved to google home page</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui8.png?w=510" alt="" /></p>
<p>If you want to edit settings for this quick action, there is a panel for quick actions settings, find you setting and edit it.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui9.png?w=510" alt="" /></p>
<p>Same actions can be added for new disp and edit form, have a try.</p>
<p>Special thanx to SharePointKings for helping me to write this post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/535/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=535&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/27/creating-quick-actions-for-sharepoint-listsquick-steps-sharepoint-designer-2010-sharepoint-features-sharepoint-lists-windows-sharepoint-foundation-windows-sharepoint-server-2010-windows-sharepoi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui4.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui5.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui6.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui7.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui8.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1054_creatingqui9.png" medium="image" />
	</item>
		<item>
		<title>Inline Editing of list items in SharePoint 2010</title>
		<link>http://shafaqat309.wordpress.com/2011/04/27/inline-editing-of-list-items-in-sharepoint-2010/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/27/inline-editing-of-list-items-in-sharepoint-2010/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 10:52:23 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Inline editing]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[SharePoint Lists]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/27/inline-editing-of-list-items-in-sharepoint-2010/</guid>
		<description><![CDATA[This feature is some of the very much awaited features amongst all new features in SharePoint 2010. People like to edit the item without opening that item in window. Just like ASP.NET grid provides the way of edit and then update by clicking edit button and then updating the record.  Well, now this was possible [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=523&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">This feature is some of the very much awaited features amongst all new features in SharePoint 2010. People like to edit the item without opening that item in window. Just like ASP.NET grid provides the way of edit and then update by clicking edit button and then updating the record. </span></p>
<p>Well, now this was possible in MOSS 2007 as well, but it required little trick, but with SharePoint 2010, it is easy to do that.</p>
<p>Just go to the view settings of any list and then enable the in line editing option.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti1.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti2.png?w=510" alt="" /></p>
<p>Check in line editing option and save.</p>
<p>Now move back to list and move mouse cursor near the list item, you will see an &#8220;edit&#8221; icon against each list item</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti3.png?w=510" alt="" /></p>
<p>When u click on the icon, the selected row will be edited and 2 more icons, save and cancel will be displayed.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti4.png?w=510" alt="" /></p>
<p>Make your changes and save. That&#8217;s it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/523/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=523&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/27/inline-editing-of-list-items-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042711_1052_inlineediti4.png" medium="image" />
	</item>
		<item>
		<title>Relevant Document Webpart</title>
		<link>http://shafaqat309.wordpress.com/2011/04/24/relevant-document-webpart/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/24/relevant-document-webpart/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 15:08:09 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[Windows Sharepoint Services 3.0]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[wss 3.0]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/24/relevant-document-webpart/</guid>
		<description><![CDATA[Hi We all know that there are many out of the box web parts available in MOSS 2007 and now more in SP 2010. Sometimes it is important to see what they offer. Recently I came across to a very good document management related out of the box web part which is relevant documents web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=516&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Hi</span></p>
<p>We all know that there are many out of the box web parts available in MOSS 2007 and now more in SP 2010. Sometimes it is important to see what they offer. Recently I came across to a very good document management related out of the box web part which is relevant documents web part.</p>
<p>This web part was a part of MOSS 2007 and continues to be a part of SharePoint 2010.</p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">This web part is under content rollup section in SP 2010 and under miscellaneous section in MOSS 2007 and these are the configurable properties.</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042411_1507_relevantdoc1.png?w=510" alt="" /></p>
<p>Now I am adding a document</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042411_1507_relevantdoc2.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">The Relevant Documents web part displays documents that are relevant to the current user. This web part can show following;</span></p>
<p>Documents last modified by current user<br />
Documents created by current users<br />
Documents checked out by current user</p>
<p>So ultimately it becomes my checked out, my created, and my last modified documents.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042411_1507_relevantdoc3.png?w=510" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/516/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/516/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/516/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/516/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/516/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/516/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/516/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/516/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=516&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/24/relevant-document-webpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042411_1507_relevantdoc1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042411_1507_relevantdoc2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042411_1507_relevantdoc3.png" medium="image" />
	</item>
		<item>
		<title>Create new site action menu with SharePoint 2010 and Visual Studio 2010</title>
		<link>http://shafaqat309.wordpress.com/2011/04/20/create-new-site-action-menu-with-sharepoint-2010-and-visual-studio-2010/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/20/create-new-site-action-menu-with-sharepoint-2010-and-visual-studio-2010/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 11:25:16 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[VS 2010]]></category>
		<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Windows Sharepoint Services 3.0]]></category>
		<category><![CDATA[Custom Action Locations]]></category>
		<category><![CDATA[Site Action Menu]]></category>
		<category><![CDATA[Site Actions]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/20/create-new-site-action-menu-with-sharepoint-2010-and-visual-studio-2010/</guid>
		<description><![CDATA[With the integration of Visual Studio 2010 and SharePoint 2010, creating features are now much easier than with previous versions of either tool. To begin creating a feature to modify the Site Action menu, create a SharePoint 2010 empty project in Visual Studio 2010, making sure to chose a Farm solution rather than Sandbox. After [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=506&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:black;font-family:Verdana;font-size:10pt;">With the integration of Visual Studio 2010 and SharePoint 2010, creating features are now much easier than with previous versions of either tool. To begin creating a feature to modify the Site Action menu, create a SharePoint 2010 empty project in Visual Studio 2010, making sure to chose a Farm solution rather than Sandbox. After the project has been created, you will see the below structure.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi1.png?w=510" alt="" /></p>
<p>Now add a new module in the project, I am naming it &#8220;SiteActionMenue&#8221;</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi2.png?w=510" alt="" /></p>
<p>You will see following files added in the project</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi3.png?w=510" alt="" /></p>
<p>You can delete sample.txt file</p>
<p>Remove module section and replace with this site action script</p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">CustomAction</span><br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">Id<span style="color:blue;">=</span>&#8220;<span style="color:blue;">toolPaneWebpart</span>&#8220;</span><br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">Description<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Toolpane Webpart</span>&#8220;</span><br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">Title<span style="color:blue;">=</span>&#8220;<span style="color:blue;">ToolPane Web part Action</span>&#8220;</span><br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">GroupId<span style="color:blue;">=</span>&#8220;<span style="color:blue;">SiteActions</span>&#8220;</span><br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">Location<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Microsoft.SharePoint.StandardMenu</span>&#8220;</span><br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">ImageUrl<span style="color:blue;">=&#8221;/_layouts/images/settingsIcon.png&#8221;</span><br />
</span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
<span style="color:red;">Sequence<span style="color:blue;">=</span>&#8220;<span style="color:blue;">10001</span>&#8220;<span style="color:blue;">&gt;</span><br />
</span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"> &lt;<span style="color:#a31515;">UrlAction<span style="color:blue;"><br />
<span style="color:red;">Url<span style="color:blue;">=</span>&#8220;<span style="color:blue;">_layouts/WebpartConfiguration/MyPage.aspx</span>&#8220;<span style="color:blue;"> /&gt;</span><br />
</span></span></span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;"> &lt;/<span style="color:#a31515;">CustomAction<span style="color:blue;">&gt;<br />
</span></span></span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">Note : We have specified a url to the page, we will add that page later.<br />
</span></p>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">Set default site for this application when creating the new project, otherwise you can set in projects properties, see the following screenshot<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi4.png?w=510" alt="" /><span style="color:blue;font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">Save the project and press F5<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">Go to site action and you will see a context menu.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi5.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">Now go to project and add a new content page.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi6.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"> Press add and this will add a page in the solution within appropriate folder<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi7.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">Now press F5<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">After clicking on site action menu you will be redirected to page you have created.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi8.png?w=510" alt="" /><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;">That&#8217;s it, how simple it was, let me know in case of any confusion.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/506/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=506&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/20/create-new-site-action-menu-with-sharepoint-2010-and-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi4.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi5.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi6.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi7.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/042011_1124_createnewsi8.png" medium="image" />
	</item>
		<item>
		<title>Relationship in SharePoint 2010 Lists</title>
		<link>http://shafaqat309.wordpress.com/2011/04/09/relationship-in-sharepoint-2010-lists/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/09/relationship-in-sharepoint-2010-lists/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 15:11:49 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[SharePoint Lists]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/09/relationship-in-sharepoint-2010-lists/</guid>
		<description><![CDATA[Hi, In this article we will see the new concept called relationship which was highly anticipated in SharePoint 2010 and which was lacking in MOSS 2007. After a wait now it&#8217;s finally here with SP 2010. We can define the delete constraint over the lists. When we have a lookup column in child list pointing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=497&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Hi,</span></p>
<p>In this article we will see the new concept called relationship which was highly anticipated in SharePoint 2010 and which was lacking in MOSS 2007.</p>
<p>After a wait now it&#8217;s finally here with SP 2010. We can define the delete constraint over the lists. When we have a lookup column in child list pointing to a parent list and if we have defined the cascading delete constraint then we can allow deleting all child records when parent record is deleted or we can restrict deleting parent record when child record exists. This is the same behavior that we have in SQL Server delete constraint.</p>
<p>So let&#8217;s go and open our Employee Leave lists that we created for our earlier posts. If you have not gone through it, I would recommend you go through it to understand more concepts of SP 2010.</p>
<p>Go to list settings – Click on Employee ID lookup field which is pointing to Employee parent list&#8217;s Employee ID field and scroll down to find this.</p>
<p>Do remember that to enforce the constraint on field, that field must be indexed. If it&#8217;s not, SharePoint will prompt you and index it for you.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi1.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi2.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Here we have put in a restriction on delete that means if we go and try deleting record from Employee List; it should not allow us to do so. So let&#8217;s try that out.</span></p>
<p>Go to Employee List, and delete any existing record that has lookup item exist in Employee Leave list and see what you get.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi3.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi4.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi5.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">f you have defined two lists which have lookup reference to the parent list and if one list allows cascading delete and one do not, then parent list item will not be deleted because one list does not allow cascading delete. And this is what it should be.</span></p>
<p>When every list allows cascading delete then when you delete item from the parent list, it delete all related records from all related lists which have lookup field referenced to the parent list field. It also actually shows you the names of all lists which have the association while you are deleting the parent item. Check this out.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi6.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">It is showing Employee Projects as well as Employee Leave, click on Ok to delete all related items in child lists as well as parent item.</span></p>
<p><span style="font-size:10pt;">Employee ID =1 removed<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi7.png?w=510" alt="" /></p>
<p>Related record from the leave list also removed</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi8.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">I hope now you will have a fair idea about the new relationship behavior functionality in SharePoint 2010</span></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/497/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=497&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/09/relationship-in-sharepoint-2010-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi4.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi5.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi6.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi7.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1511_relationshi8.png" medium="image" />
	</item>
		<item>
		<title>Related Lists in SharePoint 2010</title>
		<link>http://shafaqat309.wordpress.com/2011/04/09/related-lists-in-sharepoint-2010/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/09/related-lists-in-sharepoint-2010/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 14:54:48 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Windows Sharepoint Services 4.0]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[SharePoint Lists]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/09/related-lists-in-sharepoint-2010/</guid>
		<description><![CDATA[Hi We will see one of the new concepts from SharePoint 2010 which is related lists. We already have employee list with us. All we need to do is create two more lists. I am creating two lists just to show you an example. We can have as many lists we want. Create Employee Leave [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=488&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Hi</span></p>
<p>We will see one of the new concepts from SharePoint 2010 which is related lists. We already have employee list with us. All we need to do is create two more lists. I am creating two lists just to show you an example. We can have as many lists we want.</p>
<p>Create Employee Leave list and go to list settings and create one column which is Empoyee ID and take it as a look up column from Employee list and field Employee ID. One new feature here is when you define lookup column. Now we have the ability to fetch fields from that item and display it in the list as well.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist1.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist2.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">So now when you enter the data in the Employee Leaves and select Employee ID from lookup drop down, you get something like this<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist3.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist4.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">So what happens is, here you would be able to see parent item details as well along with the actual list data.</span></p>
<p>Now go ahead and create one more list and call it an Employee Projects. Do the same thing, add columns and add EmployeeID column lookup to the Employee list and Employee Field.</p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Now add some data to this list. So what we have now is three list which are connected from Employee ID look up fields. Empoyee is the main list and then we have two lists with lookup to the Employee list employeeID field.</span></p>
<p>Open the List settings page of Employee List, create one view and call it a RelatedList view. Open the related list view and click on Site actions -Edit Page.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist5.png?w=510" alt="" /><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist6.png?w=510" alt="" /></p>
<p>Go to options tab and then see we have new option called related list</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist7.png?w=510" alt="" /><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<p>If I select first employee it shows realted entries in project and leave lists.<img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist8.png?w=510" alt="" /><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist9.png?w=510" alt="" /><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">If I select 2<sup>nd</sup> employee it shows records related to that entry.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist10.png?w=510" alt="" /><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=488&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/09/related-lists-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist4.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist5.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist6.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist7.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist8.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist9.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1454_relatedlist10.png" medium="image" />
	</item>
		<item>
		<title>List and Column level validations</title>
		<link>http://shafaqat309.wordpress.com/2011/04/09/list-and-column-level-validations/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/09/list-and-column-level-validations/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:10:47 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[Columns Validation]]></category>
		<category><![CDATA[List Validation]]></category>
		<category><![CDATA[SharePoint Columns]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[SharePoint Lists]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/09/list-and-column-level-validations/</guid>
		<description><![CDATA[Hi, Earlier in MOSS 2007, it was not possible to validate the value of the field at the time of entering or updating the value in the list items. We could do that, but we had to rely on handlers or custom fields. Yes, still for some requirement we have to go with these options, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=474&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Hi,</span></p>
<p>Earlier in MOSS 2007, it was not possible to validate the value of the field at the time of entering or updating the value in the list items. We could do that, but we had to rely on handlers or custom fields.</p>
<p>Yes, still for some requirement we have to go with these options, but at least for the basic and indeed useful now we have something called column validation in SharePoint 2010.</p>
<p>I have created one Employees List ready in my SharePoint site and I have added three columns to it. It has Joining Date, Leaving Date and weight.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu1.png?w=510" alt="" /></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu2.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">We will see two things here. First is the field level validation and the other is item level validation. You can treat this as a custom field validation and event handler validation.</span></p>
<p>Go to list setting and then click on the weight and now we can see one new section which says column validation. So go ahead and add below condition and type in the user message that you would like to see when condition becomes false.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu3.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Click on ok.</span></p>
<p>Now being on the list settings page, you can see one more new option which is validation settings. Click on it to open a page.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu4.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">In validation settings, you can actually compare one field with the other field from the list and then show a message to the user. Here in our list for example, we have two date fields and of course joining date cannot be greater than Leaving date. Hence we need to validate these two date fields.</span></p>
<p>Hence we put this formula inside it.</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu5.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Now go to the list and add new item and enter weight less than 50 and enter joining date greater than leaving date and see validation triggering.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu6.png?w=510" alt="" /></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Now this is a cool new feature of SP 2010, isn&#8217;t it?</span></p>
<p>But yes do remember that we can have only one list validation, which is unfortunate i think and column validations are evaluated first and then list validation.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/474/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=474&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/09/list-and-column-level-validations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu3.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu4.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu5.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1310_listandcolu6.png" medium="image" />
	</item>
		<item>
		<title>Display New/Disp/Edit items in a form like SharePoint 2007</title>
		<link>http://shafaqat309.wordpress.com/2011/04/09/display-newdispedit-items-in-a-form-like-sharepoint-2007/</link>
		<comments>http://shafaqat309.wordpress.com/2011/04/09/display-newdispedit-items-in-a-form-like-sharepoint-2007/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 12:46:18 +0000</pubDate>
		<dc:creator>Shafaqat Ali</dc:creator>
				<category><![CDATA[Windows SharePoint Foundation]]></category>
		<category><![CDATA[Windows SharePoint Server 2010]]></category>
		<category><![CDATA[SharePoint Features]]></category>
		<category><![CDATA[SharePoint l]]></category>

		<guid isPermaLink="false">http://shafaqat309.wordpress.com/2011/04/09/display-newdispedit-items-in-a-form-like-sharepoint-2007/</guid>
		<description><![CDATA[Another new change in SharePoint 2010 is that when you create a new/edit/disp form it is displayed in a popup. If you want the forms to open normally while creating, editing or displaying item, then go to list settings – advanced settings – dialogs and then select NO. Click ok and create a new item now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=464&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#222222;font-family:Arial;font-size:10pt;">Another new change in SharePoint 2010 is that when you create a new/edit/disp form it is displayed in a popup.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1246_displaynewd1.png?w=510" alt="" /><span style="color:#222222;font-family:Arial;font-size:10pt;"><br />
</span></p>
<p><span style="color:#222222;font-family:Arial;font-size:10pt;">If you want the forms to open normally while creating, editing or displaying item, then go to list settings – advanced settings – dialogs and then select NO.<br />
</span></p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1246_displaynewd2.png?w=510" alt="" /></p>
<p>Click ok and create a new item now</p>
<p><img src="http://shafaqat309.files.wordpress.com/2011/04/040911_1246_displaynewd3.png?w=510" alt="" /></p>
<p>Quite simple it is</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shafaqat309.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shafaqat309.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shafaqat309.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shafaqat309.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shafaqat309.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shafaqat309.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shafaqat309.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shafaqat309.wordpress.com/464/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shafaqat309.wordpress.com&amp;blog=5559816&amp;post=464&amp;subd=shafaqat309&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shafaqat309.wordpress.com/2011/04/09/display-newdispedit-items-in-a-form-like-sharepoint-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3d772e7b2d6eee0ef3824daeb8b50dc7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shafaqat309</media:title>
		</media:content>

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1246_displaynewd1.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1246_displaynewd2.png" medium="image" />

		<media:content url="http://shafaqat309.files.wordpress.com/2011/04/040911_1246_displaynewd3.png" medium="image" />
	</item>
	</channel>
</rss>
