tag:blogger.com,1999:blog-19871888945065753862014-01-21T18:58:00.608+05:30SharePoint NotesNiteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-1987188894506575386.post-71993053437411696572013-05-16T14:40:00.003+05:302013-05-17T10:53:32.881+05:30SharePoint Client Object Model : How to change default content type programatically<div dir="ltr" style="text-align: left;" trbidi="on">In this blog I am going to show how to change default content type&nbsp;programatically&nbsp;using the SharePoint client object model. In one of my task assignments I was using custom content type in the document library and to update this new content type as a default content type for the document library.<br />The top content type is always default content type for all type of SharePoint libraries. So that you have to just change the content type order of library and make your custom content type on the top.<br />Following is the code method to change the content type order.<br />Include "<span style="background-color: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; line-height: 115%;">using SP = Microsoft.SharePoint.Client;</span>" on the top of your class.<br /><br /><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">void</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> ChangeContentTypeOrder(SP.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">ClientContext</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> ctx, SP.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">List</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> list, </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">string</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> contentTypeName)<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SP.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">ContentTypeCollection</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> currentCTOrder = list.ContentTypes;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.Load(currentCTOrder);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.ExecuteQuery();<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">IList</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;SP.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">ContentTypeId</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&gt; reverceOrder = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">List</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;SP.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">ContentTypeId</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&gt;();<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">foreach</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> (SP.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">ContentType</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> ct </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">in</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> currentCTOrder)<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">if</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> (ct.Name.Equals(</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"contentTypeName"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">))<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reverceOrder.Add(ct.Id);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list.RootFolder.UniqueContentTypeOrder = reverceOrder;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list.RootFolder.Update();<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list.Update();<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.ExecuteQuery();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">}</span><o:p></o:p></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table><br /><br />Where "<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">SP.</span><span style="background-color: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">List</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">&nbsp;list"</span>&nbsp;is the list name and &nbsp;'<span style="background-color: white; color: blue; font-family: Consolas; font-size: 9.5pt;">string</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">&nbsp;contentTypeName</span>' is the custom content type which you have to make as a default content type<br /><br /></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/k-fk_T03RV4" height="1" width="1"/>Niteen Badgujarhttps://plus.google.com/110139185489671144399noreply@blogger.com0http://www.niteenbadgujar.com/2013/05/change-default-content-type.htmltag:blogger.com,1999:blog-1987188894506575386.post-91746744133073510492013-05-08T11:39:00.000+05:302013-05-08T14:31:18.758+05:30SharePoint 2010 : Deploy webpart page embedded with Visual webpart using SharePoint feature<div dir="ltr" style="text-align: left;" trbidi="on">Are you looking for a solution to deploy webpart pages using SharePoint feature? Do you need to use Visual webparts part in to the page? Following is the solution for your answers. Here I am going to explain to how to deploy webpart pages with visual webpart using module feature.<br /><br />Create new SharePoint project, select "Empty SharePoint Project" template<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-MJ9iiH-vsnc/UYnvqd0Z8KI/AAAAAAAAA5I/x7fjH5CJ2Pk/s1600/newproject.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="388" src="http://2.bp.blogspot.com/-MJ9iiH-vsnc/UYnvqd0Z8KI/AAAAAAAAA5I/x7fjH5CJ2Pk/s640/newproject.png" width="640" /></a></div><br /><br />On next window, provide local SharePoint site url and select "Deploy as a farm solution" as a trust level. Click on Finish button<br />The next step is to create Visual Webpart, right click on project and add new item<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-TDkfYZD-rBw/UYnw6uBrCUI/AAAAAAAAA5U/WBv7_UtCyOY/s1600/AddVisualWebpart.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="390" src="http://1.bp.blogspot.com/-TDkfYZD-rBw/UYnw6uBrCUI/AAAAAAAAA5U/WBv7_UtCyOY/s640/AddVisualWebpart.png" width="640" /></a></div><br />Add sample label control in webpart's ascx for demonstration, here you can design your webpart<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-oAggR3E3h0c/UYnyxQs-73I/AAAAAAAAA5g/TfEOcfx8TiM/s1600/demo_ascx.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="156" src="http://3.bp.blogspot.com/-oAggR3E3h0c/UYnyxQs-73I/AAAAAAAAA5g/TfEOcfx8TiM/s640/demo_ascx.png" width="640" /></a></div><br />Now add new module feature in the project. Right click on project and add new item<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-xiZxxm6p4aM/UYn0H-chpqI/AAAAAAAAA5o/iGOEvktV_UM/s1600/createModule.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="390" src="http://1.bp.blogspot.com/-xiZxxm6p4aM/UYn0H-chpqI/AAAAAAAAA5o/iGOEvktV_UM/s640/createModule.png" width="640" /></a></div><br /><br />Now delete sample.txt file from module and add aspx page. Right click on module and add new item<br />Select Text file template from General section and name it as MyPage<b>.aspx</b>.<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-IeqB5x8vgGI/UYn1O8-z6xI/AAAAAAAAA54/wg0guhzSUQ4/s1600/AddMypageASPX.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="390" src="http://4.bp.blogspot.com/-IeqB5x8vgGI/UYn1O8-z6xI/AAAAAAAAA54/wg0guhzSUQ4/s640/AddMypageASPX.png" width="640" /></a></div><br />Same as above, add new class file for aspx page<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-xUUp7Ig7kcs/UYn2FaRJwEI/AAAAAAAAA6E/fE1ShluCKWs/s1600/ASPXclass.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="390" src="http://3.bp.blogspot.com/-xUUp7Ig7kcs/UYn2FaRJwEI/AAAAAAAAA6E/fE1ShluCKWs/s640/ASPXclass.png" width="640" /></a></div><br />Solution Explorer window will be like this<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-4STUpLbYL3U/UYn2osdFSgI/AAAAAAAAA6M/cAv02rFJ-Z0/s1600/solutionExplorer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-4STUpLbYL3U/UYn2osdFSgI/AAAAAAAAA6M/cAv02rFJ-Z0/s320/solutionExplorer.png" width="224" /></a></div><br />Open MyPage.ASPX page and paste following lines, registered SharePoint required assemblies and Project assemblies<br /><br /><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Assembly</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="$SharePoint.Project.AssemblyFullName$"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Import</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Namespace</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint.ApplicationPages"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Register</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Tagprefix</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="SharePoint"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Namespace</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint.WebControls"</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Assembly</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PublicKeyToken=71e9bce111e9429c"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Register</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Tagprefix</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="asp"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Namespace</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="System.Web.UI"</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Assembly</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PublicKeyToken=31bf3856ad364e35"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Register</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Tagprefix</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Utilities"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Namespace</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint.Utilities"</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Assembly</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PublicKeyToken=71e9bce111e9429c"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Import</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Namespace</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Assembly</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral,</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PublicKeyToken=71e9bce111e9429c"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Register</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Tagprefix</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="WebPartPages"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Namespace</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint.WebPartPages"</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Assembly</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PublicKeyToken=71e9bce111e9429c"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&lt;%</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">@</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Page</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Language</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="C#"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">AutoEventWireup</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="true"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">CodeBehind</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="MyPage.aspx.cs"</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Inherits</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="MyWebPartPages.MyPage"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">masterpagefile</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="~masterurl/default.master"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;<span style="background: yellow;">%&gt;</span></span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&lt;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">asp</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">:</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Content</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">ID</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="Main"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">ContentPlaceHolderID</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="PlaceHolderMain"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">runat</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="server"&gt;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&lt;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">WebPartPages</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">:</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">WebPartZone</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">runat</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="server"</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: red; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">ID</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">="myWebpartZone"&gt;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&lt;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">ZoneTemplate</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&gt;&lt;/</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">ZoneTemplate</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&gt;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&lt;/</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">WebPartPages</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">:</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">WebPartZone</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&gt;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&lt;/</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">asp</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">:</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">Content</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">&gt;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table></div><br /><br />Then open MyPage.aspx.cs class file and paste following lines<br /><br /><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">using</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;System;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">using</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;System.Collections.Generic;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">using</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;System.Linq;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">using</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;System.Text;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">using</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;Microsoft.SharePoint.WebPartPages;</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">namespace</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;MyWebPartPages</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">{</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp; &nbsp;&nbsp;</span><span style="font-family: Consolas; font-size: x-small;">public partial&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">class</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">MyPage</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;:&nbsp;</span><b><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">WebPartPage</span></b></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; {</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">protected</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">void</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;Page_Load(</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">object</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;sender,&nbsp;</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">EventArgs</span><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;e)</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; }</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="font-family: Consolas; font-size: 9.5pt;">}</span><span style="font-family: 'Times New Roman', serif; font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table></div>Make sure that page inherits from&nbsp;<span style="color: #2b91af; font-family: Consolas; font-size: 13px;">WebPartPage</span><br /><br />Next step is to embed visual webpart with the webpart page. For that open Module's Elements.xml file and update it as follow<br /><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;?</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">xml</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">version</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">1.0</span>"<span style="color: blue;"> </span><span style="color: red;">encoding</span><span style="color: blue;">=</span>"<span style="color: blue;">utf-8</span>"<span style="color: blue;">?&gt;</span><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Elements</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">xmlns</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">http://schemas.microsoft.com/sharepoint/</span>"<span style="color: blue;">&gt;</span><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: x-small;">&nbsp;&lt;Module Name="MyWebpartPage" Url="SitePages"&gt;</span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: x-small;">&nbsp; &lt;File Path="MyWebpartPage\MyPage.aspx" Url="MyPage.aspx"</span></div><br /><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">GhostableInLibrary</span>"<span style="color: blue;"> </span><span style="color: red;">IgnoreIfAlreadyExists</span><span style="color: blue;">=</span>"<span style="color: blue;">FALSE</span>"<span style="color: blue;">&gt;</span><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AllUsersWebPart</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">WebPartOrder</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> =</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">0</span>"<span style="color: blue;"> </span><span style="color: red;">WebPartZoneID</span><span style="color: blue;"> =</span>"<span style="color: blue;">myWebpartZone</span>"<span style="color: blue;">&gt;</span><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;![CDATA[</span><span style="color: grey; font-family: Consolas; font-size: 9.5pt;"> </span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;webParts&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;metaData&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;type name="MyWebPartPages.MyVisualWebPart.MyVisualWebPart, $SharePoint.Project.AssemblyFullName$" /&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;importErrorMessage&gt;Cannot import this Web Part.&lt;/importErrorMessage&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/metaData&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;data&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;properties&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="Title" type="string"&gt;MyVisualWebPart&lt;/property&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name="Description" type="string"&gt;MyVisualWebPart&lt;/property&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/properties&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/data&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/webPart&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/webParts&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: grey; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">]]&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">AllUsersWebPart</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">File</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Module</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Elements</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table><br />Build and deploy the solution and open "Site Pages" &nbsp;library.<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-XsNj6XCg8Kk/UYoQ0fycogI/AAAAAAAAA6c/kwiw_qwJUnM/s1600/SitePages.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-XsNj6XCg8Kk/UYoQ0fycogI/AAAAAAAAA6c/kwiw_qwJUnM/s1600/SitePages.png" /></a></div><br /><br />Click on MyPage file and you will see the output webpart page<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-Ll1H_CXS7E4/UYoRN1eRhhI/AAAAAAAAA6k/uE0xOASZXqQ/s1600/webpartpage.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="304" src="http://2.bp.blogspot.com/-Ll1H_CXS7E4/UYoRN1eRhhI/AAAAAAAAA6k/uE0xOASZXqQ/s640/webpartpage.png" width="640" /></a></div><br /><br /><br /></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/w1I-q5cQHco" height="1" width="1"/>Niteen Badgujarhttps://plus.google.com/110139185489671144399noreply@blogger.com0http://www.niteenbadgujar.com/2013/05/deploy-visual-webpart-embedded-page.htmltag:blogger.com,1999:blog-1987188894506575386.post-27432167415218135192012-12-06T19:25:00.001+05:302012-12-06T19:40:55.265+05:30SharePoint Online: Get web full url<div dir="ltr" style="text-align: left;" trbidi="on"><br /><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">Sometimes you need to get full url of current web. following is the short method which will return you full web url.<o:p></o:p></span><br /><br /><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;">public</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> </span></span><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;">string</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> getWebFullUrl(</span></span><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;"><span style="color: #2b91af; font-family: Consolas;">Web</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> web)</span></span><br /><span style="font-family: Consolas;"><span style="font-family: Consolas;">{</span>&nbsp;</span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> </span></span><br /><br /><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;">string</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> webTitle = web.ServerRelativeUrl.Substring(web.ServerRelativeUrl.LastIndexOf(</span></span><span style="color: #a31515; font-family: Consolas;"><span style="color: #a31515; font-family: Consolas;"><span style="color: #a31515; font-family: Consolas;">"/"</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">) + 1);</span></span><br /><span style="font-family: Consolas;"><span style="font-family: Consolas;"> </span></span><br /><span style="font-family: Consolas;"><span style="font-family: Consolas;"> </span></span><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;"><span style="color: blue; font-family: Consolas;">return</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;"> web.Context.Url + webTitle + </span></span><span style="color: #a31515; font-family: Consolas;"><span style="color: #a31515; font-family: Consolas;"><span style="color: #a31515; font-family: Consolas;">"/"</span></span></span><span style="font-family: Consolas;"><span style="font-family: Consolas;">;</span></span><br /><span style="font-family: Consolas;"><span style="font-family: Consolas;"><br />}</span></span><br /><br /><br /><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">Remember </span><span style="font-family: Consolas; font-size: 10pt; mso-bidi-font-family: &quot;Times New Roman&quot;;">web.ServerRelativeUrl</span><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &quot;Times New Roman&quot;; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"> will return only relative url, as show in following table:<o:p></o:p></span><br /> <br /><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: currentColor; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed; mso-yfti-tbllook: 1184;"> <tbody><tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"> <td style="background-color: transparent; border: 1pt solid windowtext; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 144.9pt;" valign="top" width="193"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri;">Site Collection URL<o:p></o:p></span></b></div></td> <td style="background-color: transparent; border-color: windowtext windowtext windowtext rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 196.05pt;" valign="top" width="261"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri;">Site URL<o:p></o:p></span></b></div></td> <td style="background-color: transparent; border-color: windowtext windowtext windowtext rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 134.9pt;" valign="top" width="180"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri;">web.ServerRelativeUrl<o:p></o:p></span></b></div></td> </tr><tr style="mso-yfti-irow: 1;"> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 144.9pt;" valign="top" width="193"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">http://MySharepointsite.com</span></div></td> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 196.05pt;" valign="top" width="261"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">http://MySharepointsite.com</span></div></td> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 134.9pt;" valign="top" width="180"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">/</span></div></td> </tr><tr style="mso-yfti-irow: 2;"> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 144.9pt;" valign="top" width="193"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">http://MySharepointsite.com</span></div></td> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 196.05pt;" valign="top" width="261"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">http://MySharepointsite.com/site1</span></div></td> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 134.9pt;" valign="top" width="180"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">/site1</span></div></td> </tr><tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes;"> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 144.9pt;" valign="top" width="193"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">http://MySharepointsite.com</span></div></td> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 196.05pt;" valign="top" width="261"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">http://MySharepointsite.com/sites/site1</span></div></td> <td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt; width: 134.9pt;" valign="top" width="180"> <div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;"><span style="font-family: Calibri;">/sites/site1</span></div></td> </tr></tbody></table></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/SuTbqZe9Buo" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2012/12/get-web-full-url.htmltag:blogger.com,1999:blog-1987188894506575386.post-15076102113059694612012-11-29T19:42:00.002+05:302012-12-07T14:00:39.317+05:30SharePoint 2010: Print List Views Button on Ribbon<div dir="ltr" style="text-align: left;" trbidi="on">After getting lots of emails/replies from my last post&nbsp;<a href="http://prudencesys.blogspot.com/2011/06/sharepoint-2010-print-calendar-list-on.html">SharePoint 2010 : Print Calendar list</a>. I've decided to expand new solution with new functionality where you can add "Print Button" on each type of SharePoint lists, even if it is SharePoint Calendar list,Document libraries, tasks lists or any custom lists.<br />This feature is developed as a Sandbox Solution and successfully tested on SharePoint 2010, O365 SharePoint Online sites.<br /><b>Print Button on Document Libraries Ribbon:</b><br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://lh4.googleusercontent.com/--ZrWvObIayQ/ULhGutp5T1I/AAAAAAAAAdE/oBCZ0mQ5zUk/s699/DocumentLibrary.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://lh4.googleusercontent.com/--ZrWvObIayQ/ULhGutp5T1I/AAAAAAAAAdE/oBCZ0mQ5zUk/s699/DocumentLibrary.png" /></a></div><b>Print Button on Lists Ribbon</b>:<br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://lh4.googleusercontent.com/-D9V7uBP06sI/ULhGuy08YgI/AAAAAAAAAdA/Y-vC7PnZ430/s607/Lists.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="248" src="https://lh4.googleusercontent.com/-D9V7uBP06sI/ULhGuy08YgI/AAAAAAAAAdA/Y-vC7PnZ430/s640/Lists.png" width="640" /></a></div><br /><br /><br /><br /><b>Print Button on Calendar Ribbon:</b><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://lh6.googleusercontent.com/-j5ZdY4Gdrjc/ULhJWPGBGQI/AAAAAAAAAdg/o4XvqRQmVFw/s661/calendar.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://lh6.googleusercontent.com/-j5ZdY4Gdrjc/ULhJWPGBGQI/AAAAAAAAAdg/o4XvqRQmVFw/s661/calendar.png" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><br /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Please have a look at my new codeplex solution to download and install feature in your SharePoint 2010 site.</span><br /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><a href="http://spprintribbonbutton.codeplex.com/" target="_blank">Download Solution from Codeplex</a></span><br /><br /></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/tHjs3JkN8CA" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com1http://www.niteenbadgujar.com/2012/11/print-list-views-button-on-ribbon.htmltag:blogger.com,1999:blog-1987188894506575386.post-85347279277805448862012-01-03T15:13:00.000+05:302013-05-22T11:54:51.761+05:30SharePoint Client Object Model: CAML query execution using pagination<div dir="ltr" style="text-align: left;" trbidi="on"><span style="color: #222222; font-family: Arial, sans-serif; font-size: 10pt;">Below approach is used when user wants to perform pagination based on given parameters. In order to make paging work, you need to get page index and recurring count values from user.<o:p></o:p></span><br /><div style="background: white;"><span style="color: #222222; font-family: Arial, sans-serif; font-size: 10pt;">List Items can be retrive in result and user can specify PageIndex and RecCount values which will be used for resulting certain number of values.</span><br /><span style="color: #222222; font-family: Arial; font-size: x-small;"><span style="color: black; font-family: Times New Roman; font-size: small;"> </span></span><br /><span style="color: #222222; font-family: Arial; font-size: x-small;"></span><br /><div style="background: white;"><span style="color: #222222; font-family: Arial; font-size: x-small;"><span style="color: #222222; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; font-size: 10pt;">If your list is having more than 1 million and user requested only for list items in the rage of 100-200 then it is not good practice to get all list item collection. To avoid to load all list items collection you need to get required list item from CAML and using Paging. The logic is :</span></span></div><br /><div style="background: white;"></div></div><ol style="text-align: left;"><li><span style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 10pt;">Calculate skip value</span></li><li><span style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 10pt;">Assign skip values to </span><span style="background-color: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ListItemCollectionPosition </span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">PagingInfo e.g.&nbsp;</span><span style="font-family: Consolas; font-size: 9.5pt; line-height: 115%;">“</span><span style="color: #222222; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;">Paged=TRUE&amp;p_ID=</span>SKIP_NUMBER”</li><li><span style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 10pt;">Pass </span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">ListItemCollectionPosition</span><span style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 10pt;"> value to CAML query</span></li><li><span style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 10pt;">Apply RowLimit value to CAML query</span></li></ol><br /><span style="color: #222222; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; font-size: 10pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;">Suppose if you are trying to get list items from 100 to 200 then assign PageIndex =2 and recCount =100 into the following method.</span><br /><span style="color: #222222; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; font-size: 10pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;">//Add client </span><br /><div class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">using</span><span style="font-family: Consolas; font-size: 9.5pt;"> SP = Microsoft.SharePoint.Client;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><o:p> </o:p></span></div><div class="MsoNormal" style="margin-bottom: 0pt;"><br /><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">public</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">void</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">getItems(</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">int</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">pageIndex,<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">int</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">recCount)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">SP.</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ClientContext</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">ctx = getClientContext(); //authenticate client context <o:p></o:p></span></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // first</span><span style="font-family: Consolas; font-size: 10pt;">,&nbsp;<u1:p></u1:p>&nbsp;<a href="http://prudencesys.blogspot.com/2011/11/sharepoint-online-subsite.html">Authentication post</a>&nbsp;for more details<o:p></o:p></span></div><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in; text-indent: .5in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">(ctx !=<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">null</span><span style="font-family: Consolas; font-size: 9.5pt;">)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in; text-indent: .5in;"><span style="font-family: Consolas; font-size: 9.5pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">int</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">iSkip = pageIndex * recCount - recCount;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SP.</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">List</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">list = ctx.Web.Lists.GetByTitle(</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Your LIst Name"</span><span style="font-family: Consolas; font-size: 9.5pt;">); // replace with your list name</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ListItemCollectionPosition</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">itemPosition =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ListItemCollectionPosition</span><span style="font-family: Consolas; font-size: 9.5pt;">();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; itemPosition.PagingInfo =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">string</span><span style="font-family: Consolas; font-size: 9.5pt;">.Format(</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Paged=TRUE&amp;p_ID={0}"</span><span style="font-family: Consolas; font-size: 9.5pt;">,iSkip);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">CamlQuery</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">camlQuery =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">CamlQuery</span><span style="font-family: Consolas; font-size: 9.5pt;">();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; camlQuery.ListItemCollectionPosition = itemPosition;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; camlQuery.ViewXml =<span class="apple-converted-space">&nbsp;</span></span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">@"&lt;View&gt;&lt;ViewFields&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FieldRef Name='ID'/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FieldRef Name='Title'/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ViewFields&gt;&lt;RowLimit&gt;"</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">+ recCount +<span class="apple-converted-space">&nbsp;</span></span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">@"&lt;/RowLimit&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/View&gt;"</span><span style="font-family: Consolas; font-size: 9.5pt;">;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in; text-indent: .5in;"><span style="font-family: Consolas; font-size: 9.5pt;">SP.</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ListItemCollection</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">listItems = list.GetItems(camlQuery);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.Load(listItems);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.ExecuteQuery();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">foreach</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">(SP.</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ListItem</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">listItem<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">in</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">listItems)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: green; font-family: Consolas; font-size: 9.5pt;">//Do forward with listItem["ID"].ToString() and&nbsp; listItem["Name"].ToString()</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in; text-indent: .5in;"><span style="font-family: Consolas; font-size: 9.5pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-size: 13.5pt;">}<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table></div><div class="MsoNormal"><o:p></o:p></div><br />Please have a look at <a href="http://prudencesys.blogspot.com/2011/11/sharepoint-online-subsite.html">Authentication post</a> for more details about SharePoint Client object model authentication.</div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/m3_XoB9nqv0" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com6http://www.niteenbadgujar.com/2012/01/sharepoint-client-object-model-caml.htmltag:blogger.com,1999:blog-1987188894506575386.post-18643709049254077002011-12-15T14:47:00.000+05:302013-05-22T11:57:36.698+05:30How to create Calendar recurring event from SharePoint Designer 2010 workflow?<div dir="ltr" style="text-align: left;" trbidi="on"><br />Do you want to create new calendar recurring event from SharePoint workflow? If yes, then you are at correct place. <br />You can easily create simple calendar event (which doesn’t have recurring properties/values), Some days before I was trying to create new recurring event from SPD workflow using “Create Item” action, and found that we can’t create recurring event from SPD workflows because when we’re trying to add new calendar list item from ‘Create Item’ OOB workflow action, at that point we can’t assign the recurring rules values to ‘Recurrence’ column and there is not any available way to pass recurrence rule xml values.<br /><a href="http://lh6.ggpht.com/-5rFCWYLLHuk/Tum2CE_YVOI/AAAAAAAAAAo/MQjgYtJ9Rjs/s1600-h/SPD_WF%25255B6%25255D.jpg"><img alt="SPD_WF" border="0" height="426" src="http://lh3.ggpht.com/-_ijpQWvfzEQ/Tum2DATBhsI/AAAAAAAAAAs/w8LF_v6pKro/SPD_WF_thumb%25255B2%25255D.jpg?imgmax=800" style="background-image: none; border-bottom-color: initial; border-bottom-style: initial; border-bottom-width: 0px; border-left-color: initial; border-left-style: initial; border-left-width: 0px; border-right-color: initial; border-right-style: initial; border-right-width: 0px; border-top-color: initial; border-top-style: initial; border-top-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="SPD_WF" width="462" /></a><br />I found an interesting <a href="http://msdn.microsoft.com/en-us/library/ms434156.aspx">article</a> which creates new calendar event with recurring parameters programatically(<a href="http://msdn.microsoft.com/en-us/library/ms434156.aspx" title="http://msdn.microsoft.com/en-us/library/ms434156.aspx">http://msdn.microsoft.com/en-us/library/ms434156.aspx</a>). But I was looking to create calendar events from SPD workflows and I decided to create workflow custom action to insert new recurring events. If you don’t know how to create custom action for SPD workflows then look at <a href="http://msdn.microsoft.com/en-us/office365trainingcourse_lab_3_2_topic3#_Toc290553044">here</a> (<a href="http://msdn.microsoft.com/en-us/office365trainingcourse_lab_3_2_topic3#_Toc290553044">http://msdn.microsoft.com/en-us/office365trainingcourse_lab_3_2_topic3#_Toc290553044</a>), this is very simple and easier solution to create custom custom actions from VS. You just have to make following changes,<br /><ol><li>Add new class file to the solution for recurring event action (I created as “CreateCalendarRecurrenceEvent.cs”)</li><li>Your ‘Element.xml’ file would be as following,&nbsp;<span class="Apple-style-span" style="color: blue; font-family: Consolas; font-size: 13px;">&nbsp;</span> <div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;?</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">xml</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">version</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">1.0</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">encoding</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">utf-8</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">?&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Elements</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">xmlns</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">http://schemas.microsoft.com/sharepoint/</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">WorkflowActions</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Action</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Create Recurring Event</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">SandboxedFunction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">true</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Assembly</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">$SharePoint.Project.AssemblyFullName$</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">ClassName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">SPDRecurringEventAction.CreateCalendarRecurrenceEvent</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">FunctionName</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">CalendarRecurrenceEvent</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">AppliesTo</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">all</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Category</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">My Custom Workflow Activities</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">RuleDesigner</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Sentence</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Create New calendar recurring event with title : %1 and rule: %2 (Exception to %3)</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">FieldBind</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Id</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">1</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Field</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">eventTitle</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Text</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Event Name</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">TextBox</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">FieldBind</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Id</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">2</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Field</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">recurrenceRule</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Text</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Recurrence Rule</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">TextBox</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">FieldBind</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Id</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">3</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Field</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Except</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Text</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Exception</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">ParameterNames</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">RuleDesigner</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Parameters</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Parameter</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">__Context</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Microsoft.SharePoint.WorkflowActions.WorkflowContext, Microsoft.SharePoint.WorkflowActions</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Direction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">In</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Hide</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Parameter</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">eventTitle</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">System.String, mscorlib</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Direction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">In</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">TextBox</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Description</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Event Name</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Parameter</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">recurrenceRule</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">System.String, mscorlib</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Direction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">In</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">TextBox</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Description</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Recurrence Rule</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Parameter</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Name</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Except</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Type</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">System.String, mscorlib</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Direction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Out</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">DesignerType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">ParameterNames</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span class="apple-converted-space"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Description</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">Exception encountered</span><span style="font-family: Consolas; font-size: 9.5pt;">"</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">/&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Parameters</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Action</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp; &lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">WorkflowActions</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;/</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Elements</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table></div><div class="MsoNormal"><br /></div></li><li>In your new class add following method to create new recurring event.</li></ol><div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">class</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">CreateCalendarRecurrenceEvent</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">public</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Hashtable</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">CalendarRecurrenceEvent(</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">SPUserCodeWorkflowContext</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">context,<span class="apple-converted-space">&nbsp;</span></span><br /><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">string</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">eventTitle,<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">string</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">recurrenceRule)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Hashtable</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">results =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Hashtable</span><span style="font-family: Consolas; font-size: 9.5pt;">();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">int</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">iYear = 0, iMonth = 0, iDay = 0;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; results[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Except"</span><span style="font-family: Consolas; font-size: 9.5pt;">] =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">string</span><span style="font-family: Consolas; font-size: 9.5pt;">.Empty;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">try</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">using</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">(</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">SPSite</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">site =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">SPSite</span><span style="font-family: Consolas; font-size: 9.5pt;">(context.CurrentWebUrl))</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">using</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">(</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">SPWeb</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">web = site.OpenWeb())</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iYear =<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">DateTime</span><span style="font-family: Consolas; font-size: 9.5pt;">.Now.Year; iMonth =<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">DateTime</span><span style="font-family: Consolas; font-size: 9.5pt;">.Now.Month; iDay =<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">DateTime</span><span style="font-family: Consolas; font-size: 9.5pt;">.Now.Day;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">DateTime</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">startTime =<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">DateTime</span><span style="font-family: Consolas; font-size: 9.5pt;">(iYear, iMonth, iDay, 8, 0, 0);<span class="apple-converted-space">&nbsp;</span></span><span style="color: green; font-family: Consolas; font-size: 9.5pt;">//</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">DateTime</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">endTime = startTime.AddHours(6);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">SPList</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">cal = web.Lists[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Calendar"</span><span style="font-family: Consolas; font-size: 9.5pt;">];</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">SPListItem</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">calEvent = cal.Items.Add();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Title"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = eventTitle;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"RecurrenceData"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = recurrenceRule;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"EventType"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = 1;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"EventDate"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = startTime;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"EndDate"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = endTime;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"UID"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = System.</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Guid</span><span style="font-family: Consolas; font-size: 9.5pt;">.NewGuid();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Recurrence"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = 1;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calEvent.Update();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="apple-converted-space">&nbsp;</span></span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">catch</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">(</span><span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Exception</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">ex)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; results[</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Except"</span><span style="font-family: Consolas; font-size: 9.5pt;">] = ex.ToString();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">return</span><span class="apple-converted-space"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;</span></span><span style="font-family: Consolas; font-size: 9.5pt;">results;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><u1:p></u1:p> <br /><div style="margin-bottom: .0001pt; margin: 0in;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div><div style="margin-bottom: .0001pt; margin: 0in;"><br /></div></td> </tr></tbody></table></div><div class="MsoNormal"><br /></div><div class="MsoNormal"><o:p>(NOTE: I have used default calendar list to create new recurring event, if you want to create recurring event in another calendar list then change '</o:p><span class="Apple-style-span" style="color: #a31515; font-family: Consolas; font-size: 13px;">Calendar</span>' list name.</div><div class="MsoNormal">)</div></div><div><div class="MsoNormal" style="margin-bottom: 0in;"></div></div><div>Build and deploy action and follow the steps given at &nbsp;<a href="http://msdn.microsoft.com/en-us/office365trainingcourse_lab_3_2_topic3#_Toc290553044">http://msdn.microsoft.com/en-us/office365trainingcourse_lab_3_2_topic3#_Toc290553044</a></div><div><br /></div><div>In SharePoint Designer workflow, add your custom activity, assign Name and Recurrence Rule pattern as in XML format. You can check more recurrence patterns from <a href="http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?PageType=4&amp;ListId={72C1C85B-1D2D-4A4A-90DE-CA74A7808184}&amp;pID=761">Here</a>.</div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-LUQM83qRT1A/Tum5AGIu-kI/AAAAAAAAABI/UmFCRfmLZoA/s1600/SPDaction.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-LUQM83qRT1A/Tum5AGIu-kI/AAAAAAAAABI/UmFCRfmLZoA/s1600/SPDaction.jpg" /></a></div><div><blockquote class="tr_bq">(NOTE : &nbsp;Rule value must be in single line text, I have used as "&nbsp;<span class="Apple-style-span" style="font-family: Consolas;">&lt;recurrence&gt;&lt;rule&gt;&lt;firstDayOfWeek&gt;su&lt;/firstDayOfWeek&gt;&lt;repeat&gt;&lt;daily dayFrequency='2' /&gt;&lt;/repeat&gt;&lt;windowEnd&gt;2011-12-30T09:00:00Z&lt;/windowEnd&gt;&lt;/rule&gt;&lt;/recurrence&gt;</span></blockquote></div><div>&nbsp;&nbsp;")<br /><br /><br />I have created SPD custom activity solution on Codeplex, you can download actual project solution&nbsp;<a href="http://spdcustomaction.codeplex.com/releases/view/78835">from here</a>&nbsp;(http://spdcustomaction.codeplex.com/releases/view/78835)<br /><div><br /></div></div><div>Enjoy custom activity to create new recurring events from SharePoint Designer workflow.</div><div><br /><br /></div><div><br /></div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/E_11afsKEZQ" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com3http://www.niteenbadgujar.com/2011/12/how-to-create-calendar-recurring-event.htmltag:blogger.com,1999:blog-1987188894506575386.post-33343844914058886262011-11-16T01:06:00.000+05:302011-11-19T10:44:33.291+05:30SharePoint online SUBSITE authentication using client object model :<div dir="ltr" style="text-align: left;" trbidi="on"><div style="font-family: inherit;"><span style="font-size: 1pt;"></span> </div><div class="MsoNormal" style="font-family: inherit;">Are you looking for the perfect solution to authenticate and get data from SharePoint online subsite 2010 (SPO) using client object model?</div><div class="MsoNormal" style="font-family: inherit;">You can find following sample projects to connect authenticate SharePoint online site content using client object model,</div><ul style="text-align: left;"><li>·<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> </b></span><b><a href="http://msdn.microsoft.com/en-us/library/hh147177.aspx">Remote Authentication in SharePoint Online Using Claims-Based Authentication</a> </b>(http://msdn.microsoft.com/en-us/library/hh147177.aspx)</li></ul><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit; text-align: left;">This article has given brief overview of claims-based authentication and client object model for remote authentication in SharePoint Online. You can download sample code which demonstrates technique of adding SharePoint authentication cookies to the ClientContext object. Solution prompted a dialog window where user have to enter their Office 365 credentials, use the same cookies to the SharePoint client side object model (CSOM) to get SharePoint site content.</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;"><br /></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;">But what should I do when I don’t want to show prompt form to enter user details, because I am accessing sharepoint content in Azure site. So I started to check the solution where I can provide user credentials from the code.</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;"><br /></div><ul style="text-align: left;"><li>·<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> </b></span><b><a href="http://blogs.msdn.com/b/cjohnson/archive/2011/05/14/part-2-headless-authentication-with-sharepoint-online-and-the-client-side-object-model.aspx">“Headless” Authentication with SharePoint Online and the Client Side Object Model</a></b> (http://blogs.msdn.com/b/cjohnson/archive/2011/05/14/part-2-headless-authentication-with-sharepoint-online-and-the-client-side-object-model.aspx)</li></ul><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;">This sample queries the Office 365 STS directly using the Windows Identity Foundation (WIF).&nbsp; WIF helps with managing the security tokens and requests to the STS.&nbsp; </div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;"><br /></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;">Great! This is what exactly I was looking for, it is very good solution.</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;">Project executable solution works fine with the root site. I was trying to query for SharePoint online subsite using the same code but giving <b style="mso-bidi-font-weight: normal;"><u>(404) NOT Found error </u></b><u>for Subsites</u>. When I debugged the code, found following line</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;"><br /></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit; text-indent: 0.5in;"><span style="background: none repeat scroll 0% 0% yellow;">Wreply = samlUri.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"</span></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;"><br /></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;">For root site it gets the correct reference like <a href="https://site/_forms/default.aspx?wa=wsignin1.0">https://site/_forms/default.aspx?wa=wsignin1.0</a> and if you used same code to query SharePoint subsite it will give you (404) Not Found because if you try to browse <a href="https://site/subsite/_forms/default.aspx?wa=wsignin1.0">https://site/subsite/_forms/default.aspx?wa=wsignin1.0</a>&nbsp; browser will show 404 not found error.</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;"><br /></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit;">Conclusion:<br />Make following changes on ‘MsOnlineClaimsHelper.cs’ file,</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit; margin-left: 0.75in; text-indent: -0.25in;">-<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Find following line in CS file, <br />Wreply = _samlUrl &nbsp;+ "/_forms/default.aspx?wa=wsignin1.0"</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit; margin-left: 0.75in; text-indent: -0.25in;"><br /></div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit; margin-left: 0.75in; text-indent: -0.25in;">-<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Update same file with following changes</div><div class="MsoListParagraphCxSpMiddle" style="font-family: inherit; margin-left: 0.75in;"><br /></div><blockquote class="tr_bq" style="font-family: &quot;Courier New&quot;,Courier,monospace;"><div class="MsoListParagraphCxSpMiddle" style="margin-left: 1.5in;">Uri samlUri &nbsp;= new Uri(_samlUrl);</div><div class="MsoListParagraphCxSpMiddle" style="margin-left: 1.5in;">var sharepointSite = new</div><div class="MsoListParagraphCxSpMiddle" style="margin-left: 1.25in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</div><div class="MsoListParagraphCxSpMiddle" style="margin-left: 1.25in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wctx = office365Login,</div><div class="MsoListParagraphCxSpMiddle" style="margin-left: 1.25in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wreply = samlUri.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"</div><div class="MsoListParagraphCxSpLast" style="margin-left: 1.25in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</div></blockquote><div class="MsoNormal" style="font-family: inherit;"><br /></div><div class="MsoNormal" style="font-family: inherit;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Above changes works for me! Let me know if you want any more information.</div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/pSqZlK585DA" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com3http://www.niteenbadgujar.com/2011/11/sharepoint-online-subsite.htmltag:blogger.com,1999:blog-1987188894506575386.post-90404271353365194702011-06-27T16:41:00.000+05:302012-11-29T18:39:28.084+05:30SharePoint 2010 : Print Calendar list on a single click<div dir="ltr" style="text-align: left;" trbidi="on">Do you want to print SharePoint 2010 list at a single click?<br />Yes, now you can print your SharePoint 2010 list in single click using SPPrintListButton solution.<br />I have provided Sandbox solution which will add new "Print" button on the top ribbon for SharePoint List. As of now I have created for Calendar lists. <br /><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody><tr><td style="text-align: center;"><a href="http://2.bp.blogspot.com/-bZ2Jk_h5Afs/TghkOpV8qcI/AAAAAAAAAUU/o11lRFMjpjs/printbutton.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://2.bp.blogspot.com/-bZ2Jk_h5Afs/TghkOpV8qcI/AAAAAAAAAUU/o11lRFMjpjs/printbutton.png" /></a></td></tr><tr><td class="tr-caption" style="text-align: center;">Print List Button</td></tr></tbody></table><div class="separator" style="clear: both; text-align: center;"></div><br /><br /><div style="text-align: left;">Please have a look at my codeplex solution to download and install feature in your SharePoint 2010 list.</div><div style="text-align: left;">CodePlex Solution: <a href="http://spprintlistbutton.codeplex.com/">Download From CodePlex</a> <br /><span style="color: red;"><br /></span><span style="color: red;">Important Update:</span>&nbsp;<span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.016666412353516px;">&nbsp;After lots of print button image view error requests, u</span><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.016666412353516px;">pdated solution to work with subsites calendar lists. Please visit at same CodePlex page to download updated version.</span><br /><span style="color: #253340; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.016666412353516px;">And let me know if you get previous error again.</span><br />.</div><div style="text-align: left;"><br /></div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/D3EIe4MwQN4" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com31http://www.niteenbadgujar.com/2011/06/sharepoint-2010-print-calendar-list-on.htmltag:blogger.com,1999:blog-1987188894506575386.post-60935907268006190792011-06-09T21:06:00.000+05:302011-07-09T16:13:20.348+05:30SharePoint 2010 : how to open Modal Dialog in ECB Menu<div dir="ltr" style="text-align: left;" trbidi="on"><div class="MsoNormal">You can open model dialog in SharePoint site using the following code:</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt;">script</span><span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: red;">type</span><span style="color: blue;">="text/javascript"&gt;</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="font-family: Consolas; font-size: 9.5pt;"> openDialog() { </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> options = { </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: <span style="color: maroon;">"demopage.aspx"</span>,&nbsp; </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 600, </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 300, </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: <span style="color: maroon;">"My PopUp"</span>,</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp; }; </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp; SP.UI.ModalDialog.showModalDialog(options); </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;}</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span>/<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="color: maroon; font-family: Consolas; font-size: 9.5pt;">script</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span><span style="color: maroon; font-family: Consolas; font-size: 9.5pt;">div</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">&lt;</span><span style="color: maroon;">a</span>&nbsp; <span style="color: red;">onclick</span><span style="color: blue;">="javascript:openDialog(); return false;"&gt;</span>Click Here<span style="color: blue;"><span style="color: maroon;">a</span><span style="color: blue;">&gt;</span></span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">&lt;</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">Button</span> <span style="color: red;">ID</span><span style="color: blue;">="btnDialog"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Open Dialog"</span>&nbsp; <span style="color: red;">OnClientClick</span><span style="color: blue;">="javascript:openDialog(); return false;"/&gt;</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span>/<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="color: maroon; font-family: Consolas; font-size: 9.5pt;">div</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span></span></div><div class="MsoNormal"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">But what if you want to open dialog from ECB menu? Create new custom action in Element.xml file and in <span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">UrlAction</span> tag use the following javascript function.</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Elements</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">xmlns</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">http://schemas.microsoft.com/sharepoint/</span>"<span style="color: blue;">&gt;&nbsp; </span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">CustomAction</span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Id</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">{B0B5A0CB-7FBE-4dd6-9B2A-2B1E1321B8F9}</span>"</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">RegistrationType</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">List</span>"</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">RegistrationId</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">101</span>"</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Location</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">EditControlBlock</span>"</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Title</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">Goto My Blog</span>"<span style="color: blue;">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">UrlAction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Url</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">javascript: function onClose(){ } </span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var o = { </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: 'http://www.niteen.co.cc', </span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: 'MyBlog', </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allowMaximize: true, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showClose: true, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 700, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 500, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dialogReturnValueCallback: onClose </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }; </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SP.UI.ModalDialog.showModalDialog(o);</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">/&gt;</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; </span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span>/<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">CustomAction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;&nbsp; </span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span>/<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">Elements</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&gt;</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">In above code, I created new ECB menu for “Document library”, you can create ECB menu for any lists by changing <span style="color: red; font-family: Consolas; font-size: 9.5pt;">RegistrationId</span> , you can find all <a href="http://nitinb4u.blogspot.com/p/sharepoint-registration-ids.html">required Register Id here</a>.</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">If you are not able to see modal dialog then change the &lt;<span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">UrlAction&gt;</span> tag with following function.</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&lt;</span><span style="color: #a31515; font-family: Consolas; font-size: 9.5pt;">UrlAction</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: Consolas; font-size: 9.5pt;">Url</span><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">=</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">javascript:(function () {</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var o = { </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url:'http://www.niteen.co.cc', </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: 'MyBlog', </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allowMaximize: true, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showClose: true, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 700, </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 500</span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }; </span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SP.UI.ModalDialog.showModalDialog(o); }) ();</span><span style="font-family: Consolas; font-size: 9.5pt;">"<span style="color: blue;">/&gt;</span></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br /></div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/mAxhoVZhWjg" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2011/06/sharepoint-2010-how-to-open-modal.htmltag:blogger.com,1999:blog-1987188894506575386.post-14936846619242902912011-02-23T17:51:00.000+05:302011-07-09T16:13:20.348+05:30How to resolve "The language-neutral solution package was not found" error?<div dir="ltr" style="text-align: left;" trbidi="on"><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Many of developers faced with this error while deploying SharePoint solution from Visual Studio.</span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">I tried many different ways to solve this error like</span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Delete the following folders from the project directory(In Visual Studio, Right click on project in "solution explorer" window and select 'Open folder in Windows Explorer' ;) )</span><br /><br /><ul style="text-align: left;"><li><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">bin</span></li><li><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">obj</span></li><li><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">pkg</span></li></ul><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">and then IISRESET (Goto start &gt; Run &gt; and write IISRESET and press ENTER )&nbsp;</span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Sometimes it works but not&nbsp;every time, So what is the another solution to remove this error while deploying?</span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Here is simple tric to resolve this problem.. :)</span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Just open powershell (or Sharepoint management shell) and execute following command,</span><br /><blockquote><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><b>(get-spsolution <i>YourSolution.wsp</i>).Delete()</b></span></blockquote><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br /></span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">that's it.. now you can deploy solution without getting "The language-neutral solution package was not found" error.</span><br /><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="color: red;"><b>*Note:</b></span> Change "YourSolution.wsp" name to your WSP file name.</span><br /><div><br /></div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/G6xsVCfux_Q" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com5http://www.niteenbadgujar.com/2011/02/how-to-resolve-language-neutral.htmltag:blogger.com,1999:blog-1987188894506575386.post-7310948441314410412011-01-29T13:22:00.000+05:302011-07-09T16:13:20.349+05:30Change Sharepoint site home page to Sub-site page<div dir="ltr" style="text-align: left;" trbidi="on"><span xmlns="">Sharepoint 2010 has given top ribbon from where you can change any sharepoint page as home page for current site by "Make this page as Home page"</span><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_Vlp8xv_6kq4/TUPK0A49Q5I/AAAAAAAAAJo/IuULPI7z3xs/s1600/topribbon1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_Vlp8xv_6kq4/TUPK0A49Q5I/AAAAAAAAAJo/IuULPI7z3xs/s1600/topribbon1.png" /></a></div><span xmlns=""><br /><br />But there is one limitation, you cannot assign sub site pages as top site home page.<br /><br />Then how could you do this change? Is there any way to change default home page to the sub-site pages? Even you cannot change default home page from IIS.<br /><br />I googled for this and found another way to change default home page path. You have to change into web.config file of Sharepoint site(you can find web.config by looking at <i>Local_Drive:\Inetpub\wwwroot\port_number </i>or check this blog for more details <a href="http://blog-sharepoint.blogspot.com/2009/12/where-is-sharepoint-webconfig.html">http://blog-sharepoint.blogspot.com/2009/12/where-is-sharepoint-webconfig.html</a> )<br /><br />Edit your site web.config file with following lines (under system.web ) <br /><br /><blockquote>&lt;urlMappings enabled="true"&gt; <br /><br />&lt;add url="~/" mappedUrl="/french/Pages/Default.aspx"/&gt; <br /><br />&lt;/urlMappings&gt;</blockquote><br /><br /><br />Save above changes to web.config file and reset IIS. And now browse for the site, you will see the changes.</span><br /><span xmlns="">you can change default home page in both Sharepoint 2010 and MOSS 2007.<br /></span></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/AdxQi6IloZc" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com1http://www.niteenbadgujar.com/2011/01/change-sharepoint-site-home-page-to-sub.htmltag:blogger.com,1999:blog-1987188894506575386.post-55596688775500258982010-09-30T11:03:00.000+05:302011-07-09T16:13:20.349+05:30SharePoint Manager 2010<span class="Apple-style-span" style="color: #30332d; font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif; font-size: 13px;">The SharePoint Manager 2010 is a SharePoint object model explorer. It enables you to browse every site on the local farm and view every property. It also enables you to change the properties.</span><span class="Apple-style-span" style="color: #30332d; font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif; font-size: 13px;"><br /></span><br /><span class="Apple-style-span" style="color: #30332d; font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif; font-size: 13px;">Really very useful for SP developers and admins!</span><br /><span class="Apple-style-span" style="color: #30332d; font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"><br /></span></span><br /><span class="Apple-style-span" style="color: #30332d; font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;">You can download Sharepoint Manager 2010 from <a href="http://spm.codeplex.com/">Codeplex</a>.</span></span><br /><span class="Apple-style-span" style="color: #30332d; font-family: 'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"><br /></span></span><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/gS66EI1IbUA" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/09/sharepoint-manager-2010.htmltag:blogger.com,1999:blog-1987188894506575386.post-5154945257988597352010-08-25T12:01:00.000+05:302011-07-09T16:13:20.349+05:30How to get approvers user name in workflow?When you assign workflow task to any group and how would you get task approvers user name? Task list can show only 'assigned to' column which will give you group name only.<br />You can fetch approvers user name by creating custom List item event receiver for task list. Create Item updated event receiver and add following code...<br /><br /><pre class="c-sharp" name="code">public override void ItemUpdated(SPItemEventProperties properties)<br />{<br /> base.ItemUpdated(properties);<br /><br /> SPListItem oListItem = properties.ListItem;<br /> oListItem["ApprovedBy1"] = properties.UserDisplayName;<br /> oListItem.Update();<br />}<br /></pre><br />*Note: Create new column for workflow task list. I created new column with '<span class="Apple-style-span" style="font-family: monospace; white-space: pre;">ApprovedBy1</span>' name.<img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/6vasPlp0BVI" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/08/how-to-get-approvers-user-name-in.htmltag:blogger.com,1999:blog-1987188894506575386.post-4258797667543532202010-08-07T16:37:00.000+05:302011-07-09T16:13:20.349+05:30How to Edit User Profile in Sharepoint 2010?If You have to modify user profile information from 'People and Groups' option in Sharepoint site then you can't directly edit user profile information. Even on edit user page you will see only non editable data.<br /><br />User profile information can be change from 2010 central administration site. Follow the steps to modify user profile or user properties.<br /><div><ol><li>Login Central Admin site</li><li>Click on 'Application Management' option menu from left navigation</li><li>In 'Service Application' section, click on 'Manage service applications' link</li><li>From this serviceappliction page, click on 'User Profile Service Application' link</li><li>And then you can see lots of options for people, synchronization, Organizations, My site settings etc etc, </li><li>On same page, under People section click on 'Manage User Profiles' link</li><li>find the user and click on User name from below grid, select 'Edit My Profile' option</li><li>You can change user profile on edit form.</li><li>Click on 'Save and close' button</li></ol><div>By default it could take up to some time to reflect the new updated information througout all web applications bound to the user profile service application. A timer job is taking care of this and you could kick this one of to run manually once by going to "Check Job Status" screen in Central Admin (http://<i style="mso-bidi-font-style:normal">site</i>/_admin/Timer.aspx). </div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/hYnAYeeRDOQ" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com8http://www.niteenbadgujar.com/2010/08/how-to-edit-user-profile-in-sharepoint.htmltag:blogger.com,1999:blog-1987188894506575386.post-51126649381448866852010-07-26T11:30:00.000+05:302011-07-09T16:13:20.349+05:30Sharepoint : How to Edit List Item's Default forms from UI?How we can edit Sharepoint's List Item forms( NewForm.aspx, DispForm.aspx or EditForm.aspx) from UI? By default there is not any option in Site Setting tab to edit form.<br />If you want to edit List Item default forms on UI then there is another way...<br />Just add below line in URL..<br /><span style="font-weight:bold;"> <blockquote>&ToolPaneView=2 </blockquote></span><br /><br />After adding this statement in URL, you can edit page or add new web parts on default list items page.<img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/2F1f99dlO1A" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/07/sharepoint-how-to-edit-list-item.htmltag:blogger.com,1999:blog-1987188894506575386.post-9180435076858400412010-05-18T18:54:00.000+05:302011-07-09T16:13:20.350+05:30Sharepoint 2010: Remove 'All Site Content' and ‘Recycle Bin’ link<div dir="ltr" style="text-align: left;" trbidi="on">You can remove 'All Site Content' and ‘Recycle Bin’ link from sharepoint site by doing some change in master pages. Follow the following steps to remove both links from every pages. <br /><ol><li>Open ‘v4.master’ file from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL (If you have only MOSS then in \12\TEMPLATE\GLOBAL ) or If you are using your custom master page then edit your custom master page.</li><li>Find &lt;/head&gt; , above &lt;/head&gt; add following code</li></ol><br /><pre class="c-sharp" name="code"><style><br />.s4-specialNavLinkList<br />{ <br />display:none !important;<br />}<br /></style><br /></pre><br />Save the changes in file. Now it will affect on every </div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/TwVsepoo9Ds" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com11http://www.niteenbadgujar.com/2010/05/sharepoint-2010-remove-site-content-and.htmltag:blogger.com,1999:blog-1987188894506575386.post-42970199360580989182010-05-03T19:32:00.000+05:302011-07-09T16:13:20.350+05:30Populate all Sharepoint Document Library names which has my custom Content typesToday I populated all document library names which has my custom content type in drop down list control in web part.<div>(So before start further, I am assuming that you have created any document library with custom content type in visual studio 2010.)</div><div>Lets starts with creating simple web part template in VS 2010 and on user control page (in .ascx) add ASP.net dropdown control with name '<i>ddlCategory</i>' </div><div><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span class="Apple-style-span" style="color: rgb(0, 0, 255);font-family:Consolas;" ><span class="Apple-style-span" style=""></span></span></p><span class="Apple-style-span" style="color: rgb(0, 0, 255);font-family:Consolas;" ><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=";font-family:Consolas;font-size:9.5pt;color:blue;" >&lt;</span><span style=";font-family:Consolas;font-size:9.5pt;color:maroon;" >asp</span><span style=";font-family:Consolas;font-size:9.5pt;color:blue;" >:</span><span style=";font-family:Consolas;font-size:9.5pt;color:maroon;" >DropDownList</span><span style=";font-family:Consolas;font-size:9.5pt;" > <span style="color:red;">ID</span><span style="color:blue;">="ddlCategory"</span> <span style="color:red;">runat</span><span style="color:blue;">="server" &gt; &lt;/</span><span style="color:maroon;">asp</span><span style="color:blue;">:</span><span style="color:maroon;">DropDownList</span><span style="color:blue;">&gt;<o:p></o:p></span></span></p></span><p></p></div><div><br /></div><div>and on usercontrol.ascx.cs page, add following function code on '<i>page_load</i>'</div> <pre name="code" class="c-sharp"><br /><br />public void PopulateDocNames()<br />{<br /> ArrayList listWithMyCT = new ArrayList();<br /> using (SPSite objSite = new SPSite("http://YOURSITE:PORT/"))<br /> {<br /> using (SPWeb objWeb = objSite.OpenWeb())<br /> {<br /> foreach (SPList list in objWeb.Lists)<br /> {<br /> if (list is SPDocumentLibrary && list.ContentTypes["Custom_Content_Type"]!= null)<br /> {<br /> listWithMyCT.Add(list.Title);<br /> }<br /> }<br /> }<br /> }<br /> ddlCategory.DataSource = listWithMyCT;<br /> ddlCategory.DataBind();<br />}<br /> <br /> </pre><div>Note: Change <span class="Apple-style-span" style="color: rgb(163, 21, 21);font-family:Consolas;font-size:13px;" ><i><b>YOURSITE:PORT<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal;font-family:Georgia,serif;font-size:16px;" > and <span class="Apple-style-span" style="color: rgb(163, 21, 21);font-family:Consolas;font-size:13px;" ><i><b>Custom_Content_Type<span class="Apple-style-span" style="font-style: normal; font-weight: normal;"><i><b><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal;font-family:Georgia,serif;font-size:16px;" > with your site URL with port and your custom content type name.</span></b></i></span></b></i></span></span></b></i></span></div><div><span class="Apple-style-span" style="color: rgb(163, 21, 21);font-family:Consolas;font-size:13px;" ><i><b><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal;font-family:Georgia,serif;font-size:16px;" ><span class="Apple-style-span" style="color: rgb(163, 21, 21);font-family:Consolas;font-size:13px;" ><i><b><span class="Apple-style-span" style="font-style: normal; font-weight: normal;"><i><b><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal;font-family:Georgia,serif;font-size:16px;" ><br /></span></b></i></span></b></i></span></span></b></i></span></div><div><span class="Apple-style-span" style="color: rgb(163, 21, 21);font-family:Consolas;font-size:13px;" ><i><b><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal;font-family:Georgia,serif;font-size:16px;" ><span class="Apple-style-span" style="color: rgb(163, 21, 21);font-family:Consolas;font-size:13px;" ><i><b><span class="Apple-style-span" style="font-style: normal; font-weight: normal;"><i><b><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-style: normal; font-weight: normal;font-family:Georgia,serif;font-size:16px;" ><br /></span></b></i></span></b></i></span></span></b></i></span></div><div><br /></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/R33XDjHkH9U" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/05/populate-all-sharepoint-document.htmltag:blogger.com,1999:blog-1987188894506575386.post-9400899773236881552010-04-22T19:30:00.000+05:302013-05-22T11:49:56.621+05:30How to insert item in Sharepoint list using javascript and Sharepoint web services<div dir="ltr" style="text-align: left;" trbidi="on"><a href="http://1.bp.blogspot.com/_Vlp8xv_6kq4/S9Be21UbaSI/AAAAAAAAAEY/4I8G9H4cOY0/s1600/code.PNG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"></a><br /><div>We can store insert items in Sharepoint items using many ways like using Sharepoint object model etc. But I need to insert items with Javascript.</div><div>I googled lot but didn't get any useful infomation, only <a href="http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx">Jan tielens' Blog</a> has some infomation which showing list data on page using jQuery.</div><div>Finally I created the solution which stores the text box value in the Sharepoint list on button click. Following steps will show step by step information.</div><div><ul><li>Create the blank web part page in your sharepoint site.</li><li>Browse this web part page</li><li>Edit page by clicking on site action -&gt; Edit page</li><li>In any web part zone, click on 'Add a web part' then add '<span class="Apple-style-span" style="font-family: arial;">Form Web part</span>', Modify this web part.</li><li>Click on source editor button, it will open new window to add your content.</li><li>I added a HTML textarea and button with simple javascript which will store textarea value in given sharepoint list.</li><li>(Before that create new custom list with any name as you wish. I created with name 'Suggestions'</li><li>On source editor, copy and paste following code</li><li><br /><br /><pre class="javascript" name="code"></pre><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"> <tbody><tr> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"> <div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">&lt;</span><span style="background: white; color: maroon; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">script</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">type</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="text/javascript"&gt;</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">function</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> addSuggestion(SuggestionText) {<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">var</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> xmldoc;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">var</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> batch;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">var</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> FeedbackHTTP;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">var</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> ListName = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">'Suggestions'</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: green; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">//The batch variable builds up the XML that we are going to submit to the SharePoint list via the SharePoint web service</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; batch = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"&lt;batch&gt;&lt;method id="'1'" cmd="'New'"&gt;&lt;field name="'Title'"&gt;"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> + SuggestionText + </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"&lt;/field&gt;&lt;/method&gt;&lt;/batch&gt;"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmldoc = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">'&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:envelope xsi="http://www.w3.org/2001/XMLSchema-instance" xsd="http://www.w3.org/2001/XMLSchema" soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soap:body&gt;&lt;updatelistitems xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt;'</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmldoc = xmldoc + </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">'&lt;listname&gt;'</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> + ListName + </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">'&lt;/listname&gt;'</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmldoc = xmldoc + </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">'&lt;updates&gt;'</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> + batch + </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">'&lt;/updates&gt;&lt;/updatelistitems&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;'</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FeedbackHTTP = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> ActiveXObject(</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"MSXML2.XMLHTTP.3.0"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FeedbackHTTP.Open(</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"POST"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"http://YourSiteURL/_vti_bin/Lists.asmx?op=UpdateListItems"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">true</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FeedbackHTTP.setRequestHeader(</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"Content-Type"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"text/xml; charset=utf-8"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FeedbackHTTP.setRequestHeader(</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"SOAPAction"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FeedbackHTTP.Send(xmldoc);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"Thank you! your suggestion has been submitted successfully."</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">&lt;/</span><span style="background: white; color: maroon; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">script</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">&lt;</span><span style="background: white; color: maroon; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">textarea</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">cols</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="15"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">id</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="txtSuggetion"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">rows</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="6"&gt;&lt;/</span><span style="background: white; color: maroon; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">textarea</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">&gt;</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">&lt;</span><span style="background: white; color: maroon; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">input</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">id</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="myButton"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">onclick</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">javascript:addSuggestion(txtSuggetion.value);txtSuggetion.value = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">''</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">;</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">type</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="button"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: red; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">value</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">="Submit"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">/&gt;</span><o:p></o:p></div><div class="MsoNormal" style="margin-bottom: 0.0001pt;"><br /></div></td> </tr></tbody></table><div class="MsoNormal"><br /></div><br /><br /></li><li>(<b><span class="Apple-style-span" style="color: #ff6666;">Note:</span></b> Change <b><i><span class="Apple-style-span" style="font-family: verdana;">YourSiteURL</span></i></b><span class="Apple-style-span" style="font-family: verdana;"> </span>with your site name)</li></ul><div><ul><li>click on save button.</li><li>this will give you text area, insert any comment in text area then click on Submit button.</li><li>Now check your 'Suggestions' list. New item store with textarea value as in title.</li></ul><div><br /></div><div></div></div></div></div><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/ip88iUaurlI" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com3http://www.niteenbadgujar.com/2010/04/how-to-insert-item-in-sharepoint-list.htmltag:blogger.com,1999:blog-1987188894506575386.post-63713767274234124772010-02-27T16:06:00.000+05:302011-07-09T16:13:20.350+05:30Sharepoint Search Control: How to add “All Sites” option in Sharepoint search control?<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:officedocumentsettings> <o:relyonvml/> <o:allowpng/> </o:OfficeDocumentSettings> </xml><![endif]--><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:.5in; mso-add-space:auto; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; mso-style-type:export-only; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-add-space:auto; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; mso-style-type:export-only; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-add-space:auto; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; mso-style-type:export-only; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:.5in; mso-add-space:auto; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:664673030; mso-list-type:hybrid; mso-list-template-ids:-1392635794 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 {mso-level-tab-stop:none; mso-level-number-position:left; text-indent:-.25in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--> <p class="MsoNormal">Today I worked on small task; I need to implement “All Sites” option in search control drop downbox. By default it’s not available in search control dropdown.</p> <p class="MsoNormal">Follow simple steps to add “All Sites” option in Sharepoint Search control:</p> <p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Goto root site and click on Site Setting </p> <p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Click on <b style="">‘Search Settings’</b> from Site Collection Administration section</p> <p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Second radio button option is selected for first time with name as ‘Do not use custom scopes. Display results in the search results page (/_layouts/osssearchresults.aspx).’ This option is for “This Site:” option</p> <p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->First radio button option is “Use custom scopes. Display richer results using the following Search Center:” This option is for custom drop down items like "All sites" and “people” options.</p> <p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->So to display “All Sites” option, we need to have “<b style="">Search Center</b>” team site. This Search Center team site is automatically created within enterprise sharepoint edition; but if you don’t have enterprise version then you need to create Search Center site</p> <p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">6.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->So create new team site by going to root site, select Site Actions -> Create Site , give search site name, URL name like e.g. Search, and select template as Click on Enterprise tab and click on ‘<b style="">Search Center With Tabs</b>’ option. Next click on Create button. It will create new Search Center site.</p> <p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">7.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Once you create this site, copy URL of search site and paste into first radio option text box (as explained in step 4) in search setting option. (e.g. /Search/Pages), click on OK button</p> <p class="MsoNormal" style="margin-left: 0.25in;"><!--[if !supportLists]--><span style=""><span style="">8.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->After that it will give new extra options “All sites” and “People” in search dropdown control.</p><p class="MsoNormal" style="margin-left: 0.25in;">Search anything with “All sites” option, it will return result in http://<i style="">[your_site_name]</i>/_layouts/osssearchresults.aspx page.</p><p class="MsoNormal" style="margin-left: 0.25in;"><br /><br /></p><p class="MsoNormal" style="margin-left: 0.25in;">.<br /><br /></p> <img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/PRRjFEfX_0I" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/02/sharepoint-search-control-how-to-add.htmltag:blogger.com,1999:blog-1987188894506575386.post-11751414376157817232010-02-11T19:29:00.000+05:302011-07-09T16:13:20.351+05:30Silverlight: How to change color style for progress bar?<br /><br /><span style="font-size:100%;">In silverlight we can use progress bar control, but it's default template is with little light colors.</span><br /><br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Vlp8xv_6kq4/S3QO_v06R8I/AAAAAAAAAEA/naSP9MYV4_M/s1600-h/SL_OldControl.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 261px; height: 72px;" src="http://3.bp.blogspot.com/_Vlp8xv_6kq4/S3QO_v06R8I/AAAAAAAAAEA/naSP9MYV4_M/s320/SL_OldControl.jpg" alt="" id="BLOGGER_PHOTO_ID_5436987138475968450" border="0" /></a>in this progress control use forground = "Red" but in this control this color look very lighter than original. So what to do if we want to use original solid html colors?<br /><br />I tried with different methods like using<br /><br /><br /><br />1. <meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--><span style="line-height: 115%;font-family:&quot;;font-size:85%;" >MyAverageBar.Foreground = <span style="color:blue;">new</span> <span style="color: rgb(43, 145, 175);">SolidColorBrush</span>(<span style="color: rgb(43, 145, 175);">Colors</span>.Red);</span> <span style="font-size:85%;"><br /><br />2. </span><meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--><span style="line-height: 115%;font-family:&quot;;font-size:85%;" >MyAverageBar.Foreground = <span style="color:blue;">new</span> <span style="color: rgb(43, 145, 175);">SolidColorBrush</span>(<span style="color: rgb(43, 145, 175);">Color</span>.FromArgb(255,255,0,0));</span><br /><br />but actually its styling problem.<br /><br /><span style="font-weight: bold;font-size:100%;" >How to change default Style of progress bar?</span><span style="font-size:100%;"><br /><br />I changed default style using Microsoft Expression Blend! (Blend is useful in those perpose means we can do this thing in Visual studio also but this is with long process... so blend is easier)<br /><br /></span><span style="font-size:100%;">Follow the following steps:<br /><br /></span><ol><li><span style="font-size:100%;">Open XAML file in Blend!</span></li><li><span style="font-size:100%;">Right click on your progress control bar and select Edit Template > Edit a Copy.</span></li><li><span style="font-size:100%;">It will open new window to allow to create style resource</span></li><li><span style="font-size:100%;">Change 'This document' option from 'Define In' section, click on dropdown and select progress bar control</span></li><li><span style="font-size:100%;">Click on OK</span></li><li><span style="font-size:100%;">Then again click on Progress bar control</span></li><li><span style="font-size:100%;">From properties window click</span><span style="font-weight: bold;font-size:100%;" >Fill</span><span style="font-size:100%;"> style in Brushes section, it will open new menu and then select '</span><span style="font-weight: bold;font-size:100%;" >Reset</span><span style="font-size:100%;">' menu.</span></li><li><span style="font-size:100%;">press Cntr+S (save xaml file)</span></li></ol><span style="font-size:100%;">With this style it will remove default color style<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Vlp8xv_6kq4/S3QTlrGpM6I/AAAAAAAAAEQ/xamEr2Gr3tQ/s1600-h/SL_ChangedStyle.jpg"><img style="cursor: pointer; width: 241px; height: 45px;" src="http://2.bp.blogspot.com/_Vlp8xv_6kq4/S3QTlrGpM6I/AAAAAAAAAEQ/xamEr2Gr3tQ/s320/SL_ChangedStyle.jpg" alt="" id="BLOGGER_PHOTO_ID_5436992188089709474" border="0" /></a><br /><br />Now Progress bar control looks like above.. :)<br /><br /><br /><br /><br /><br /></span><br /><br /><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/Il5LSBwuOqw" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com1http://www.niteenbadgujar.com/2010/02/silverlight-how-to-change-color-style.htmltag:blogger.com,1999:blog-1987188894506575386.post-2143010932659667052010-02-11T19:21:00.000+05:302011-07-09T16:13:20.351+05:30Silverlight: How to use Timer Control?<span style="font-weight: bold;">MainPage.xmal:</span><br /><br /><br /><br />In between <usercontrol> control add following code,<br /><br /><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;"><</span><span style=" Courier New&quot;; color: rgb(163, 21, 21);font-family:&quot;;font-size:10pt;">Grid</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:red;"> x</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">:</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:red;">Name</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">="LayoutRoot"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; color: rgb(163, 21, 21);font-family:&quot;;font-size:10pt;"><span style=""> </span></span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:green;"><!-- TextBlock to show the output of the timer. --><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; color: rgb(163, 21, 21);font-family:&quot;;font-size:10pt;"><span style=""> </span></span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;"><</span><span style=" Courier New&quot;; color: rgb(163, 21, 21);font-family:&quot;;font-size:10pt;">TextBlock</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:red;"> Loaded</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">="StartTimer"</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:red;"> x</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">:</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:red;">Name</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">="myTextBlock" /><o:p></o:p></span></p> <p class="MsoNormal"><span style=" line-height: 115%; Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;"></span><span style=" line-height: 115%; Courier New&quot;; color: rgb(163, 21, 21);font-family:&quot;;font-size:10pt;">Grid</span><span style=" line-height: 115%; Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">></span></p> Right click on <span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">"StartTimer"</span><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:red;"> </span>and select 'Navigate to Event Handler', it will create new event handler method in .cs file. Add following code in xmal.cs file<span style="font-weight: bold;">:<br /><br /><br /><br />MainPage.xmal.cs:<br /><br /></span><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">private</span><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"> <span style="color:blue;">void</span> StartTimer(<span style="color:blue;">object</span> sender, <span style="color: rgb(43, 145, 175);">RoutedEventArgs</span> e)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;">{<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"><span style=""> </span>System.Windows.Threading.<span style="color: rgb(43, 145, 175);">DispatcherTimer</span> newDispatcherTimer = <span style="color:blue;">new</span> System.Windows.Threading.<span style="color: rgb(43, 145, 175);">DispatcherTimer</span>();<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"><span style=""> </span><span style=""> </span>newDispatcherTimer.Interval = <span style="color:blue;">new</span> <span style="color: rgb(43, 145, 175);">TimeSpan</span>(0, 0, 0, 0, 1000); <span style="color:green;">// for 1 seconds <o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"><span style=""> </span>newDispatcherTimer.Tick += <span style="color:blue;">new</span> <span style="color: rgb(43, 145, 175);">EventHandler</span>(Every_Seconds);<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"><span style=""> </span>newDispatcherTimer.Start();<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;">}<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">int</span><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"> iCounter = 0;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:green;">// Retrive after every 1000 millseconds(1seconds) while the DispatcherTimer is active.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;; font-family:&quot;;font-size:10pt;color:blue;">public</span><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;"> <span style="color:blue;">void</span> Every_Seconds(<span style="color:blue;">object</span> o, <span style="color: rgb(43, 145, 175);">EventArgs</span> sender)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;">{<o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-indent: 0.5in; line-height: normal;"><span style=" Courier New&quot;;font-family:&quot;;font-size:10pt;">myTextBlock.Text = <span style="color: rgb(163, 21, 21);">"Second Counter : "</span> + (iCounter++).ToString();<o:p></o:p></span></p> <p class="MsoNormal"><span style=" line-height: 115%; Courier New&quot;;font-family:&quot;;font-size:10pt;">}</span></p><br /><br />Hope this will clear timer concepts in Silverlight!!!<br /><br /><br /><br /><br /><br /><span style="font-weight: bold;"><br /><br /></span></usercontrol><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/02fDESDc1O4" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/02/silverlight-how-to-use-timer-control.htmltag:blogger.com,1999:blog-1987188894506575386.post-23812378499396668912010-02-05T12:48:00.000+05:302011-07-09T16:13:20.351+05:30silverlight:How to read data from excel and genrate charts<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Vlp8xv_6kq4/S2_qSXPueZI/AAAAAAAAAD4/H4BbKJFNMN4/s1600-h/send.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 74px;" src="http://1.bp.blogspot.com/_Vlp8xv_6kq4/S2_qSXPueZI/AAAAAAAAAD4/H4BbKJFNMN4/s320/send.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5435820876457998738" /></a><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/PDIPnzbIgUw" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2010/02/silverlighthow-to-read-data-from-excel.htmltag:blogger.com,1999:blog-1987188894506575386.post-38875580582516125122010-02-02T14:06:00.000+05:302011-07-09T16:13:20.351+05:30Sharepoint: Required Modifications for Podcasting<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cniteenb%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >Podcasting in Sharepoint<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" > <o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" > <o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >From last 15 days I am trying to completing podcasting for my one of subsite. The PKS solution which has provided in codeplex solution is very good but still it’s in beta version(August 2009 Beta version) so it gives lots of problem specially URL referencing problems.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >First time, as for practice demo I just installed on demo root site as suggested in documentation(Installation and Configuration Guide for PKS.docx), its working like charm for root site. After that I was trying to do same things for sub sites of different root site so that I followed Installation and Configuration Guide for PKS on Sub Site.docx file as for reference. But its gives lots of pain &amp; problems to work.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >The main problems I faced for PKS which are not specified anywhere.<o:p></o:p></span></p> <ol><li><span style=";font-family:&quot;;font-size:12pt;" ></span><span style=";font-family:&quot;;font-size:7pt;" ></span><span style=";font-family:&quot;;font-size:12pt;" >Problems to start media encoder service for other port sites.<o:p></o:p></span></li><li><span style=";font-family:&quot;;font-size:12pt;" ></span><span style=";font-family:&quot;;font-size:12pt;" >Changes in leftNav.xml file in PKS for subsite of subsite (In next post I will cover this!)<o:p></o:p></span></li></ol> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" > The main problem was of Media encoder service because in its config file we need to mention only one site at a time, so first time suppose to I installed PKS on <a href="http://sitename:101/" target="_blank"><span style="color:blue;">http://sitename:101</span></a> port and suppose I want to install on different port site so I created new different site with name as <a href="http://sitename:102/" target="_blank"><span style="color:blue;">http://sitename:102</span></a> so need to mention new site name in pks config file(FYI: you can find PKS config file at C:\Program Files\PKS\Media Encoder Service\ MediaEncoderService.exe.config ). So just simply follow the following steps to assign new PKS site name.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >1.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Uninstall the Media Encoder Service<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >2.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Install new Media Encoder Service as per your Expression Encoder version(2 or 3) (Note: its Prerequisites to install Expression Encoder before PKS installation)<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >3.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Follow all step as provided in documentation<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >4.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Update MediaEncoderService.exe.config file and provide new site name.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >5.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Go to list <b>PKS Media Encoder Monitor Locations </b>and delete the entries in it<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >6.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Go to <b>PKS Configuration</b> <b>Settings</b> list on the site:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0.0001pt 1in; line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >a.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Set the MediaEncoder.MonitorPath to you r location of External File Store<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; line-height: normal;"><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >i.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><b><span style=";font-family:&quot;;font-size:12pt;" >Example</span></b><span style=";font-family:&quot;;font-size:12pt;" >:</span><span style="background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;font-family:&quot;;font-size:8pt;color:black;" > </span><span style=";font-family:&quot;;font-size:12pt;" >C:\UploadFiles<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0.0001pt 1in; line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >b.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Set the MediaEncoder.MonitorWeb to root of your PKS site collection<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0.0001pt 1.5in; line-height: normal;"><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >i.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><b><span style=";font-family:&quot;;font-size:12pt;" >Example</span></b><span style=";font-family:&quot;;font-size:12pt;" >: http:// sitename:102<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0.0001pt 1in; line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" > <o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >7.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Go to the <b>PKS Media Encoder Monitor Locations</b> list on the site:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >a.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Click -> <b>New Item</b> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 135pt; line-height: normal;"><span style=";font-family:&quot;;font-size:7pt;" > </span><b><span style=";font-family:&quot;;font-size:12pt;" >i.</span></b><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Update <b>Title</b> - Provide a unique title e.g. My Media Monitor List<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 135pt; line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >Update<b> WebID </b>- you can get this from the <b>Content Rating Configuration Settings</b> , open the SharePoint site collection you have created. Go to <b>Site Actions</b></span><span style=";font-family:Wingdings;font-size:12pt;" >à</span><b><span style=";font-family:&quot;;font-size:12pt;" >View All Site Contents</span></b><span style=";font-family:&quot;;font-size:12pt;" >. Open <b>Content Rating Configuration Settings</b> list under Lists section. There check for entry having value “<b>/<your>/AllItems.aspx</your></b>”. Do not copy the brackets, only the GUId <b>Example</b>:</span><span style="background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;font-family:&quot;;font-size:8pt;color:black;" > </span><span style=";font-family:&quot;;font-size:12pt;" > 7197e193-bd16-4369-b069-300642fece87<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 135pt; line-height: normal;"><span style=";font-family:&quot;;font-size:7pt;" > </span><b><span style=";font-family:&quot;;font-size:12pt;" >ii.</span></b><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >And other information as suggested in documentation.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >8.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >Start Media Encoder service from <b>Run > services.msc</b> <o:p></o:p></span></p> <p class="MsoNormal" style="line-height: normal;"><span style=";font-family:&quot;;font-size:12pt;" >9.</span><span style=";font-family:&quot;;font-size:7pt;" > </span><span style=";font-family:&quot;;font-size:12pt;" >And reset IIS, IISReset<o:p></o:p></span></p> <img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/XCopZtcW-Dc" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com2http://www.niteenbadgujar.com/2010/02/sharepoint-required-modifications-for.htmltag:blogger.com,1999:blog-1987188894506575386.post-42568618556987982922009-12-25T12:20:00.000+05:302011-07-09T16:13:20.351+05:30Sharepoint: How to manage Feature activation dependency?<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Ctanajic%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Ctanajic%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Ctanajic%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="&#45;-"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--> <p class="MsoNormal">In Sharepoint need to manage the dependencies in different features</p> <p class="MsoNormal">For exp: Need to activate Feature A before activation of Feature B, So add below lines in Feature.xml file in Feature B before <span style="font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: blue;">< /</span><span style="font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);"> Feature</span><span style="font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: blue;"> > tag</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">< </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">ActivationDependencies </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><span style=""> </span>< ! --</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;"> Feature A’s ID </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">- - ><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"><span style=""> </span><</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);"> ActivationDependency</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">FeatureId</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">=</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">"<span style="color: blue;">D4000102-848E-4434-A1C5-C60C862F429C</span>" <span style="color: blue;">/ ></span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: blue;">< /</span><span style="font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);"> ActivationDependencies </span><span style="font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;; color: blue;">></span></p> <p class="MsoNormal">Refere feature A’s ID.</p><p class="MsoNormal">(*Please remove spaces in tags..)<br /><br /></p> <img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/xPKi6Or9_EQ" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2009/12/sharepoint-how-to-manage-feature.htmltag:blogger.com,1999:blog-1987188894506575386.post-4853479402575165362009-11-05T19:46:00.000+05:302011-07-09T16:13:20.351+05:30Sharepoint: How to create new custom permission level?<span style="font-size:85%;"><span style="font-family:verdana;">We can create custom permission levels and assign to site users.<br /><br /><span style="font-weight: bold;">How to create new custom permission level?</span><br />1. Goto Site Setting </span><br /><span style="font-family:verdana;">2. Select Advance Permission</span><br /><span style="font-family:verdana;">3. Goto Setting and click on Permission level</span><br /><span style="font-family:verdana;">4. It will open new page, then click on Add a Permission level</span><br /><span style="font-family:verdana;">5. Give Name, description for this new permission level select permissions from list as per your need.</span><br /><span style="font-family:verdana;">6. Click on Create, It will display on permission level page.</span><br /><br /><span style="font-weight: bold;">How to assign this new permission to users?</span><br /></span><span style="font-size:85%;"><span style="font-family:verdana;">1. Goto Site Setting </span><br /><span style="font-family:verdana;">2. Select People and groups<br />3. Click on New Menu and select Add user<br />4. enter user name on people picker box, and select "</span><span style="font-size:100%;"><label for="ctl00_PlaceHolderMain_ctl01_ctl00_RadAddToRole">Give users permission directly</label></span></span><span style="font-size:85%;"><span style="font-family:verdana;">" radio button<br />5. Find </span></span><span style="font-size:85%;"><span style="font-family:verdana;">newly created permission</span> level </span><span style="font-size:85%;"><span style="font-family:verdana;">click on check box to assign </span></span><span style="font-size:85%;">user under this permission<br />6. Click on OK<br /><br /><br /></span><img src="http://feeds.feedburner.com/~r/blogspot/VKStS/~4/P1uzerfE-gY" height="1" width="1"/>Niteenhttp://www.blogger.com/profile/03535271675823323854noreply@blogger.com0http://www.niteenbadgujar.com/2009/11/sharepoint-how-to-create-new-custom.html