<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1440128450924740840</id><updated>2011-11-18T13:29:37.079-08:00</updated><category term='web application'/><category term='SharePoint 2007'/><category term='document library'/><category term='explorer view'/><category term='New form'/><category term='Display form'/><category term='checked out'/><category term='Render Method'/><category term='SharePoint'/><category term='SharePoint 2010'/><category term='allitems.aspx'/><category term='central administration'/><category term='FPRPC'/><category term='Edit form'/><category term='FrontPage'/><title type='text'>Samarendra Swain - SharePoint  Tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-483227049415844024</id><published>2011-11-15T22:47:00.000-08:00</published><updated>2011-11-15T22:47:02.568-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='document library'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint'/><category scheme='http://www.blogger.com/atom/ns#' term='explorer view'/><category scheme='http://www.blogger.com/atom/ns#' term='checked out'/><title type='text'>Avoid checked out issue while drag and drop multiple documents using Explorer View</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoPlainText" style="margin: 0in 0in 0pt;"&gt;&lt;span style="color: navy; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;When multiple files are dragged and dropped into SharePoint using explorer view, all files are shown as checked out in SharePoint even though check-in/check-out are not required on document library. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoPlainText" style="margin: 0in 0in 0pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Solution:&lt;/span&gt;&lt;/b&gt;&lt;span style="color: navy; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt; Enable content type at document library level and make the Title column as optional for the content type document. Then try to upload the multiple documents using explorer view. It will work fine as expected.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-483227049415844024?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/483227049415844024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/11/avoid-checked-out-issue-while-drag-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/483227049415844024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/483227049415844024'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/11/avoid-checked-out-issue-while-drag-and.html' title='Avoid checked out issue while drag and drop multiple documents using Explorer View'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-215951207454959348</id><published>2011-11-09T00:59:00.000-08:00</published><updated>2011-11-09T00:59:04.632-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FPRPC'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><category scheme='http://www.blogger.com/atom/ns#' term='FrontPage'/><category scheme='http://www.blogger.com/atom/ns#' term='explorer view'/><title type='text'>Enable Web folders in SharePoint Explorer View</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-align: justify;"&gt;&lt;u&gt;&lt;span style="color: #17365d; font-family: 'Verdana','sans-serif'; font-size: 8pt; line-height: 115%; mso-themecolor: text2; mso-themeshade: 191;"&gt;Some of the below points you should aware if web folder is not working properly in your SharePoint site.&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -0.25in;"&gt;&lt;span style="color: #1f497d; font-family: Symbol; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol; mso-themecolor: text2;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;img alt="*" height="11px" src="file:///C:/DOCUME~1/ss87613/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.gif" width="11px" /&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;When you try to access an Explorer View page on Windows Server 2003, you will sometimes receive the following error: &lt;i style="mso-bidi-font-style: normal;"&gt;“Explorer View requires Internet Explorer 5.0 or greater and Web Folders.”&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-align: justify;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;This is typically caused by the fact that Windows Server 2003 does not include Web Folders (FPRPC) technology and, by default, the Web Client Service is disabled. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify; text-indent: 0.5in;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;You can resolve this in one of two ways:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-align: justify;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;1. Install Microsoft Office 2003 or FrontPage on the server. Office 2003 and FrontPage install Web Folders components which will then allow you to access the Explorer View using FPRPC.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-align: justify;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;2. Enable the Web Client Service on the server. &lt;/span&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 8pt; line-height: 115%; mso-themecolor: text2;"&gt;(We have tested in our production which did not work out)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -0.25in;"&gt;&lt;span style="color: #1f497d; font-family: Symbol; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol; mso-themecolor: text2;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;img alt="*" height="11px" src="file:///C:/DOCUME~1/ss87613/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.gif" width="11px" /&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;If anybody out there has been building demo machines on Windows Server 2008 or Windows Server 2003 you will have run into this issue at some point. Explorer View does not work on document libraries, nor can you map a network drive to a SharePoint site.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-align: justify;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;Solution: &lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;The server platforms effectively don't like web folder views until you install the fix KB907306. That fixes works for both Windows 2003 and 2008.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in; text-align: justify;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;Now you can happily map a SharePoint site to your network places and use the Windows Explorer to browse the SharePoint sites.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -0.25in;"&gt;&lt;span style="color: #1f497d; font-family: Symbol; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol; mso-themecolor: text2;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;img alt="*" height="11px" src="file:///C:/DOCUME~1/ss87613/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.gif" width="11px" /&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;It does not seem to be the problem with an internet explorer. When you attempt to way in an Explorer View page on Windows 7 then you must receive the following error: “Explorer View requires Internet Explorer 5.0 or greater and Web Folders.” Actually this issue comes when your operating system does not include the Web Folders (FPRPC) technology and this service is disabled by default on client machine. To solve this problem, you just need to install the FrontPage on the server then you may try doing the same thing.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;Reference Link:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"&gt;&lt;a href="http://forums.techarena.in/operating-systems/1367884.htm"&gt;&lt;span style="font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%;"&gt;http://forums.techarena.in/operating-systems/1367884.htm&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"&gt;&lt;a href="http://office.microsoft.com/en-us/windows-sharepoint-services-help/copying-or-moving-sharepoint-document-libraries-HA001154465.aspx"&gt;&lt;span style="font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%;"&gt;http://office.microsoft.com/en-us/windows-sharepoint-services-help/copying-or-moving-sharepoint-document-libraries-HA001154465.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"&gt;&lt;a href="http://mctalex.blogspot.com/2009/05/explorer-view-in-windows-2008-and-2003.html"&gt;&lt;span style="font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%;"&gt;&lt;span style="color: purple;"&gt;http://mctalex.blogspot.com/2009/05/explorer-view-in-windows-2008-and-2003.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=15123"&gt;&lt;span style="font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%;"&gt;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=15123&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #1f497d; font-family: 'Verdana','sans-serif'; font-size: 10pt; line-height: 115%; mso-themecolor: text2;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-215951207454959348?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/215951207454959348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/11/enable-web-folders-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/215951207454959348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/215951207454959348'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/11/enable-web-folders-in-sharepoint.html' title='Enable Web folders in SharePoint Explorer View'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-9046976302294028028</id><published>2011-09-08T23:31:00.000-07:00</published><updated>2011-09-08T23:31:15.201-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Render Method'/><category scheme='http://www.blogger.com/atom/ns#' term='allitems.aspx'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><title type='text'>Tips: Unexpected issue in the out-of-box functionality of SharePoint site</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: black; font-family: Tahoma; font-size: x-small;"&gt;&lt;span dir="ltr" style="font-size: 10pt;"&gt; &lt;div class="divExp" id="divExp"&gt;&lt;div _fallwcm="1" class="bdyItmPrt" id="divBdy"&gt;&lt;div&gt;&lt;div&gt;&lt;div dir="ltr"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;One interesting issue !&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Suppose&amp;nbsp;just before yesterday you checked that your&amp;nbsp;SharePoint site was working fine, but today&amp;nbsp;you start&amp;nbsp;getting unexpected&amp;nbsp;issue in the out-of-box functionality of&amp;nbsp;SharePoint site( like displaying&amp;nbsp;All Items data, Deleting List Item/Library or&amp;nbsp;Creating View etc.), Then you might thought that without any changes how can the issue arise. Yes you&amp;nbsp;are right, but do you&amp;nbsp;regularly verify the content&amp;nbsp;database size of the site collection. Yes, those unexpected error comes whenever the Content DB has no free space to use. Now it's your task to increase the&amp;nbsp;Content DB size.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;I got below error while displaying&amp;nbsp;All Items data for a library.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span style="color: red;"&gt;&amp;lt;---Render Method ----!&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Then I verify the event Viewer where I got the&amp;nbsp;error that&amp;nbsp;TempDB&amp;nbsp;is expecting some space to do the SharePoint transactions(whether displaying data, creating or deleting items etc).&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;-Samarendra swain&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-9046976302294028028?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/9046976302294028028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/09/tips-unexpected-issue-in-out-of-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/9046976302294028028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/9046976302294028028'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/09/tips-unexpected-issue-in-out-of-box.html' title='Tips: Unexpected issue in the out-of-box functionality of SharePoint site'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-6037038387555297889</id><published>2011-04-08T13:05:00.000-07:00</published><updated>2011-04-08T13:27:04.420-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Edit form'/><category scheme='http://www.blogger.com/atom/ns#' term='New form'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='Display form'/><title type='text'>SharePoint 2010 : Display new form, edit form and display form of a list/Library in full page instead of in dialog box.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Go through the below steps to achive the same.&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Open the List/Library.&lt;/li&gt;&lt;li&gt;Go to settings of the list/library.&lt;/li&gt;&lt;li&gt;Go to advanced&amp;nbsp;settings.&lt;/li&gt;&lt;li style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Select 'No'&amp;nbsp;in Dialogs section like below screen shot.&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-uwRQ7DpAmzg/TZ9oCBKI61I/AAAAAAAACc0/01vG0RhW0gE/s1600/dialog.png" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="62" r6="true" src="http://1.bp.blogspot.com/-uwRQ7DpAmzg/TZ9oCBKI61I/AAAAAAAACc0/01vG0RhW0gE/s320/dialog.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Now check the New form, Edit form and Display form for that list/library. You will able to see the forms in full&amp;nbsp;page instead of&amp;nbsp;dialog,&amp;nbsp;like below screen shot.&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-oq_VGNyi6wQ/TZ9qHnGL_iI/AAAAAAAACc4/pssMiIV6LvA/s1600/1.png" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="89" r6="true" src="http://4.bp.blogspot.com/-oq_VGNyi6wQ/TZ9qHnGL_iI/AAAAAAAACc4/pssMiIV6LvA/s320/1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Enjoy !&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-6037038387555297889?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/6037038387555297889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/04/display-new-form-edit-form-and-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6037038387555297889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6037038387555297889'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/04/display-new-form-edit-form-and-display.html' title='SharePoint 2010 : Display new form, edit form and display form of a list/Library in full page instead of in dialog box.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-uwRQ7DpAmzg/TZ9oCBKI61I/AAAAAAAACc0/01vG0RhW0gE/s72-c/dialog.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-3228485203442123109</id><published>2011-02-17T23:20:00.000-08:00</published><updated>2011-02-17T23:20:16.606-08:00</updated><title type='text'>Remove â€™s while exporting excel file using RenderControl method of GridView or DataGrid or DataList control.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="color: #c00000;"&gt;Example:&lt;/span&gt;&lt;span style="color: black;"&gt; ‘Employee’s home’ was coming like ‘Employee&lt;/span&gt;&lt;span style="color: #e36c0a; mso-themecolor: accent6; mso-themeshade: 191;"&gt;â€™s&lt;/span&gt;&lt;span style="color: black;"&gt; home&lt;/span&gt;’ while exporting to excel file where it should come like the original one.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="font-family: Calibri;"&gt;Code Snippet:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: Calibri;"&gt;Function &lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;ExportToExcel( GridView &lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;gv)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: Calibri;"&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;HttpContext.Current.Response.Clear();&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HttpContext.Current.Response.AddHeader(&lt;span style="color: maroon;"&gt;"content-disposition"&lt;/span&gt;, &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Format(&lt;span style="color: maroon;"&gt;"attachment; filename={0}"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Test.xls"&lt;/span&gt;));&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HttpContext.Current.Response.ContentType = &lt;span style="color: maroon;"&gt;"application/ms-excel"&lt;/span&gt;;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;System.IO.&lt;span style="color: teal;"&gt;StringWriter&lt;/span&gt; oStringWriter = &lt;span style="color: blue;"&gt;new&lt;/span&gt; System.IO.&lt;span style="color: teal;"&gt;StringWriter&lt;/span&gt;();&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;System.Web.UI.HtmlTextWriter oHtmlTextWriter = &lt;span style="color: blue;"&gt;new&lt;/span&gt; System.Web.UI.HtmlTextWriter(oStringWriter);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;gv.RenderControl(oHtmlTextWriter);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&amp;nbsp;&lt;span style="color: red;"&gt;&lt;strong&gt;// add the below marked line to fix that issue&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 14pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: #c00000;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt;HttpContext.Current.Response.ContentEncoding = &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #00b050;"&gt;Encoding.GetEncoding("Windows-1252");&lt;/span&gt;&lt;span style="color: #c00000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HttpContext.Current.Response.Write(strHeading + oStringWriter.ToString());&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;HttpContext.Current.Response.End();&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;i style="mso-bidi-font-style: normal;"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%; mso-no-proof: yes;"&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-3228485203442123109?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/3228485203442123109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/02/remove-as-while-exporting-excel-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3228485203442123109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3228485203442123109'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2011/02/remove-as-while-exporting-excel-file.html' title='Remove â€™s while exporting excel file using RenderControl method of GridView or DataGrid or DataList control.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-2213329219113050012</id><published>2010-10-05T08:26:00.000-07:00</published><updated>2010-10-05T08:29:05.501-07:00</updated><title type='text'>Sign-in as different user using windows authentication in SharePoint</title><content type='html'>You can&amp;nbsp;add an hyperlink&amp;nbsp;to your page&amp;nbsp;and&amp;nbsp;href value&amp;nbsp;should be '/_layouts/AccessDenied.aspx?loginasanotheruser=true'. Please see the below example.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;a href='/_layouts/AccessDenied.aspx?loginasanotheruser=true' &amp;gt;Sign in as different user&amp;lt;/a&amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3rnPLdGqyuc/TKtDWloEfFI/AAAAAAAACHk/Q2SpwE6GJMM/s1600/loginWindow.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" px="true" src="http://3.bp.blogspot.com/_3rnPLdGqyuc/TKtDWloEfFI/AAAAAAAACHk/Q2SpwE6GJMM/s400/loginWindow.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;Check it out and let me know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-2213329219113050012?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/2213329219113050012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/10/sign-in-as-different-user-using-windows.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/2213329219113050012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/2213329219113050012'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/10/sign-in-as-different-user-using-windows.html' title='Sign-in as different user using windows authentication in SharePoint'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3rnPLdGqyuc/TKtDWloEfFI/AAAAAAAACHk/Q2SpwE6GJMM/s72-c/loginWindow.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-8877807091415924694</id><published>2010-09-15T08:54:00.000-07:00</published><updated>2010-09-15T08:54:04.794-07:00</updated><title type='text'>How to open a .TIF file in SharePoint site ?</title><content type='html'>&lt;span style="font-family: 'Verdana','sans-serif';"&gt;Normally if you upload a .TIF file to a document library and try to open that, it shows the dialogue box where you will see 'Find' option instead opening the file. For that you have to do some minor setting in your computer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Verdana','sans-serif';"&gt;Step 1: Select any .TIF file and right-click&amp;nbsp;and select&amp;nbsp;'open with' option.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Verdana','sans-serif';"&gt;Step 2: Select Windows&amp;nbsp;Picture and Fax Viewer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Verdana','sans-serif';"&gt;Step 3: Select the checkbox for opening this kind of programs always.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Verdana','sans-serif';"&gt;Step 4: Click OK.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Verdana','sans-serif';"&gt;Step 5: Open that .TIF file from&amp;nbsp;SharePoint site, you can able to see that.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Image:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3rnPLdGqyuc/TJDr5dlGkYI/AAAAAAAACHc/dNGks-oUGuM/s1600/TIF.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="385" qx="true" src="http://2.bp.blogspot.com/_3rnPLdGqyuc/TJDr5dlGkYI/AAAAAAAACHc/dNGks-oUGuM/s640/TIF.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-8877807091415924694?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/8877807091415924694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/09/how-to-open-tif-file-in-sharepoint-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8877807091415924694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8877807091415924694'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/09/how-to-open-tif-file-in-sharepoint-site.html' title='How to open a .TIF file in SharePoint site ?'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3rnPLdGqyuc/TJDr5dlGkYI/AAAAAAAACHc/dNGks-oUGuM/s72-c/TIF.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-4848028528112212865</id><published>2010-08-25T07:36:00.000-07:00</published><updated>2011-04-08T13:28:07.793-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2010'/><title type='text'>Enable rating feature for Document library in SharePoint 2010</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Step 1: Go to the library settings of the document library.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3rnPLdGqyuc/THUpesrFk6I/AAAAAAAAB7s/NzkIjUTb5aU/s1600/1.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="135" ox="true" src="http://3.bp.blogspot.com/_3rnPLdGqyuc/THUpesrFk6I/AAAAAAAAB7s/NzkIjUTb5aU/s400/1.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 2: Click on 'Rating Settings' link of the document library.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3rnPLdGqyuc/THUpqzQ-spI/AAAAAAAAB70/L04u27wYn7I/s1600/2.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="223" ox="true" src="http://1.bp.blogspot.com/_3rnPLdGqyuc/THUpqzQ-spI/AAAAAAAAB70/L04u27wYn7I/s400/2.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 3: Click 'Yes' to enable rating feature for the document library.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3rnPLdGqyuc/THUqD2fIocI/AAAAAAAAB78/6JBnRIohWz0/s1600/3.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="127" ox="true" src="http://3.bp.blogspot.com/_3rnPLdGqyuc/THUqD2fIocI/AAAAAAAAB78/6JBnRIohWz0/s400/3.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-4848028528112212865?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/4848028528112212865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/08/enable-rating-feature-for-document.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4848028528112212865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4848028528112212865'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/08/enable-rating-feature-for-document.html' title='Enable rating feature for Document library in SharePoint 2010'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3rnPLdGqyuc/THUpesrFk6I/AAAAAAAAB7s/NzkIjUTb5aU/s72-c/1.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-1555809366206071607</id><published>2010-04-20T03:26:00.000-07:00</published><updated>2010-04-20T03:26:11.898-07:00</updated><title type='text'>Template ID of SharePoint Libraries and Lists</title><content type='html'>T-ID Description &lt;br&gt;100 Custom List&lt;br&gt;1200 Administrator tasks list &lt;br&gt;104 Announcements list &lt;br&gt;303 Blog Categories list &lt;br&gt;302 Blog Comments list &lt;br&gt;301 Blog Posts list &lt;br&gt;105 Contacts list &lt;br&gt;120 Custom grid for a list &lt;br&gt;118 Custom Workflow Process &lt;br&gt;130 Data Connection library &lt;br&gt;110 Data sources &lt;br&gt;108 Discussion board &lt;br&gt;101 Document library &lt;br&gt;106 Events list &lt;br&gt;150 Gantt Tasks list &lt;br&gt;100 Generic list &lt;br&gt;1100 Issue tracking &lt;br&gt;103 Links list &lt;br&gt;114 List template gallery &lt;br&gt;116 Master pages gallery &lt;br&gt;201 Meeting Agenda list &lt;br&gt;202 Meeting Attendees list &lt;br&gt;204 Meeting Decisions list &lt;br&gt;207 Meeting Objectives list &lt;br&gt;200 Meeting Series list &lt;br&gt;210 Meeting text box &lt;br&gt;211 Meeting Things To Bring list &lt;br&gt;212 Meeting Workspace Pages list &lt;br&gt;117 No-Code Workflows &lt;br&gt;2002 Personal document library &lt;br&gt;109 Picture library &lt;br&gt;300 Portal Sites list &lt;br&gt;2003 Private document library  &lt;br&gt;111 Site template gallery &lt;br&gt;102 Survey &lt;br&gt;107 Tasks list &lt;br&gt;112 User Information list &lt;br&gt;113 Web Part gallery &lt;br&gt;119 Wiki Page library &lt;br&gt;140 Workflow History &lt;br&gt;115 XML Form library &lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-1555809366206071607?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/1555809366206071607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/04/template-id-of-sharepoint-libraries-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/1555809366206071607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/1555809366206071607'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/04/template-id-of-sharepoint-libraries-and.html' title='Template ID of SharePoint Libraries and Lists'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-9074774821835680157</id><published>2010-04-02T08:09:00.000-07:00</published><updated>2010-04-02T08:09:31.791-07:00</updated><title type='text'>How many Site Groups can you create in a Site Collection ?</title><content type='html'>&lt;a href="http://technet.microsoft.com/en-us/library/cc287790.aspx"&gt;http://technet.microsoft.com/en-us/library/cc287790.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Read very carefully.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-9074774821835680157?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/9074774821835680157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/04/how-many-site-groups-can-you-create-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/9074774821835680157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/9074774821835680157'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/04/how-many-site-groups-can-you-create-in.html' title='How many Site Groups can you create in a Site Collection ?'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-1048737350594578748</id><published>2010-03-30T06:43:00.000-07:00</published><updated>2010-03-30T06:52:09.918-07:00</updated><title type='text'>Breakroleinheritance takes a long time to excute.</title><content type='html'>This&amp;nbsp;is an issue in SharePoint Service Pack 1 and hotfix is available here http://support.microsoft.com/kb/941422 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/941422"&gt;http://support.microsoft.com/kb/941422&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;Or you can upgrade to SharePoint SP 2.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-1048737350594578748?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/1048737350594578748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/03/breakroleinheritance-takes-long-time-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/1048737350594578748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/1048737350594578748'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/03/breakroleinheritance-takes-long-time-to.html' title='Breakroleinheritance takes a long time to excute.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-1803276621607358034</id><published>2010-02-22T06:40:00.000-08:00</published><updated>2010-02-22T06:40:55.421-08:00</updated><title type='text'>70-541: Enumerate list items.[perform enabling permissions]</title><content type='html'>using (SPSite spSite = new SPSite("http://testsite"))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;using (SPWeb objWeb = spSite.OpenWeb())&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SPUser objUser = objWeb.EnsureUser("manuhsolutions\\samarendra");&lt;br /&gt;&lt;br /&gt;SPList objLst = objWeb.Lists["ListName"];&lt;br /&gt;&lt;br /&gt;SPListItem lstItem = objLst.GetItemById(1);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// break inheriting parent permissions for this List.&lt;br /&gt;&lt;br /&gt;lstItem.BreakRoleInheritance(false);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// assign Role to the defined User&lt;br /&gt;&lt;br /&gt;SPRoleDefinitionCollection objWebRoleDefn = objWeb.RoleDefinitions;&lt;br /&gt;&lt;br /&gt;SPRoleAssignment objRoleAssign = new SPRoleAssignment(objUser);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// change the name of the role definition to [Contribute]&lt;br /&gt;&lt;br /&gt;objRoleAssign.RoleDefinitionBindings.Add(objWebRoleDefn["Contribute"]);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;lstItem.RoleAssignments.Add(objRoleAssign);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-1803276621607358034?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/1803276621607358034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-enumerate-list-itemsperform.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/1803276621607358034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/1803276621607358034'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-enumerate-list-itemsperform.html' title='70-541: Enumerate list items.[perform enabling permissions]'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-8519250861731825837</id><published>2010-02-22T06:37:00.001-08:00</published><updated>2011-04-08T13:37:13.072-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><title type='text'>70-541: Change a user's permissions to edit a list.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;using (SPSite spSite = new SPSite("&lt;a href="http://testsite/"&gt;http://testsite/&lt;/a&gt;"))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;using (SPWeb objWeb = spSite.OpenWeb())&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SPUser objUser = objWeb.EnsureUser("manuhsolutions\\samarendra");&lt;br /&gt;&lt;br /&gt;SPList objLst = objWeb.Lists["ListName"];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// break inheriting parent permissions for this List.&lt;br /&gt;&lt;br /&gt;objLst.BreakRoleInheritance(false);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// assign Role to the defined User&lt;br /&gt;&lt;br /&gt;SPRoleDefinitionCollection objWebRoleDefn = objWeb.RoleDefinitions;&lt;br /&gt;&lt;br /&gt;SPRoleAssignment objRoleAssign = new SPRoleAssignment(objUser);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// change the name of the role definition from [Limited Access] to [Full Control]&lt;br /&gt;&lt;br /&gt;objRoleAssign.RoleDefinitionBindings.Add(objWebRoleDefn["Full Control"]);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;objLst.RoleAssignments.Add(objRoleAssign);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-8519250861731825837?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/8519250861731825837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-change-users-permissions-to-edit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8519250861731825837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8519250861731825837'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-change-users-permissions-to-edit.html' title='70-541: Change a user&apos;s permissions to edit a list.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-4117432905699358416</id><published>2010-02-22T06:26:00.000-08:00</published><updated>2010-02-22T06:26:03.787-08:00</updated><title type='text'>70-541: Remove a user from a site group</title><content type='html'>using (SPSite spSite = new SPSite("http://testsite/"))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;using (SPWeb objWeb = spSite.OpenWeb())&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SPUser objUser = objWeb.EnsureUser("manuhsolutions/samarendra");&lt;br /&gt;&lt;br /&gt;SPGroup objGroup = objWeb.SiteGroups["Test Group Name"];&lt;br /&gt;&lt;br /&gt;objGroup.RemoveUser(objUser);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-4117432905699358416?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/4117432905699358416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-remove-user-from-site-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4117432905699358416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4117432905699358416'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-remove-user-from-site-group.html' title='70-541: Remove a user from a site group'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-6462446786856368722</id><published>2010-02-22T06:23:00.000-08:00</published><updated>2010-02-22T06:26:38.748-08:00</updated><title type='text'>70-541: Create a custom SPQuery object.</title><content type='html'>using (SPSite spSite = new SPSite("&lt;a href="http://testsite/"&gt;http://testsite/&lt;/a&gt;"))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;using (SPWeb objWeb = spSite.OpenWeb())&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SPList objList = objWeb.GetList(objWeb.Url + "/Lists/" + "ListName");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SPQuery query = new SPQuery();&lt;br /&gt;&lt;br /&gt;query.RowLimit = 10;&lt;br /&gt;&lt;br /&gt;query.Query = "&amp;lt;Where&amp;gt;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=\"Title\" /&amp;gt;&amp;lt;Value Type=\"Text\"&amp;gt;" + "Samarendra" + "&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&amp;lt;/Where&amp;gt;";&lt;br /&gt;&lt;br /&gt;SPListItemCollection itemColl = objList.GetItems(query);&lt;br /&gt;&lt;br /&gt;if (itemColl.Count &amp;gt; 0)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SPListItem lstItem = itemColl[0];&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-6462446786856368722?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/6462446786856368722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-create-custom-spquery-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6462446786856368722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6462446786856368722'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-create-custom-spquery-object.html' title='70-541: Create a custom SPQuery object.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-9133219088372068027</id><published>2010-02-22T06:16:00.000-08:00</published><updated>2010-02-22T06:26:56.752-08:00</updated><title type='text'>70-541: Add a user to a site group</title><content type='html'>using (SPSite objSite= new SPSite("&lt;a href="http://testsite/"&gt;http://testsite/&lt;/a&gt;"))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;using (SPWeb objWeb = objSite.OpenWeb())&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;SPUser objUser = objWeb.EnsureUser("manuhsolutions\\samarendra");&lt;br /&gt;&lt;br /&gt;SPGroup objGroup = objWeb.SiteGroups["Test Group Name"];&lt;br /&gt;&lt;br /&gt;objGroup.AddUser(objUser); &lt;br /&gt;&amp;nbsp; &lt;br /&gt;} &lt;br /&gt;&amp;nbsp; &lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-9133219088372068027?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/9133219088372068027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-add-user-to-site-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/9133219088372068027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/9133219088372068027'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/70-541-add-user-to-site-group.html' title='70-541: Add a user to a site group'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-3699814869269525675</id><published>2010-02-10T21:44:00.000-08:00</published><updated>2010-02-10T21:44:38.071-08:00</updated><title type='text'>How to increase the size limitation while you save site as template include content in MOSS 2007</title><content type='html'>By using the STSADM command , you can maximize the size limitation while you wish to save site as template include the content.&lt;br /&gt;&lt;br /&gt;command:&lt;br /&gt;&lt;strong&gt;stsadm -o setproperty -pn max-template-document-size -pv 52428800&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;(&lt;strong&gt;52428800&lt;/strong&gt;&amp;nbsp;is in byte format which is equal to 50 Mega Byte)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;enjoy.......&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-3699814869269525675?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/3699814869269525675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/how-to-increase-size-limitation-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3699814869269525675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3699814869269525675'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/how-to-increase-size-limitation-while.html' title='How to increase the size limitation while you save site as template include content in MOSS 2007'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-6668111682292420946</id><published>2010-02-05T05:17:00.000-08:00</published><updated>2010-02-05T05:18:08.297-08:00</updated><title type='text'>Displaying alert message while saving a infopath form.</title><content type='html'>You might have marked that, in each and every&amp;nbsp;infopath form, there are two&amp;nbsp;buttons 'save and close'. There might be requirement for&amp;nbsp;displaying a alert&amp;nbsp;message on the click event of the save button.&lt;br /&gt;&lt;br /&gt;To achive this , open the core.js file from this location \Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\INC and serach &lt;strong&gt;Toolbar.ExecuteAction&lt;/strong&gt; and update the script by looking to the below script.&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;em&gt;Toolbar.ExecuteAction = function(strAction, objEvent)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{if (!BaseControl.CanHandleEvents())&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{return;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;switch(strAction)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{case ("refresh"):&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{if (document.forms[0] != null)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{View_SubmitForm(false , 24, 0, false );}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;break;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;case ("submit"):&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{if (View.PreSubmitActions())&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{EventLog_Add(&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;9,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;null,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;"",&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;"",&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;"",&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;true ,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;false ,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;false ,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;9,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;0);}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;break;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;case ("view"):&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;break;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;case ("save"):&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{EventLog_Add(&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;14,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;null,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;"",&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;false,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;false,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;true ,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;false ,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;false ,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;10,&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;0);&lt;strong&gt;alert('Data Saved Successfully');&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;break;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;case ("saveAs"):&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{EventLog_Add(&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;14,&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-6668111682292420946?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/6668111682292420946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/displaying-alert-message-while-saving.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6668111682292420946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6668111682292420946'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/02/displaying-alert-message-while-saving.html' title='Displaying alert message while saving a infopath form.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-7281027411446387443</id><published>2010-01-21T04:23:00.000-08:00</published><updated>2010-01-21T04:26:03.729-08:00</updated><title type='text'>Renaming the menu items in SharePoint Site Libraries and Lists for a Specific Site</title><content type='html'>In SharePoint document Library/List we find menu items like New, Uploads, Actions and Settings etc. At times there might be requirements to rename these menu items for a specific site. The following Javascript function can be used to achieve the objective. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code snippet shown below can be called from inside the specific SharePoint Page.&lt;br /&gt;&lt;br /&gt;e.g AllItems.aspx page inside a Document Library/List.&lt;br /&gt;&lt;br /&gt;This javascript function needs to be called on Page load event using _spBodyOnLoadFunctionNames.push method.&lt;br /&gt;&lt;br /&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;&lt;br /&gt;&lt;br /&gt;_spBodyOnLoadFunctionNames.push("renameMenuItem('New', 'My New')");&lt;br /&gt;_spBodyOnLoadFunctionNames.push("renameMenuItem('Settings', 'My Settings')");&lt;br /&gt;&lt;br /&gt;function renameMenuItem(oldMenuItemName, newMenuItemName)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;var vAnchorTag;&lt;br /&gt;&lt;br /&gt;var vAllAnchorTags = document.getElementsByTagName('a');&lt;br /&gt;if(oldMenuItemName.length!=0)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;for (var j = 0; j &amp;lt; vAllAnchorTags.length; j++)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;vAnchorTag = vAllAnchorTags[j];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (vAnchorTag.innerText.indexOf(oldMenuItemName)!=-1)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;vAnchorTag.innerText = newMenuItemName;&lt;br /&gt;try&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if(newMenuItemName.length != 0)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;vAnchorTag.parentNode.previousSibling.firstChild.firstChild.alt &lt;br /&gt;&lt;br /&gt;= newMenuItemName;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;vAnchorTag.parentNode.previousSibling.firstChild.firstChild.alt &lt;br /&gt;&lt;br /&gt;= oldMenuItemName;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;catch(err)&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;} // End For&lt;br /&gt;} // End If&lt;br /&gt;}// End Function &lt;br /&gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&lt;br /&gt;Check it out from here: http://www.mindfiresolutions.com/Renaming-the-menu-items-in-SharePoint-Site-Libraries-and-Lists-for-a-Specific-Site-209.php&lt;br /&gt;Try it out and enjoy...&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-7281027411446387443?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/7281027411446387443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/01/renaming-menu-items-in-sharepoint-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7281027411446387443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7281027411446387443'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/01/renaming-menu-items-in-sharepoint-site.html' title='Renaming the menu items in SharePoint Site Libraries and Lists for a Specific Site'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-3818414664038003298</id><published>2010-01-21T04:13:00.000-08:00</published><updated>2010-01-21T04:15:50.613-08:00</updated><title type='text'>Create custom application page in sharepoint 2007</title><content type='html'>/*******************Test.aspx*******************************/&lt;br /&gt;&amp;lt;%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script runat="server"&amp;gt;&lt;br /&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Label1.Text = "Samarendra swain";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected void btnSubmit_onclick(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; this.Label1.Text = "Hi...";&lt;br /&gt;&amp;nbsp;&amp;nbsp; this.txtValue.Text = "click submit";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server"&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;Testing custom application page&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;lt;asp:Label Text="Hello World" runat="server" ID="Label1"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;lt;asp:TextBox runat="server" ID="txtValue"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;&amp;lt;asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_onclick" /&amp;gt;&lt;br /&gt;&lt;br /&gt;copy this test.aspx file in this location &lt;strong&gt;_layouts/Test.aspx&lt;/strong&gt;&lt;br /&gt;run with this url like &lt;strong&gt;&lt;a href="http://testsite/_layouts/Test.aspx"&gt;http://testsite/_layouts/Test.aspx&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&amp;lt;/asp:Content&amp;gt; &lt;br /&gt;/**********************End********************************** /&lt;br /&gt;Try it out and enjoy.............&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-3818414664038003298?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/3818414664038003298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/01/create-custom-application-page-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3818414664038003298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3818414664038003298'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/01/create-custom-application-page-in.html' title='Create custom application page in sharepoint 2007'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-6656255136473262734</id><published>2010-01-21T04:02:00.001-08:00</published><updated>2010-01-21T04:03:41.405-08:00</updated><title type='text'>Create a Custom View for Survey List</title><content type='html'>In SharePoint, custom views are used to display the items in a list/libraries with custom look and feel.Therefore you have to choose a view format like Standard View, Calendar View, Datasheet View or Gantt View  and accordingly you can customize the display style by choosing Filter condition, Sort method, Group By condition  etc. SharePoint allows us to create custom views for the list and libraries. But for the Survey type list, SharePoint documentation doesn't mention anything about creating a custom view.&lt;br /&gt;Below mentioned steps are can be adapted to create a custom view for Survey List.&lt;br /&gt;&lt;br /&gt;Steps-:&lt;br /&gt;1.Open a SharePoint Site......Open the Survey List.  &lt;br /&gt;2.Find the ListID from the URL like &lt;br /&gt;List=%7BF2141E9F%2D8EA2%2D42EE%2DA965%2D52F1D7362066%7D &lt;br /&gt;&lt;br /&gt;3.Now change the URL in the browser as  &lt;br /&gt;http://SiteName:PortNo/_layouts/ViewType.aspx?List=%7BF2141E9F%2D8EA2%2D42EE%2DA965%2D52F1D7362066%7D&lt;br /&gt;&lt;br /&gt;4.Then choose a view format for the survey list.&lt;br /&gt;&lt;br /&gt;5.Type a custom View Name.&lt;br /&gt;&lt;br /&gt;6.In the same page open the style tab, choose a style for this view e.g Basic Table (Don't set the style as Default).&lt;br /&gt;&lt;br /&gt;7.Then press OK to create the view.&lt;br /&gt;&lt;br /&gt;Edit the Custom View&lt;br /&gt;&lt;br /&gt;1.Open the Survey List &lt;br /&gt;2.Go to Site Action....Click on Edit page....Click on Modify Shared Web Part &lt;br /&gt;3.Now click on Edit the current view &lt;br /&gt;4.It will open the view .Modify the view &amp; save it.&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.mindfiresolutions.com/Create-a-Custom-View-for-Survey-List-96.php'&gt;Check it out&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-6656255136473262734?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/6656255136473262734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/01/create-custom-view-for-survey-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6656255136473262734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/6656255136473262734'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2010/01/create-custom-view-for-survey-list.html' title='Create a Custom View for Survey List'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-4665660192597124338</id><published>2009-12-17T02:16:00.000-08:00</published><updated>2009-12-17T02:33:03.672-08:00</updated><title type='text'>Custom EnsureUser function</title><content type='html'>The functionality of web.EnsureUser("login name") function is to resolve the user from the sharepoint site. But there might be a case where the login name you are passsing as a parameter, which does not exist in the site, then it will give you a run time error.&lt;br /&gt;&lt;br /&gt;But this function will work like a brilliant. It will check the user and if does not exist then add that to "Home Owners" group. You can specify your own group name also.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;public SPUser CustomEnsureUser(string fullName,SPWeb web)&lt;br /&gt;{&lt;br /&gt;SPPrincipalInfo objInfo = SPUtility.ResolvePrincipal(web, fullName, SPPrincipalType.SecurityGroup | SPPrincipalType.User, SPPrincipalSource.All, null, false);&lt;br /&gt;if objInfo == null)&lt;br /&gt;{&lt;br /&gt;throw new SPException(SPResource.GetString("User could not be found", new object[]{objInfo.LoginName}));&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;if (objInfo.PrincipalId &lt; 0)  {     web.Groups["Home Owners"].AddUser(objInfo.LoginName, objInfo.Email, objInfo.DisplayName, string.Empty);  }  return web.SiteUsers[objInfo.LoginName];}&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-4665660192597124338?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/4665660192597124338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/custom-ensureuser-function.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4665660192597124338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4665660192597124338'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/custom-ensureuser-function.html' title='Custom EnsureUser function'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-8171055351170766895</id><published>2009-12-16T23:22:00.000-08:00</published><updated>2010-01-20T05:55:01.864-08:00</updated><title type='text'>How to open SharePoint Group easily in Out-Of-Box functionality.</title><content type='html'>Suppose you are creating a application ,where you are creating sharepoint custom groups day by day. After some days, suppose there are 5000 custom sharepoint groups and you need to Modify settings/update users/delete users in a specific group. Then how can you go to that group easily ?&lt;br /&gt;&lt;br /&gt;Step 1.Where ever you will see that group,just right click on that and click properties and get address url like:&lt;br /&gt;&lt;br /&gt;http://testserver/testsite/_layouts/editprms.aspx?&lt;br /&gt;obj=%7B9FD2AD57%2DB7E1%2D4C7C%2D9A7C%2DA1BB85B20AEC%7D%2C614%2CLISTITEM&lt;br /&gt;&amp;&lt;b&gt;&lt;i&gt;sel=17637&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Step 2: Take the sel value(i.e 17637) and Type the url as the below example:&lt;br /&gt;http://testserver/testsite/&lt;b&gt;_layouts/people.aspx?MembershipGroupId=&lt;b&gt;&lt;i&gt;17637&lt;/i&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Then you will reach that Group direcltly.&lt;br /&gt;&lt;br /&gt;Try it out and enjoy !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-8171055351170766895?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/8171055351170766895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/how-to-open-sharepoint-group-easily-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8171055351170766895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8171055351170766895'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/how-to-open-sharepoint-group-easily-in.html' title='How to open SharePoint Group easily in Out-Of-Box functionality.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-8479648293163694552</id><published>2009-12-14T23:09:00.001-08:00</published><updated>2009-12-14T23:09:42.083-08:00</updated><title type='text'>Copy a folder from one list to another list programmatically.</title><content type='html'>using (SPSite site = new SPSite("http://testserver/spsite"))&lt;br /&gt;{&lt;br /&gt;  using (SPWeb web = site.OpenWeb())&lt;br /&gt;  {&lt;br /&gt;     string sourceListUrl = "CustomList1/";&lt;br /&gt;     string destinationListUrl = "CustomList2/";&lt;br /&gt;&lt;br /&gt;     SPFolder rootFolder = web.GetFolder(sourceListUrl);&lt;br /&gt;     foreach (SPFolder objRootSubFolder in rootFolder.SubFolders)&lt;br /&gt;     {&lt;br /&gt;        if (objRootSubFolder.Name != "Forms")&lt;br /&gt;        {&lt;br /&gt;           folder = web.GetFolder(objRootSubFolder.ServerRelativeUrl);&lt;br /&gt;           foreach (SPFolder objFolder in folder.SubFolders)&lt;br /&gt;           {&lt;br /&gt;              objFolder.CopyTo(destinationListUrl + objRootSubFolder.Name + "/" + objFolder.Name);&lt;br /&gt;           }&lt;br /&gt;&lt;br /&gt;           foreach (SPFile objFile in folder.Files)&lt;br /&gt;           {&lt;br /&gt;              objFile.CopyTo(destinationListUrl + objRootSubFolder.Name + "/" + objFile.Name);&lt;br /&gt;           }&lt;br /&gt;        }&lt;br /&gt;     }&lt;br /&gt;  }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-8479648293163694552?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/8479648293163694552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/copy-folder-from-one-list-to-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8479648293163694552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8479648293163694552'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/copy-folder-from-one-list-to-another.html' title='Copy a folder from one list to another list programmatically.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-3410078205814673294</id><published>2009-12-14T23:01:00.000-08:00</published><updated>2011-04-08T13:36:56.358-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><title type='text'>Delete all site groups programmatically.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;SPSecurity.RunWithElevatedPrivileges(delegate&lt;br /&gt;{&lt;br /&gt;using (SPSite spSite = new SPSite("http://testserver/spsite"))&lt;br /&gt;{&lt;br /&gt;using (SPWeb spWeb = spSite.OpenWeb())&lt;br /&gt;{&lt;br /&gt;SPGroupCollection objCol = spWeb.SiteGroups;&lt;br /&gt;&lt;br /&gt;for (int count = 0; count &amp;lt;= objCol.Count - 1; count++)&lt;br /&gt;{&lt;br /&gt;spWeb.SiteGroups.Remove(0);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;});&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-3410078205814673294?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/3410078205814673294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/delete-all-site-groups-programmatically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3410078205814673294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3410078205814673294'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/delete-all-site-groups-programmatically.html' title='Delete all site groups programmatically.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-7469978411941420653</id><published>2009-12-14T22:55:00.000-08:00</published><updated>2009-12-14T22:58:10.607-08:00</updated><title type='text'>Delete all the items from a custom list or a document library.</title><content type='html'>&lt;b&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;SPSecurity.RunWithElevatedPrivileges(delegate&lt;br /&gt;{&lt;br /&gt;    using (SPSite spSite = new SPSite("http://testserver/spsite"))&lt;br /&gt;    {&lt;br /&gt;      using (SPWeb spWeb = spSite.OpenWeb())&lt;br /&gt;      {&lt;br /&gt;        SPList objLst = spWeb.Lists["List Name"];&lt;br /&gt;        SPListItemCollection objCol = objLst.Items;&lt;br /&gt;        &lt;br /&gt;        for (int count = 0; count &lt;= objCol.Count - 1; count++)        {            objLst.Items.Delete(0);         }       }     }});&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-7469978411941420653?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/7469978411941420653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/delete-all-items-from-custom-list-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7469978411941420653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7469978411941420653'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/delete-all-items-from-custom-list-or.html' title='Delete all the items from a custom list or a document library.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-2904977529238631982</id><published>2009-12-14T22:44:00.000-08:00</published><updated>2009-12-14T22:44:52.042-08:00</updated><title type='text'>Updating a list item by avoiding unnecessary call to event receiver.</title><content type='html'>If there is custom list and a event receiver[For creating/updating list item] is binded to that, then suppose we want to update the list without calling to the event receiver, then we have to disable the event firing and call the SystemUpdate() function instead of Update() function. Below here is the example in 2 steps:&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 1:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;i&gt;class UpdateList: SPItemEventReceiver&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 2:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;SPListitem listItem = lst.Items.Add();&lt;br /&gt;listItem["Title"] = "Samarendra Swain";&lt;br /&gt;listItem["Company"] = "Manuh Solutions";&lt;br /&gt;&lt;br /&gt;base.DisableEventFiring();&lt;br /&gt;listItem.SystemUpdate();&lt;br /&gt;base.EnableEventFiring();&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-2904977529238631982?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/2904977529238631982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/updating-list-item-by-avoiding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/2904977529238631982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/2904977529238631982'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/updating-list-item-by-avoiding.html' title='Updating a list item by avoiding unnecessary call to event receiver.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-3860034896098513381</id><published>2009-12-14T22:23:00.000-08:00</published><updated>2011-04-08T13:36:03.706-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><title type='text'>Fetching SPList object properly.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;When ever we need to access a Custom List or a Document Library , we normally write like:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;SPList lst = web.Lists["List Name"];&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;But this is a performance killer. So avoid this and modify the code to:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;SPList lst = web.GetList("http://testServer/Lists/ListName");&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-3860034896098513381?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/3860034896098513381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/when-ever-we-need-to-access-custom-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3860034896098513381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/3860034896098513381'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/when-ever-we-need-to-access-custom-list.html' title='Fetching SPList object properly.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-378120894151419744</id><published>2009-12-14T22:16:00.000-08:00</published><updated>2009-12-14T22:16:07.448-08:00</updated><title type='text'>Proper Use of AllowUnsafeUpdates property.</title><content type='html'>Normally if we do not need to set the AllowUnsafeUpdates property to true in case of windows application. But if you are calling the SharePoint API in web based application then we need to set the AllowUnsafeUpdates property to true before creating/updating anything(e.g. creating/updating list item in a list).&lt;br /&gt;&lt;br /&gt;Suppose there is assignment to create a list item and bind custom permission to that list item, then we normally write BL like:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;web.AllowUnsafeUpdate = true;&lt;br /&gt;&lt;br /&gt;SPLIstItem lstItem = list.Items.Add();&lt;br /&gt;lstItem["Title"] = "Samarendra Swain";&lt;br /&gt;lstItem.update();&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Then with the return listitem object, we write BL to bind the role defination to the list item.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;lstitem.BreakRoleInheritance(false);&lt;br /&gt;&lt;br /&gt;SPRoleDefinitionCollection objWebRoleDefn = oSPWeb.RoleDefinitions;&lt;br /&gt;SPRoleAssignment objRoleAssign = new SPRoleAssignment(objSPGroup);&lt;br /&gt;&lt;br /&gt;objRoleAssign.RoleDefinitionBindings.Add(objWebRoleDefn["Full Control"]);&lt;br /&gt;lstItem.RoleAssignments.Add(objRoleAssign);.&lt;/i&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;If you will run this, then you will get a run time error because of the AllowUnsafeUpdates property value set to false.&lt;br /&gt;&lt;br /&gt;So,if you are writing &lt;b&gt;lstitem.BreakRoleInheritance(false);&lt;/b&gt; then it makes the AllowUnsafeUpdates property value to &lt;b&gt;false&lt;/b&gt; , so that after writing that line, you have to write again &lt;b&gt;web.AllowUnsafeUpdate = true;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Then your code will run successfiully.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-378120894151419744?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/378120894151419744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/proper-use-of-allowunsafeupdates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/378120894151419744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/378120894151419744'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/12/proper-use-of-allowunsafeupdates.html' title='Proper Use of AllowUnsafeUpdates property.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-4635038994308998914</id><published>2009-10-13T07:47:00.000-07:00</published><updated>2009-10-13T07:47:04.117-07:00</updated><title type='text'>Getting QueryString Parameters with JavaScript in SharePoint</title><content type='html'>To get the query string parameter in a sharepoint page using javascript, below is the code snippet.&lt;br /&gt;&lt;br /&gt;// call the EnsureSetup method&lt;br /&gt;JSRequest.EnsureSetup(); &lt;br /&gt;&lt;br /&gt;// get the querystring parameter named empid e.g ...\test.aspx?empid=55&amp;empname=sam&lt;br /&gt;var empid = JSRequest.QueryString["empid"];&lt;br /&gt;var empname = JSRequest.QueryString["empname"];&lt;br /&gt;&lt;br /&gt;***********************************************************************&lt;br /&gt;Output : empid = 55 and empname = Sam&lt;br /&gt;***********************************************************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Author: Samarendra Swain&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-4635038994308998914?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/4635038994308998914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/10/getting-querystring-parameters-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4635038994308998914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/4635038994308998914'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/10/getting-querystring-parameters-with.html' title='Getting QueryString Parameters with JavaScript in SharePoint'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-2317549614617878163</id><published>2009-09-30T04:25:00.000-07:00</published><updated>2009-09-30T04:25:14.807-07:00</updated><title type='text'>Display the matching results in People Picker Control by clicking on check names link</title><content type='html'>You will find a function EntityEditorCallback(result,ctx,preventAutoPostBack) in core.js file. At the last line of the function, just call this function: onClickRw(true,false);&lt;br /&gt;&lt;br /&gt;what ever you write in People Picker Control, It will display the matching results by clicking on Check Names link Or by pressing enter key.&lt;br /&gt;&lt;br /&gt;No need to again click on that text and see the matching results.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-samarendra swain&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-2317549614617878163?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/2317549614617878163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/09/display-matching-results-in-people.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/2317549614617878163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/2317549614617878163'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/09/display-matching-results-in-people.html' title='Display the matching results in People Picker Control by clicking on check names link'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-7571339873099276471</id><published>2009-09-24T09:07:00.000-07:00</published><updated>2009-09-24T09:07:38.998-07:00</updated><title type='text'>Delete a sharepoint group programmatically ?</title><content type='html'>To delete a sharepoint group using object model, below is the code snippet in c#.&lt;br /&gt;&lt;br /&gt;// objSPWeb is SPWeb object&lt;br /&gt;objSPWeb.SiteGroups.Remove(groupName);&lt;br /&gt;objSPWeb.Update();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-7571339873099276471?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/7571339873099276471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/09/delete-sharepoint-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7571339873099276471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7571339873099276471'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/09/delete-sharepoint-group.html' title='Delete a sharepoint group programmatically ?'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-538148034483466909</id><published>2009-09-24T09:01:00.000-07:00</published><updated>2009-09-24T09:01:36.229-07:00</updated><title type='text'>Update the List item permission programmatically</title><content type='html'>Suppose if you have already bind a sharepoint group to a list item in a custom list/library for integrating permission then later on , if you want to modify the permission for that list item, below is the code snippet to achive it.&lt;br /&gt;&lt;br /&gt;SPRoleAssignment objRoleAssignment = objListItem.RoleAssignments.GetAssignmentByPrincipal(objSPGroup);&lt;br /&gt;                                                                   objRoleAssignment.RoleDefinitionBindings.Remove(web.RoleDefinitions["Full Control"]);&lt;br /&gt;                                                             objRoleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["Contribute"]);&lt;br /&gt;                                                                    objRoleAssignment.Update();&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-538148034483466909?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/538148034483466909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/09/update-list-item-permission.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/538148034483466909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/538148034483466909'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/09/update-list-item-permission.html' title='Update the List item permission programmatically'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-597842239745442808</id><published>2009-08-27T22:12:00.000-07:00</published><updated>2009-08-28T03:00:54.696-07:00</updated><title type='text'>How to get the users of a Active Directory group in SharePoint.</title><content type='html'>While adding a new user to a SharePoint group, you can enter Active Directory group name, so that all the users inside the AD group can access the SharePoint site, which is completely a out-of-box functionality in SharePoint. But there might be requirement where we need to access users of&amp;nbsp;a specific&amp;nbsp;AD group independently to perform some action against each of them.&lt;br /&gt;&lt;br /&gt;Below is the code snippet in c# to acces each users details of a specific Active Directory group.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NameSpace:&lt;/strong&gt; using Microsoft.SharePoint.Utilities;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;bool reachMaxCount;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;// objSPWeb is the SPWeb object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;SPPrincipalInfo[] adGroupUsers = SPUtility.GetPrincipalsInGroup(objSPWeb, "DomainName\\GroupName", 100, out reachMaxCount);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;foreach (SPPrincipalInfo objAdUserInfo in adGroupUsers)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string loginName = objAdUserInfo.LoginName;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string displayName = objAdUserInfo.DisplayName;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string emailId = objAdUserInfo.Email;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;**************Fetch the&amp;nbsp;AD users using LDAP**************&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;public void GetADUsersInADGroup(string domainName,string groupName)&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;{&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;string userNames = "Users : " + Environment.NewLine;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;string anyADUserID = "samarendra";&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;string anyADUserPassword = "password";&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: purple;"&gt;DirectoryEntry entry = new DirectoryEntry("LDAP://" + domainName, anyADUserID, anyADUserPassword);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;DirectorySearcher dSearch = new DirectorySearcher(entry);&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;dSearch.Filter = "(&amp;amp;(objectClass=group)(cn=" + groupName + "))";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;SearchResult results = dSearch.FindOne();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;if (results != null)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;{&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;DirectoryEntry objGroup = new DirectoryEntry(results.Path, anyADUserID, anyADUserPassword, AuthenticationTypes.Secure);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;System.DirectoryServices.PropertyCollection pcoll = objGroup.Properties;&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;for (int count = 0; count &amp;lt; pcoll["member"].Count; count++)&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;{&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;DirectoryEntry deUser = new DirectoryEntry("LDAP://" + domainName + "/" + pcoll["member"][count].ToString(), anyADUserID, anyADUserPassword, AuthenticationTypes.Secure);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;userNames += deUser.Properties["cn"].Value + Environment.NewLine; // cn is for login Name&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;objGroup.Close();&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;}&lt;/span&gt;&lt;span style="color: purple;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-597842239745442808?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/597842239745442808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/how-to-get-users-of-active-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/597842239745442808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/597842239745442808'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/how-to-get-users-of-active-directory.html' title='How to get the users of a Active Directory group in SharePoint.'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-7764435599551619953</id><published>2009-08-26T01:23:00.000-07:00</published><updated>2009-08-31T06:17:21.822-07:00</updated><title type='text'>Adding/Customize action menu in SharePoint</title><content type='html'>A common requirement that every Sharepoint developer is asked for today is customization of the SharePoint site based on various customer specific requirements. Most often customers have requirements where they want to add some additional features to action menus like Site action menu, ECB menu or List/library Action menu, etc. To achieve this, we have to write custom action in XML and consume it within the site as a new feature. In Sharepoint if we need to integrate new feature for a List / Library, we can achieve this easily by creating a custom action feature.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Create a folder named TestCustomAction under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES directory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Next, create a file named Feature.xml in the same folder with the following codes.&lt;br /&gt;&lt;div  class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3rnPLdGqyuc/SpTw5H1-P5I/AAAAAAAAAyA/YC3LXI3zx8k/s1600-h/1.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" lk="true" src="http://1.bp.blogspot.com/_3rnPLdGqyuc/SpTw5H1-P5I/AAAAAAAAAyA/YC3LXI3zx8k/s320/1.GIF" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href='http://1.bp.blogspot.com/_3rnPLdGqyuc/SpTw5H1-P5I/AAAAAAAAAyA/YC3LXI3zx8k/s1600-h/1.GIF'&gt;Enlarge the image&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Next, create another file, TestCustomActions.xml in the same folder with the following codes.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3rnPLdGqyuc/SpTxAP-tUhI/AAAAAAAAAyI/JWQCEwzQtz4/s1600-h/2.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" lk="true" src="http://4.bp.blogspot.com/_3rnPLdGqyuc/SpTxAP-tUhI/AAAAAAAAAyI/JWQCEwzQtz4/s320/2.GIF" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href='http://4.bp.blogspot.com/_3rnPLdGqyuc/SpTxAP-tUhI/AAAAAAAAAyI/JWQCEwzQtz4/s1600-h/2.GIF'&gt;Enlarge the image&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. Create a page named TestCustomActions.aspx under layouts folder and add your own Business Logic.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Finally, deploy this feature by running the command in the command prompt.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To activate this feature: stsadm -o installfeature -filename TestCustomAction\feature.xml -url http://TestServer/Site.&lt;br /&gt;&lt;br /&gt;Finally to see the changes in the site do an iisreset. &lt;br /&gt;&lt;br /&gt;See here also:&lt;a href="http://www.mindfiresolutions.com/AddingCustomizing-action-menu-in-SharePoint-182.php" target="Blank"&gt;Adding/Customizing action menu in SharePoint&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-7764435599551619953?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/7764435599551619953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/addingcustomizing-action-menu-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7764435599551619953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/7764435599551619953'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/addingcustomizing-action-menu-in.html' title='Adding/Customize action menu in SharePoint'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3rnPLdGqyuc/SpTw5H1-P5I/AAAAAAAAAyA/YC3LXI3zx8k/s72-c/1.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-8686253598817870602</id><published>2009-08-25T08:48:00.001-07:00</published><updated>2009-08-28T03:01:29.850-07:00</updated><title type='text'>Create custom property in a web part as a dropdown list</title><content type='html'>SharePoint allows you to create custom web parts to help you provide highly customized solutions to your clients/users. The properties of these web parts are added by default but to further customize the solution, you can also create custom properties. The following example demonstrates how to add a custom dropdown property to a custom webpart.  &lt;br /&gt;// Create a Enum for Languages&lt;br /&gt;&lt;br /&gt;public enum LanguageByEnum&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;English = 0,&lt;br /&gt;French,&lt;br /&gt;Spanish&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// Create Get/Set for the dropdown property  &lt;br /&gt;&lt;br /&gt;protected LanguageByEnum languageName;&lt;br /&gt;&lt;br /&gt;[Personalizable(PersonalizationScope.User),&lt;br /&gt;Category("Select Language"),&lt;br /&gt;WebBrowsable, WebDisplayName("Select language:")]&lt;br /&gt;public LanguageByEnum SelectedLanguage&lt;br /&gt;{&lt;br /&gt;get { return languageName; }&lt;br /&gt;set { languageName = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I have written the same here also:&lt;a target='Blank'  href="http://www.mindfiresolutions.com/Create-custom-property-in-a-web-part-as-a-dropdown-list-86.php"&gt;Create custom property in a web part as a dropdown list&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-8686253598817870602?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/8686253598817870602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/create-custom-property-in-web-part-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8686253598817870602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8686253598817870602'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/create-custom-property-in-web-part-as.html' title='Create custom property in a web part as a dropdown list'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-175202802511533726</id><published>2009-08-25T08:40:00.001-07:00</published><updated>2011-04-29T00:25:04.698-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web application'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><category scheme='http://www.blogger.com/atom/ns#' term='central administration'/><title type='text'>Create SharePoint Web Application Programmatically</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Generally web applications in SharePoint are created using the out-of-box functionality provided within Central Administration. But because of some client's needs there might be a requirement of creating these web applications within a custom utility solution. This functionality can be achieved programmatically using Microsoft SharePoint APIs. By this, one can easily create a web application &amp;amp; associate a content database to it, register the web application in the IIS server, create an associated application pool and define different credentials for the web aplication. &lt;br /&gt;&lt;br /&gt;Example code using C#.Net&lt;br /&gt;&lt;br /&gt;// namespace required &lt;br /&gt;using System.IO;&lt;br /&gt;using Microsoft.SharePoint.Administration; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Create  new object of SPWebApplication &amp;amp; SPWebApplicationBuilder class&lt;br /&gt;SPWebApplication newApplication;&lt;br /&gt;SPWebApplicationBuilder webAppBuilder = new SPWebApplicationBuilder(SPFarm.Local);&lt;br /&gt;&lt;br /&gt;// Set necessary values to webAppBuilder object&lt;br /&gt;&lt;br /&gt;webAppBuilder.Port = portNo;&lt;br /&gt;webAppBuilder.RootDirectory = new DirectoryInfo(@"D:\projects\TestWebSite3030");&lt;br /&gt;webAppBuilder.ApplicationPoolId = appPoolId;&lt;br /&gt;webAppBuilder.ApplicationPoolUsername = appPoolUserName;&lt;br /&gt;webAppBuilder.ApplicationPoolPassword = password;&lt;br /&gt;webAppBuilder.CreateNewDatabase = true;&lt;br /&gt;webAppBuilder.DatabaseServer = dbServerName; // DB server name&lt;br /&gt;webAppBuilder.DatabaseName = dbName;// DB Name&lt;br /&gt;if (isSQLAuth)&lt;br /&gt;{&lt;br /&gt;webAppBuilder.DatabaseUsername = dbUid; // dbUid is username of the DB sever&lt;br /&gt;webAppBuilder.DatabasePassword = dbPwd; // dbpassword is password of the DB sever&lt;br /&gt;}&lt;br /&gt;webAppBuilder.UseNTLMExclusively = true;  // authentication provider for NTLM&lt;br /&gt;webAppBuilder.AllowAnonymousAccess = isAnonymous; // anonymous access permission&lt;br /&gt;&lt;br /&gt;// Finally create web application&lt;br /&gt;newApplication = webAppBuilder.Create(); &lt;br /&gt;newApplication.Provision();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have written the same here also:&lt;a href="http://www.mindfiresolutions.com/Create-SharePoint-Web-Application-Programmatically-87.php" target="Blank"&gt;Create SharePoint Web Application Programmatically&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-175202802511533726?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/175202802511533726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/create-sharepoint-web-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/175202802511533726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/175202802511533726'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/create-sharepoint-web-application.html' title='Create SharePoint Web Application Programmatically'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-8687970883047314024</id><published>2009-08-25T01:07:00.000-07:00</published><updated>2009-08-28T03:00:18.495-07:00</updated><title type='text'>Enable publishing feature programmatically in MOSS 2007 site</title><content type='html'>In SharePoint, integrating publishing feature is possible only in MOSS 2007 site and not in WSS site.By turning on publishing feature you can use Web Content Management(WCM) feature in the site.Once the WCM feature is enabled you can then brand the site with your custom look and feel and can also enable the multilingual support in the site. The multilingual feature helps in creating different folder-based sites according to the languages set to the site. &lt;br /&gt;&lt;br /&gt;While creating a site collection or site &amp;amp; workspaces using SharePoint API , you can add these two lines code to enable the publishing feature.Provided below is an example using C# for enabling publishing feature at site collection level. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Code in C#&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;// Turn on publishing feature&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;// objSiteCollection is the Site Collection object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;objSiteCollection.Features.Add(SPFarm.Local.FeatureDefinitions["PublishingSite"].Id); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: purple;"&gt;// Make the necessary changes to the local server to use the feature&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;SPFarm.Local.FeatureDefinitions["PublishingSite"].Provision();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have written the same here also:&lt;a href="http://www.mindfiresolutions.com/Enable-publishing-feature-programmatically-in-MOSS-2007-site-171.php" target="Blank"&gt;Enable publishing feature programmatically in MOSS 2007 site&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-8687970883047314024?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/8687970883047314024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/renaming-menu-items-in-sharepoint-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8687970883047314024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/8687970883047314024'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/renaming-menu-items-in-sharepoint-site.html' title='Enable publishing feature programmatically in MOSS 2007 site'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1440128450924740840.post-5898991814406450458</id><published>2009-08-24T23:58:00.000-07:00</published><updated>2011-04-08T13:36:40.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint 2007'/><title type='text'>Programmatically assign specific permission in SharePoint</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;SharePoint site security helps manage permissions for different resources within a site by defining the levels of accessibility permissions for different peoples and groups. In SharePoint, always the top-level or the parent level permissions are inherited to it's child contents (e.g. a sub-site inheriting permissions from it's parent site collection).&lt;br /&gt;&lt;br /&gt;In-order to create unique permission we need to break the inheriting parent permission and create new permission level for the SharePoint content. These permissions can be defined for specific users or groups.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Provided below is an example using C# for defining custom permission for a list item.&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;// assign a item to SPListItem object.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;SPListItem objLstitem = objLst.Items[0]; // objLst is the SPList object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;// get the user by ID/Email&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;// objSpWeb is the SpWeb object&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;SPUser objUser = objSpWeb.SiteUsers.GetByEmail(samarendra@test.com);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;// Break inheriting parent permissions for this List Item.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;objLstitem.BreakRoleInheritance(false);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;// assign Role to the defined User&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;SPRoleDefinitionCollection objWebRoleDefn = objSpWeb.RoleDefinitions;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;SPRoleAssignment objRoleAssign = new SPRoleAssignment(objUser);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;// specify the name of the role definition like [Full Control][Read][Contribute] etc.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;objRoleAssign.RoleDefinitionBindings.Add(objWebRoleDefn["Contribute"]);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;objLstitem.RoleAssignments.Add(objRoleAssign);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have written the same here also:&lt;a href="http://www.mindfiresolutions.com/Programmatically-assign-specific-permission-in-SharePoint-153.php" target="Blank"&gt;Programmatically assign specific permission in SharePoint&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/samarendraswain/"&gt;Samarendra Swain&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1440128450924740840-5898991814406450458?l=samarendraswain-sharepoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samarendraswain-sharepoint.blogspot.com/feeds/5898991814406450458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/adding-or-customizing-action-menu-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/5898991814406450458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1440128450924740840/posts/default/5898991814406450458'/><link rel='alternate' type='text/html' href='http://samarendraswain-sharepoint.blogspot.com/2009/08/adding-or-customizing-action-menu-in.html' title='Programmatically assign specific permission in SharePoint'/><author><name>Samarendra Swain</name><uri>http://www.blogger.com/profile/00672683653086303139</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_3rnPLdGqyuc/SyoHBHK_s-I/AAAAAAAABqI/Kh90Y3Y53u4/S220/sam.jpg'/></author><thr:total>0</thr:total></entry></feed>
