<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0MCQ34zfCp7ImA9WhRUEEs.&quot;"><id>tag:blogger.com,1999:blog-26556346</id><updated>2012-01-20T17:41:02.084+05:30</updated><category term="CAPTCHA" /><category term="Site Template" /><category term="SharePoint 2007" /><category term="Custom Theme" /><category term="Wiki" /><category term="Blog" /><category term="messenger status" /><title>Nanddeep's Blog</title><subtitle type="html">Useful SharePoint Technical Stuff (Articles, Links, Tips etc…)</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://nanddeepnachan.blogspot.com/" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/NanddeepsBlog" /><feedburner:info uri="nanddeepsblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkMNSXw7eSp7ImA9WxFXE0g.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-2029599340018664788</id><published>2010-05-20T16:47:00.002+05:30</published><updated>2010-05-20T16:51:38.201+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-20T16:51:38.201+05:30</app:edited><title>Add additional web-part to NewForm / EditForm</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;If you want to add any additional web-part to NewForm / EditForm of a List, type &lt;strong&gt;&amp;amp;ToolPaneView=2&lt;/strong&gt; at the end of the url. Instead of opening a page in SPD, this could prove a handy approach.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;em&gt;example:&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;a href="http://server/Lists/SampleList/NewForm.aspx?RootFolder=%2FLists%2FSampleList&amp;amp;Source=http%3A%2F%2Fserver%2FLists%2FSapleList%2FAllItems%2Easpx&amp;amp;ToolPaneView=2" target="_blank"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;http://server/Lists/SampleList/NewForm.aspx?RootFolder=%2FLists%2FSampleList&amp;amp;Source=http%3A%2F%2Fserver%2FLists%2FSapleList%2FAllItems%2Easpx&lt;strong&gt;&amp;amp;ToolPaneView=2&lt;/strong&gt;&lt;/span&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/26556346-2029599340018664788?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hH9JCbwBRpJABs-uTBR21zNF_q4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hH9JCbwBRpJABs-uTBR21zNF_q4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hH9JCbwBRpJABs-uTBR21zNF_q4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hH9JCbwBRpJABs-uTBR21zNF_q4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/3ALfXWbIXDM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/2029599340018664788/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=2029599340018664788&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/2029599340018664788?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/2029599340018664788?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/3ALfXWbIXDM/add-additional-web-part-to-newform.html" title="Add additional web-part to NewForm / EditForm" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2010/05/add-additional-web-part-to-newform.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYFRX04cSp7ImA9WxNbFUk.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-6302989592628652345</id><published>2009-11-18T16:14:00.003+05:30</published><updated>2009-11-18T16:31:54.339+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-18T16:31:54.339+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007" /><title>SharePoint: Export List - Retain Lookup Information</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;The stsadm.exe works well with site migration. However, it does not offer any option to export a list. Therefore to migrate a SharePoint list you need to do the following procedure:&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Create a template from the List you want to export (and include the content in the template), download a copy of the .stp template file created. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Then upload the stp file to the List Templates Gallery. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Create the list from the template you have just created.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Have you ever wanted to copy a list that had a lookup field from a source Web to a destination Web using a custom list template (STP)? Even if the destination Web has a lookup list that exactly matches the source Web, the lookup field will be empty in any lists created using the STP. That is because lookup fields are related by GUID.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;This is a common problem with custom list templates. The following steps describe the workaround. Assuming that your destination Web already has a lookup list identical to the source Web. Replace [yourlist] with the name of the list you want to move.&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Browse to the source Web's lookup list and choose Modify settings and columns.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Copy the source lookup list GUID from the URL.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Browse to the destination Web's lookup list and choose Modify settings and columns.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Copy the destination lookup list GUID from the URL.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Save the source Web's list that contains a lookup column to the lookup list as a list template called [yourlist].stp.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Export the list template STP from the source list template gallery to the file system.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Rename the [yourlist].stp file to [yourlist].cab so Windows can open it.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Open the file, right click on the manifest.xml file and export it to the file system.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Edit the manifest.xml file; find the source Web's lookup list GUID and replace it with the destination Web's lookup list GUID.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Save the manifest.xml file.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Open a VS.NET command prompt.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Run the makecab command as: &lt;strong&gt;&lt;em&gt;makecab manifest.xml [yourlist].stp&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Import the new STP into the destination Web's list template gallery. You will need to delete it if it has previously been imported.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Create a new list based upon the new STP file.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;The lookup column on the new list should retain all the data that was in the source list.&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/26556346-6302989592628652345?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pJPbRGoy_0TsGN4QQMlG0Rkr18k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pJPbRGoy_0TsGN4QQMlG0Rkr18k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pJPbRGoy_0TsGN4QQMlG0Rkr18k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pJPbRGoy_0TsGN4QQMlG0Rkr18k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/VTJRZXJQsvs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/6302989592628652345/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=6302989592628652345&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/6302989592628652345?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/6302989592628652345?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/VTJRZXJQsvs/sharepoint-export-list-retain-lookup.html" title="SharePoint: Export List - Retain Lookup Information" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>3</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2009/11/sharepoint-export-list-retain-lookup.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04DRnk9fCp7ImA9WxNUGUk.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8714235634310676853</id><published>2009-11-11T18:25:00.009+05:30</published><updated>2009-11-11T18:56:17.764+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-11T18:56:17.764+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007" /><title>Site Migrations in MOSS</title><content type="html">&lt;div align="justify"&gt;Managing Sites &amp;amp; Site Collections with STSADM&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;1. Backup a site collection: &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;stsadm -o backup -url &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://url/"&gt;http://url&lt;/span&gt;/&lt;/a&gt;&lt;span style="font-size:85%;"&gt; -filename &lt;filename&gt;.cab&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;2. Restore a backed up site collection: &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;stsadm -o restore -url &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://url/"&gt;http://url&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; -filename &lt;filename&gt;.cab&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;3. Backup a single site: &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;stsadm -o export -url &lt;/span&gt;&lt;a href="http://url/sitename"&gt;&lt;span style="font-size:85%;"&gt;http://url/sitename&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; -filename &lt;filename&gt;.cab&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-size:85%;"&gt;or&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;stsadm –o export –url &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://url/sitename"&gt;http://url/sitename&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; –filename &lt;filename&gt;.cab –includeusersecurity –versions 4 –cabsize 1024 –nofilecompression&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;4. Restore a single site: &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;stsadm -o import -url &lt;/span&gt;&lt;a href="http://url/sitename"&gt;&lt;span style="font-size:85%;"&gt;http://url/sitename&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; -filename &lt;filename&gt;.cab&lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-size:85%;"&gt;or&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;stsadm –o import –url &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://url/sitename"&gt;http://url/&lt;/span&gt;&lt;span style="font-size:85%;"&gt;sitename&lt;/a&gt; –filename &lt;filename&gt;.cab –includeusersecurity –updateversions 3 –nofilecompression &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;u&gt;Here are interesting problem solving solutions based on the above:&lt;/u&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Move or Copy a site collection: &lt;/strong&gt;#1 followed by #2&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Move or Copy a site: &lt;/strong&gt;#3 followed by #4&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Convert a site into a site collection: &lt;/strong&gt;#3 followed by #4 on a top site URL&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Convert a top level site collection into a site: &lt;/strong&gt;#3 targeted to the top level URL followed by #4.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Break Apart a content database: &lt;/strong&gt;Use stsadm -o createsiteinnewdb to create a top level URL first, and then use #3 and #4 on that target URL.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Note:&lt;/strong&gt; Run the STSADM commands with Site Collection Administrator rights account.&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/26556346-8714235634310676853?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kPeahayfhuRYF6SECzZxaqnH-Mw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kPeahayfhuRYF6SECzZxaqnH-Mw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kPeahayfhuRYF6SECzZxaqnH-Mw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kPeahayfhuRYF6SECzZxaqnH-Mw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/HUa_D-iOuYM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8714235634310676853/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8714235634310676853&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8714235634310676853?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8714235634310676853?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/HUa_D-iOuYM/site-migrations-in-moss.html" title="Site Migrations in MOSS" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2009/11/site-migrations-in-moss.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcDQno5eip7ImA9WxNUEUg.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8741807308282954956</id><published>2009-09-09T18:32:00.007+05:30</published><updated>2009-11-02T13:51:13.422+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-02T13:51:13.422+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007" /><title>Indexing pdf documents with Adobe PDF IFilter 6.0 and MOSS 2007</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Perform the below steps on either WSS 3.0 or MOSS:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Install iFilter 6.0&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Download &lt;strong&gt;Adobe PDF IFilter 6.0&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;iframe title="Preview" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 98px; PADDING-TOP: 0px; HEIGHT: 115px; BACKGROUND-COLOR: #fcfcfc" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedicon.aspx/Public/SharePoint%20Code/PDF%20iFilter/ifilter60.exe" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Stop the IIS Admin service: &lt;strong&gt;Start&lt;/strong&gt; -&gt; &lt;strong&gt;Run&lt;/strong&gt; -&gt; &lt;strong&gt;services.msc&lt;/strong&gt; -&gt; &lt;strong&gt;IIS Admin Service&lt;/strong&gt; -&gt; &lt;strong&gt;Stop&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Run the Adobe PDF IFilter 6.0 Setup program to install the filter on the index server.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Copy the &lt;strong&gt;ICPDF.GIF&lt;/strong&gt; file to "&lt;em&gt;[Hard_Drive]:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images&lt;/em&gt;"&lt;br /&gt;&lt;/span&gt;&lt;iframe title="Preview" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 20px; PADDING-TOP: 0px; HEIGHT: 16px; BACKGROUND-COLOR: #fcfcfc" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedphoto.aspx/Public/SharePoint%20Code/PDF%20iFilter/ICPDF.GIF" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Edit the file "&lt;em&gt;[Hard_Drive]:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml\DOCICON.XML&lt;/em&gt;"&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Add an entry for the &lt;strong&gt;.pdf&lt;/strong&gt; extension.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Perform an IISReset by performing the following: &lt;strong&gt;Start&lt;/strong&gt; -&gt; &lt;strong&gt;Run&lt;/strong&gt; -&gt; &lt;strong&gt;iisreset&lt;/strong&gt;. You could also recycle the SharePoint Application Pools in Internet Information Services Manager.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p align="justify"&gt;For MOSS, perform the additional steps:&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; If you have MOSS 2007 and have &lt;em&gt;enabled Shared Services&lt;/em&gt; then, goto &lt;strong&gt;Central Administration&lt;/strong&gt; -&gt; &lt;strong&gt;Shared Services Administration&lt;/strong&gt; -&gt; Select your current &lt;strong&gt;Shared Services Provider&lt;/strong&gt; -&gt; &lt;strong&gt;Search&lt;/strong&gt; -&gt; &lt;strong&gt;Search Settings&lt;/strong&gt; -&gt; &lt;strong&gt;File types&lt;/strong&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Click &lt;strong&gt;New File Type&lt;/strong&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Add the &lt;strong&gt;pdf&lt;/strong&gt; file extension in the designated text box and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Go back to the &lt;strong&gt;Search Settings&lt;/strong&gt; page.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Click &lt;strong&gt;Content sources and crawl schedules&lt;/strong&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt; Select the content source, access its context menu, and click &lt;strong&gt;Start Full Crawl&lt;/strong&gt;.&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-8741807308282954956?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/85SXh_TQKjcnZFvY3l9Dle_h9Is/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85SXh_TQKjcnZFvY3l9Dle_h9Is/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/85SXh_TQKjcnZFvY3l9Dle_h9Is/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85SXh_TQKjcnZFvY3l9Dle_h9Is/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/TZsq4doM8k8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8741807308282954956/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8741807308282954956&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8741807308282954956?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8741807308282954956?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/TZsq4doM8k8/indexing-pdf-documents-with-adobe-pdf.html" title="Indexing pdf documents with Adobe PDF IFilter 6.0 and MOSS 2007" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2009/09/indexing-pdf-documents-with-adobe-pdf.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMEQHs7fip7ImA9WxJTEk8.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-9197422417609916578</id><published>2009-04-20T15:01:00.004+05:30</published><updated>2009-04-20T15:10:01.506+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-20T15:10:01.506+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007" /><title>SharePoint: Enable Stack Trace for better Logging Information</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;SharePoint (WSS 3.0/MOSS 2007) errors sometimes are not descriptive enough or through the generic error message "Unexpected Error occurred".&lt;br /&gt;It doesn't provide more information than this and it does not even log any thing to LOGS or event log or anywhere.&lt;br /&gt;These type of errors could be caused by missing contentplaceholders in your custom master page or any other reason.&lt;br /&gt;&lt;br /&gt;To get better information than the "unexpected error" you can turn on stack trace in the web.config of the corresponding web application. &lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;div align="justify"&gt;&lt;br /&gt;1. For CallStack, change false to true as shown below:&lt;br /&gt;&lt;_safemode maxcontrols="200" callstack="true" directfiledependencies="10" totalfiledependencies="50" allowpageleveltrace="false"&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;2. turn off custom errors&lt;br /&gt;&lt;_customerrors mode="Off"&gt; &lt;/div&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Hope this helps anybody trying to debug SharePoint errors.&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/26556346-9197422417609916578?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SJg2XP-52q_wlUo8AtfMVEdjQ_M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SJg2XP-52q_wlUo8AtfMVEdjQ_M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SJg2XP-52q_wlUo8AtfMVEdjQ_M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SJg2XP-52q_wlUo8AtfMVEdjQ_M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/FdkudCPgCXY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/9197422417609916578/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=9197422417609916578&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/9197422417609916578?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/9197422417609916578?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/FdkudCPgCXY/sharepoint-enable-stack-trace-for.html" title="SharePoint: Enable Stack Trace for better Logging Information" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2009/04/sharepoint-enable-stack-trace-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MMQXczfyp7ImA9WxVTGEU.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-1852389775811827479</id><published>2009-01-02T15:04:00.002+05:30</published><updated>2009-01-02T15:14:40.987+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-02T15:14:40.987+05:30</app:edited><title>SharePoint: Migrating Sites from MOSS to WSS 3.0</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Sometimes, we need to move back to old days. Last week, I got across a situation, where I had to migrate MOSS site to WSS 3.0 environment. Earlier I thought, backup - restore will do the job, but it was not that straight forward task.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Many of the Features available to MOSS sites are not available to WSS 3.0 and the existence of these features in the host site causes migration effort to fail. Among the Features that should be deactivated on the host site prior to export are: &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Office SharePoint Server Enterprise Site and Standard Site Features,&lt;/strong&gt; which can be deactivated through the SharePoint Products and Technologies user interface by navigating to: &lt;strong&gt;Site Settings -&gt; Site Features&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;However, there are many Features, not visible through the SharePoint Products and Technologies user interface that will cause import failures in this scenario including Features such as:&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;BaseWeb &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;AnalyticsLinks &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;DataConnectionLibrary &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;SlideLibrary&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;RelatedLinksScopeSettingsLink &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;To deactivate those Features, use the SharePoint Administration Tool (STSADM) deactivatefeature operation prior to the export &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;STSADM -o deactivatefeature -name BaseWeb -url [url-of-site] -force&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;STSADM -o deactivatefeature -name AnalyticsLinks -url [url-of-site] -force&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;STSADM -o deactivatefeature -name DataConnectionLibrary -url [url-of-site] -force&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;STSADM -o deactivatefeature -name SlideLibrary -url [url-of-site] -force&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;STSADM -o deactivatefeature -name RelatedLinksScopeSettingsLink -url [url-of-site] -force&lt;/strong&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/26556346-1852389775811827479?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X4swDJEDfsQYN9a21IfNXbL6opI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X4swDJEDfsQYN9a21IfNXbL6opI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X4swDJEDfsQYN9a21IfNXbL6opI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X4swDJEDfsQYN9a21IfNXbL6opI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/SCfFiROZUDk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/1852389775811827479/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=1852389775811827479&amp;isPopup=true" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/1852389775811827479?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/1852389775811827479?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/SCfFiROZUDk/sharepoint-migrating-sites-from-moss-to.html" title="SharePoint: Migrating Sites from MOSS to WSS 3.0" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>5</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2009/01/sharepoint-migrating-sites-from-moss-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcBRHc5eip7ImA9WxVWFkg.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8416550118358944013</id><published>2008-10-22T15:23:00.002+05:30</published><updated>2009-02-26T18:44:15.922+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-26T18:44:15.922+05:30</app:edited><title>SharePoint 2007: Image Slide Show Web Part</title><content type="html">&lt;div align="justify"&gt;&lt;strong&gt;Introduction &lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Most of the times, there is a demand for a web part, which will show the images stored in Images Library created in SharePoint site in a Slide show manner.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Code Download&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;p&gt;&lt;iframe scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="width:240px;height:66px;margin:3px;padding:0;border:1px solid #dde5e9;background-color:#ffffff;" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Image%20Slide%20Show%20WebPart/ImageSlideShow.zip"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;How to use this Web Part?&lt;/strong&gt; &lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;This solution is customized to show images from Images Library as well from image URL.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;After adding this web part to your site, edit the Custom Properties of web part by clicking &lt;strong&gt;edit&lt;/strong&gt; -&gt; &lt;strong&gt;Modify Shared Web Part&lt;/strong&gt;.&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-size:85%;"&gt;To display images from Image Library named &lt;strong&gt;Photos&lt;/strong&gt; and a &lt;strong&gt;Google&lt;/strong&gt; image, type the below text in &lt;strong&gt;Image URLs&lt;/strong&gt; custom property of web part: &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;Photos;http://www.google.com/intl/en_ALL/images/logo.gif&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-size:85%;"&gt;Choose the &lt;strong&gt;Image Transition&lt;/strong&gt; from the drop down.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-size:85%;"&gt;Type in the &lt;strong&gt;Transition Delay&lt;/strong&gt; in seconds.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Enjoy the Slide Show!&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/26556346-8416550118358944013?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ez1efxFLbylz8PjxAEvF9Iq8G_k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ez1efxFLbylz8PjxAEvF9Iq8G_k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ez1efxFLbylz8PjxAEvF9Iq8G_k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ez1efxFLbylz8PjxAEvF9Iq8G_k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/lHg-NhklXPU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8416550118358944013/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8416550118358944013&amp;isPopup=true" title="30 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8416550118358944013?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8416550118358944013?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/lHg-NhklXPU/sharepoint-2007-image-slide-show-web.html" title="SharePoint 2007: Image Slide Show Web Part" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>30</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/10/sharepoint-2007-image-slide-show-web.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcFQX8yeCp7ImA9WxRRF0o.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8227069874540947986</id><published>2008-09-30T16:35:00.001+05:30</published><updated>2008-09-30T18:03:30.190+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-30T18:03:30.190+05:30</app:edited><title>Enable Drop Down menu in Top Navigation Bar of Non-Publishing SharePoint Sites</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:130%;"&gt;Introduction &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The drop down menu in top Navigation Bar of SharePoint site, this feature is available out of the box in Publishing sites. But, sometimes we need to have the same on Non-Publishing site, for e.g.: Blank Site, Team Site, etc. To achieve this, we need to carry out the below steps.&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Activate Navigation Feature&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;1. Execute the below command:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;strong&gt;stsadm -o activatefeature -filename navigation\feature.xml –url &lt;url&gt;-force&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Reset IIS.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Modify Master Page&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;1. Open the SharePoint Site in SharePoint Designer 2007.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Navigate through the folder and open the &lt;strong&gt;default.master&lt;/strong&gt; page.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. Find the below code snippet:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIZ6QJce0I/AAAAAAAAAec/AHdP69qA7II/s1600-h/Navigation_SiteMapProvider_before.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5251788604025109314" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIZ6QJce0I/AAAAAAAAAec/AHdP69qA7II/s320/Navigation_SiteMapProvider_before.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;4. Modify the code as below:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIakUFfmqI/AAAAAAAAAek/D1gP3XMrbzA/s1600-h/Navigation_SiteMapProvider_after.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5251789326636784290" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIakUFfmqI/AAAAAAAAAek/D1gP3XMrbzA/s320/Navigation_SiteMapProvider_after.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;5. Find the below code snippet: &lt;/span&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIa64F1jHI/AAAAAAAAAes/cZr0_RA-rQI/s1600-h/Navigation_MaxDisplayLevels_before.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5251789714259020914" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIa64F1jHI/AAAAAAAAAes/cZr0_RA-rQI/s320/Navigation_MaxDisplayLevels_before.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;6. Modify the code as below:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIbNySmQzI/AAAAAAAAAe0/Jo7lBCIWeYU/s1600-h/Navigation_MaxDisplayLevels_after.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5251790039119446834" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIbNySmQzI/AAAAAAAAAe0/Jo7lBCIWeYU/s320/Navigation_MaxDisplayLevels_after.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;7. Save the changes.&lt;/span&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The &lt;strong&gt;Navigation&lt;/strong&gt; will start appearing in the &lt;strong&gt;Site Settings&lt;/strong&gt; page. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Click &lt;strong&gt;Navigation&lt;/strong&gt;, adjust your navigation menu by adding Headings, Links and arrange them. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The drop down menu will start appearing on your SharePoint site now.&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/26556346-8227069874540947986?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/468AE6nIeNhBIv-ldCns75NMB_g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/468AE6nIeNhBIv-ldCns75NMB_g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/468AE6nIeNhBIv-ldCns75NMB_g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/468AE6nIeNhBIv-ldCns75NMB_g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/7CTGg1pOBTg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8227069874540947986/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8227069874540947986&amp;isPopup=true" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8227069874540947986?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8227069874540947986?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/7CTGg1pOBTg/enable-drop-down-menu-in-top-navigation.html" title="Enable Drop Down menu in Top Navigation Bar of Non-Publishing SharePoint Sites" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_F7Uq4dyJ-Pw/SOIZ6QJce0I/AAAAAAAAAec/AHdP69qA7II/s72-c/Navigation_SiteMapProvider_before.jpg" height="72" width="72" /><thr:total>7</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/09/enable-drop-down-menu-in-top-navigation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IASHY_fCp7ImA9WxdaGU4.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-7937925490275652539</id><published>2008-08-28T19:10:00.001+05:30</published><updated>2008-08-28T19:22:29.844+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-28T19:22:29.844+05:30</app:edited><title>Adding Flash Animation to SharePoint 2007 Site</title><content type="html">&lt;span style="font-size:85%;"&gt;Adding a flash animation (.swf) file is merely easy task.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Upload&lt;/strong&gt; flash file (.swf) to Document Library. (For e.g.: &lt;em&gt;wolf.swf&lt;/em&gt; is the file, I have uploaded to my Document Library)&lt;/li&gt;&lt;li&gt;Add a &lt;strong&gt;Content Editor Web Part&lt;/strong&gt; to your page.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Source Editor&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Paste the following code there:&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt; OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 &lt;br /&gt;        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"&lt;br /&gt;        WIDTH="550" &lt;br /&gt;        HEIGHT="400"&gt; &lt;br /&gt;&lt;br /&gt;    &lt; PARAM NAME=movie VALUE="/Shared%20Documents/wolf.swf"&gt;&lt;br /&gt;    &lt; PARAM NAME=WMODE VALUE="Transparent"&gt;&lt;br /&gt;    &lt; PARAM NAME=quality VALUE="high"&gt;&lt;br /&gt;&lt;br /&gt;    &lt; EMBED src="/Shared%20Documents/wolf.swf" &lt;br /&gt;           quality="high" &lt;br /&gt;           wmode="transparent" &lt;br /&gt;           WIDTH="550"&lt;br /&gt;           HEIGHT="400" &lt;br /&gt;           TYPE="application/x-shockwave-flash" &lt;br /&gt;           PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"&gt;&lt;br /&gt;    &lt; /EMBED&gt;&lt;br /&gt;&lt; /OBJECT&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-7937925490275652539?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IEuArgzv4in_EfMiHc0VNX8g700/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IEuArgzv4in_EfMiHc0VNX8g700/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IEuArgzv4in_EfMiHc0VNX8g700/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IEuArgzv4in_EfMiHc0VNX8g700/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/4v8Jy0DWXF4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/7937925490275652539/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=7937925490275652539&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/7937925490275652539?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/7937925490275652539?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/4v8Jy0DWXF4/adding-flash-animation.html" title="Adding Flash Animation to SharePoint 2007 Site" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/08/adding-flash-animation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4NSHs_eSp7ImA9WxdaF0k.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-7448161024405110825</id><published>2008-08-22T19:13:00.002+05:30</published><updated>2008-08-26T16:23:19.541+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T16:23:19.541+05:30</app:edited><title>MOSS 2007 : Feature Stapling</title><content type="html">&lt;div align="justify"&gt;&lt;strong&gt;Introduction &lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Recently, I came across a situation, where-in I need to apply our custom theme to sharepoint site upon creation, i.e. setting our custom theme as a default one. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;We generally have to go for customizing the out of box templates. In such a case, modifying the 12 hive folder is one option, but isn’t recommended as it will render the site unsupported in case of an upgrade.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;In this post, I will be demonstrating how to attach a custom feature with a site template. Feature Stapling allows to &lt;strong&gt;staple&lt;/strong&gt; a Feature to a site definition without modifying it in any way. To use feature-stapling, you first need the feature(s) you wish to link to the site definition - these should be created in the normal way. Then you should create a 2nd feature which does the actual stapling. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Step 1 - Create a Sample Feature&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Create a sample feature, which will be activated every time a site is created with a specified template. &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create a Class Library project and inherit &lt;strong&gt;SPFeatureReceiver&lt;/strong&gt; class &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Override &lt;strong&gt;FeatureActivated()&lt;/strong&gt; method.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Strongly name the assembly.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Add assembly to GAC.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Feature%20Stapling/ACMEThemeFeature.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create a folder called &lt;strong&gt;ACMEThemeFeature&lt;/strong&gt; inside &lt;strong&gt;FEATURES&lt;/strong&gt; folder. (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create a &lt;strong&gt;feature.xml&lt;/strong&gt; file inside &lt;strong&gt;ACMEThemeFeature&lt;/strong&gt; folder.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Feature%20Stapling/Feature.xml" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Run the following command to install this feature:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&gt;stsadm -o installfeature -name ACMEThemeFeature&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Step 2 - Associate a Template with Feature&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;After creating and installing a feature, we need to associate a template with this feature, for that purpose we will again create a feature but with scope as &lt;em&gt;FARM&lt;/em&gt; (This is called a stapler feature).&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create a folder called &lt;strong&gt;ACMEThemeStapler&lt;/strong&gt; inside &lt;strong&gt;FEATURES&lt;/strong&gt; folder.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create &lt;strong&gt;Feature.xml &lt;/strong&gt;file inside &lt;strong&gt;ACMEThemeStapler&lt;/strong&gt; folder.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Feature%20Stapling/ACMEThemeStapler/Feature.xml" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create &lt;strong&gt;Element.xml&lt;/strong&gt; inside &lt;strong&gt;ACMEThemeStapler&lt;/strong&gt; folder.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Feature%20Stapling/ACMEThemeStapler/element.xml" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;FeatureSiteTemplateAssociation ID&lt;/em&gt; inside &lt;em&gt;Element.xml&lt;/em&gt; is id of the &lt;em&gt;ACMEThemeFeature&lt;/em&gt; feature.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;TemplateName&lt;/em&gt; is the teamplet name, you will get a list of TemplateName from &lt;a href="http://roadburn.audioreload.com/?s=spspers"&gt;Roadburn’s SharePoint 2007 blog&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Install &lt;strong&gt;ACMEThemeStapler&lt;/strong&gt; feature using below command from command prompt:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;stsadm&lt;/span&gt; -o &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;installfeature&lt;/span&gt; -name &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;ACMEThemeStapler&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Now, whenever a new site is created, &lt;em&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;ACMEThemeFeature&lt;/span&gt;&lt;/em&gt; feature will be activated and the will apply the specified theme to site.&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/26556346-7448161024405110825?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aAtTbo269jm8t7ilB8ihydIhVmU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aAtTbo269jm8t7ilB8ihydIhVmU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aAtTbo269jm8t7ilB8ihydIhVmU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aAtTbo269jm8t7ilB8ihydIhVmU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/5dikGsmPslg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/7448161024405110825/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=7448161024405110825&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/7448161024405110825?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/7448161024405110825?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/5dikGsmPslg/moss-2007-feature-stapling.html" title="MOSS 2007 : Feature Stapling" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/08/moss-2007-feature-stapling.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIEQno9eyp7ImA9WxdaF0k.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-1718218899859522110</id><published>2008-07-03T16:37:00.002+05:30</published><updated>2008-08-26T16:31:43.463+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T16:31:43.463+05:30</app:edited><title>Topics from My Space</title><content type="html">Please refer my &lt;a href="http://nanddeep.spaces.live.com/"&gt;Space&lt;/a&gt; for below topics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://nanddeep.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&amp;amp;_c=BlogPart&amp;amp;handle=cns!1394CEC7C108882E!253"&gt;&lt;span style="font-size:85%;"&gt;SharePoint 2007 – Enabling Forms Authentication&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://nanddeep.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&amp;amp;_c=BlogPart&amp;amp;handle=cns!1394CEC7C108882E!236"&gt;&lt;span style="font-size:85%;"&gt;Developing and Deploying Custom Web Parts for SharePoint Portal 2007&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://nanddeep.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&amp;amp;_c=BlogPart&amp;amp;handle=cns!1394CEC7C108882E!231"&gt;&lt;span style="font-size:85%;"&gt;Replace SharePoint Search&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://nanddeep.spaces.live.com/blog/cns!1394CEC7C108882E!261.entry"&gt;MOSS 2007 - Business Data Catalog&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-1718218899859522110?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CzngI8BOKVnWw2xArvjc4IKiP7w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CzngI8BOKVnWw2xArvjc4IKiP7w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CzngI8BOKVnWw2xArvjc4IKiP7w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CzngI8BOKVnWw2xArvjc4IKiP7w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/8pNq7dBn7FA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/1718218899859522110/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=1718218899859522110&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/1718218899859522110?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/1718218899859522110?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/8pNq7dBn7FA/replace-sharepoint-search.html" title="Topics from My Space" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/07/replace-sharepoint-search.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MBQns4eip7ImA9WxdaF0s.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8756056969843208517</id><published>2008-07-01T13:56:00.009+05:30</published><updated>2008-08-26T20:07:33.532+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T20:07:33.532+05:30</app:edited><title>Read More link on SharePoint Blog Posts</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:130%;"&gt;Introduction &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;People generally does not like to read the long posts. SharePoint 2007 - Blog does not provide with any feature to restrict the number of characters / lines to be displayed on the Blog Posts. The Blog Authors (like me) likes to write the long posts. With few such a blog posts on SharePoint - Blog site, makes the Home Page scrollable. As a result, the blog posts at the end of the page gets ignored by the readers.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Solution &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;The solution to this, I thought of is to use XSLT.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Open your sharepoint site in SharePoint Designer 2007.&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Open default.aspx in Design View.&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Click Insert -&gt; SharePoint Controls -&gt; Data View.&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Select Posts from available data sources.&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Switch to Code Window.&lt;/span&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Modify the code as below:&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Limit%20Post%20Characters/XSLT_LimitPostCharacters.xml" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-8756056969843208517?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QtWcETYkqQ0RC9SJ87qdJl_-b3c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QtWcETYkqQ0RC9SJ87qdJl_-b3c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QtWcETYkqQ0RC9SJ87qdJl_-b3c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QtWcETYkqQ0RC9SJ87qdJl_-b3c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/60iSjIlfmxk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8756056969843208517/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8756056969843208517&amp;isPopup=true" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8756056969843208517?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8756056969843208517?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/60iSjIlfmxk/read-more-link-on-sharepoint-blog-posts.html" title="Read More link on SharePoint Blog Posts" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/07/read-more-link-on-sharepoint-blog-posts.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cCR3g6fyp7ImA9WxRVEE8.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-4853385732742656634</id><published>2008-06-17T19:12:00.014+05:30</published><updated>2008-11-07T09:07:46.617+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-07T09:07:46.617+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CAPTCHA" /><category scheme="http://www.blogger.com/atom/ns#" term="Blog" /><title>CAPTCHA for SharePoint Blog</title><content type="html">&lt;span style="font-size:130%;"&gt;Introduction&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;The word ‘&lt;strong&gt;CAPTCHA&lt;/strong&gt;’ stands for &lt;strong&gt;C&lt;/strong&gt;ompletely &lt;strong&gt;A&lt;/strong&gt;utomated &lt;strong&gt;P&lt;/strong&gt;ublic &lt;strong&gt;T&lt;/strong&gt;uring test to tell &lt;strong&gt;C&lt;/strong&gt;omputers and &lt;strong&gt;H&lt;/strong&gt;umans &lt;strong&gt;A&lt;/strong&gt;part. Most World Wide Web users will have seen this kind of test in the form of a picture of a word (usually distorted), which the user must type into an input box to prove that they are a real person, and not just a spambot, or some other computerized agent trawling the Web for exploits. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;A CAPTCHA is a challenge-response test most often placed within web forms to determine whether the user is human. The purpose of CAPTCHA is to block form submissions from spambots – automated scripts that harvest email address from publicly available web forms.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Implementing CAPTCHA For SharePoint&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Create HTTPHandler for Generating Image&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;The easiest way to create a custom HttpHandler component is to create a source file with an .ashx extension. You must then add a &lt;strong&gt;@WebHandler&lt;/strong&gt; directive to the top of the .ashx file, along with a class definition that implements the &lt;strong&gt;IHttpHandler&lt;/strong&gt; interface. Any class that implements the &lt;strong&gt;IHttpHandler&lt;/strong&gt; interface must provide an implementation of the &lt;strong&gt;IsReusable&lt;/strong&gt; method and the &lt;strong&gt;ProcessRequest&lt;/strong&gt; method. If you want to be able to program against the Windows SharePoint Services object model from inside the HttpHandler component, you can also add an @Assembly directive to reference the Microsoft.SharePoint assembly.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;1. Create a folder inside LAYOUTS directory. For e.g.: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\Sprint&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;2. Create a file named captcha.ashx inside that folder.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;3. Include the following code in captcha.ashx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="html" name="code"&gt;&lt;br /&gt;&lt;%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;&lt;br /&gt;&lt;%@ WebHandler Language="C#" Class="captcha" %&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Web.SessionState;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using System.Drawing.Drawing2D;&lt;br /&gt;&lt;br /&gt;public class captcha : IHttpHandler, IRequiresSessionState&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;    public void ProcessRequest (HttpContext context) {&lt;br /&gt;        context.Response.ContentType = "image/jpeg";&lt;br /&gt;        ADSSAntiBot captcha = new ADSSAntiBot();&lt;br /&gt;        string str = captcha.DrawNumbers(5);&lt;br /&gt;        if (context.Session[ ADSSAntiBot.SESSION_CAPTCHA] == null) context.Session.Add(ADSSAntiBot.SESSION_CAPTCHA, str);&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            context.Session[ ADSSAntiBot.SESSION_CAPTCHA] = str;&lt;br /&gt;        }&lt;br /&gt;        Bitmap bmp = captcha.Result;&lt;br /&gt;        bmp.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);&lt;br /&gt;    }&lt;br /&gt; &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    public bool IsReusable {&lt;br /&gt;        get {&lt;br /&gt;            return true;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class ADSSAntiBot&lt;br /&gt;{&lt;br /&gt;    public static string SESSION_CAPTCHA = "CAPTCHA";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    const int default_width = 135;&lt;br /&gt;    const int default_height = 35;&lt;br /&gt;&lt;br /&gt;    protected Bitmap result = null;&lt;br /&gt;&lt;br /&gt;    public int Width;&lt;br /&gt;    public int Height;&lt;br /&gt;&lt;br /&gt;    public ADSSAntiBot()&lt;br /&gt;    {&lt;br /&gt;        InitBitmap(default_width, default_height);&lt;br /&gt;        rnd = new Random();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public ADSSAntiBot(int width, int height)&lt;br /&gt;    {&lt;br /&gt;        InitBitmap(width, height);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    protected void InitBitmap(int width, int height)&lt;br /&gt;    {&lt;br /&gt;        result = new Bitmap(width, height);&lt;br /&gt;        Width = width;&lt;br /&gt;        Height = height;&lt;br /&gt;        rnd = new Random();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    public PointF Noise(PointF p, double eps)&lt;br /&gt;    {&lt;br /&gt;        p.X = Convert.ToSingle(rnd.NextDouble() * eps * 2 - eps) + p.X;&lt;br /&gt;        p.Y = Convert.ToSingle(rnd.NextDouble() * eps * 2 - eps) + p.Y;&lt;br /&gt;        return p;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public PointF Wave(PointF p, double amp, double size)&lt;br /&gt;    {&lt;br /&gt;        p.Y = Convert.ToSingle(Math.Sin(p.X / size) * amp) + p.Y;&lt;br /&gt;        p.X = Convert.ToSingle(Math.Sin(p.X / size) * amp) + p.X;&lt;br /&gt;        return p;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    public GraphicsPath RandomWarp(GraphicsPath path)&lt;br /&gt;    {&lt;br /&gt;        // Add line //&lt;br /&gt;        int PsCount = 10;&lt;br /&gt;        PointF[] curvePs = new PointF[PsCount * 2];&lt;br /&gt;        for (int u = 0; u &lt; PsCount; u++)&lt;br /&gt;        {&lt;br /&gt;            curvePs[u].X = u * (Width / PsCount);&lt;br /&gt;            curvePs[u].Y = Height / 2;&lt;br /&gt;        }&lt;br /&gt;        for (int u = PsCount; u &lt; (PsCount * 2); u++)&lt;br /&gt;        {&lt;br /&gt;            curvePs[u].X = (u - PsCount) * (Width / PsCount);&lt;br /&gt;            curvePs[u].Y = Height / 2 + 2;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        path.AddLines(curvePs);&lt;br /&gt;&lt;br /&gt;        //&lt;br /&gt;        double eps = Height * 0.05;&lt;br /&gt;&lt;br /&gt;        double amp = rnd.NextDouble() * (double)(Height / 3);&lt;br /&gt;        double size = rnd.NextDouble() * (double)(Width / 4) + Width / 8;&lt;br /&gt;&lt;br /&gt;        double offset = (double)(Height / 3);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        PointF[] pn = new PointF[path.PointCount];&lt;br /&gt;        byte[] pt = new byte[path.PointCount];&lt;br /&gt;&lt;br /&gt;        GraphicsPath np2 = new GraphicsPath();&lt;br /&gt;&lt;br /&gt;        GraphicsPathIterator iter = new GraphicsPathIterator(path);&lt;br /&gt;        for (int i = 0; i &lt; iter.SubpathCount; i++)&lt;br /&gt;        {&lt;br /&gt;            GraphicsPath sp = new GraphicsPath();&lt;br /&gt;            bool closed;&lt;br /&gt;            iter.NextSubpath(sp, out closed);&lt;br /&gt;&lt;br /&gt;            Matrix m = new Matrix();&lt;br /&gt;            m.RotateAt(Convert.ToSingle(rnd.NextDouble() * 30 - 15), sp.PathPoints[0]);&lt;br /&gt;&lt;br /&gt;            //m.Shear(Convert.ToSingle( rnd.NextDouble()*offset-offset ),Convert.ToSingle( rnd.NextDouble()*offset-offset/2 ));&lt;br /&gt;            //m.Shear(1,1);&lt;br /&gt;&lt;br /&gt;            //m.Scale(0.5f + Convert.ToSingle(rnd.NextDouble()), 0.5f + Convert.ToSingle(rnd.NextDouble()), MatrixOrder.Prepend);&lt;br /&gt;&lt;br /&gt;            m.Translate(-1 * i, 0);&lt;br /&gt;&lt;br /&gt;            sp.Transform(m);&lt;br /&gt;&lt;br /&gt;            np2.AddPath(sp, true);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        for (int i = 0; i &lt; np2.PointCount; i++)&lt;br /&gt;        {&lt;br /&gt;            //pn[i] = Noise( path.PathPoints[i] , eps);&lt;br /&gt;            pn[i] = Wave(np2.PathPoints[i], amp, size);&lt;br /&gt;            pt[i] = np2.PathTypes[i];&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        GraphicsPath newpath = new GraphicsPath(pn, pt);&lt;br /&gt;&lt;br /&gt;        return newpath;&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    Random rnd;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    public string DrawNumbers(int len)&lt;br /&gt;    {&lt;br /&gt;        string str = "";&lt;br /&gt;        for (int i = 0; i &lt; len; i++)&lt;br /&gt;        {&lt;br /&gt;            int n = rnd.Next() % 10;&lt;br /&gt;            str += n.ToString();&lt;br /&gt;        }&lt;br /&gt;        DrawText(str);&lt;br /&gt;        return str;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public void DrawText(string aText)&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        Graphics g = Graphics.FromImage(result);&lt;br /&gt;        int startsize = Height;&lt;br /&gt;        Font f = new Font("Verdana", startsize, FontStyle.Bold, GraphicsUnit.Pixel);&lt;br /&gt;&lt;br /&gt;        do&lt;br /&gt;        {&lt;br /&gt;            f = new Font("Verdana", startsize, GraphicsUnit.Pixel);&lt;br /&gt;            startsize--;&lt;br /&gt;        } while ((g.MeasureString(aText, f).Width &gt;= Width) || (g.MeasureString(aText, f).Height &gt;= Height));&lt;br /&gt;        SizeF sf = g.MeasureString(aText, f);&lt;br /&gt;        int width = Convert.ToInt32(sf.Width);&lt;br /&gt;        int height = Convert.ToInt32(sf.Height);&lt;br /&gt;&lt;br /&gt;        int x = Convert.ToInt32(Math.Abs((double)width - (double)Width) * rnd.NextDouble());&lt;br /&gt;        int y = Convert.ToInt32(Math.Abs((double)height - (double)Height) * rnd.NextDouble());&lt;br /&gt;&lt;br /&gt;        //////// Paths ///&lt;br /&gt;        GraphicsPath path = new GraphicsPath(FillMode.Alternate);&lt;br /&gt;&lt;br /&gt;        FontFamily family = new FontFamily("Verdana");&lt;br /&gt;        int fontStyle = (int)(FontStyle.Regular);&lt;br /&gt;        float emSize = f.Size;&lt;br /&gt;        Point origin = new Point(x, y);&lt;br /&gt;        StringFormat format = StringFormat.GenericDefault;&lt;br /&gt;&lt;br /&gt;        path.AddString(aText, family, fontStyle, emSize, origin, format);&lt;br /&gt;&lt;br /&gt;        path = RandomWarp(path);&lt;br /&gt;        /// Path ///&lt;br /&gt;&lt;br /&gt;        g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;&lt;br /&gt;        Rectangle rect = new Rectangle(0, 0, Width, Height);&lt;br /&gt;        g.FillRectangle(new System.Drawing.Drawing2D.LinearGradientBrush(rect, Color.White, Color.LightGray, 0f), rect);&lt;br /&gt;        //g.DrawString(aText, f, new SolidBrush(Color.Black), x, y);&lt;br /&gt;        g.SmoothingMode = SmoothingMode.AntiAlias;&lt;br /&gt;        g.FillPath(new SolidBrush(Color.Black), path);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        // Dispose //&lt;br /&gt;        g.Dispose();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public Bitmap Result&lt;br /&gt;    {&lt;br /&gt;        get&lt;br /&gt;        {&lt;br /&gt;            return result;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;Now, this HTTPHandler is accessible to any site in the farm by using a site-relative path. &lt;/span&gt;&lt;a href="http://mywebserver/_layouts/ACME/captcha.ashx"&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://mywebserver/_layouts/ACME/captcha.ashx"&gt;http://MyWebServer/_layouts/ACME/captcha.ashx&lt;/span&gt;&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Note:&lt;/strong&gt;Please make sure that you have unblocked .ashx extension for your web application from Central Administration.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;Unblock .ashx extension for your web application from Central Administration&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;1. Open SharePoint 3.0 Central Administration.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;2. Click Operations tab.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;3. Click Blocked file types under Security Configuration.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;4. Select your web application.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;5. Remove ashx file extension from the list.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;6. Click OK.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;Implement SharePoint WebPart for CAPTCHA&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;1. Create a Class Library Project using Visual Studio 2005.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;2. Add a reference to:&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;a. System.Web&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;b. Microsoft.SharePoint&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;br /&gt; &lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="html" name="code"&gt;&lt;br /&gt;using System;&lt;br /&gt;&lt;br /&gt;using System.Web;&lt;br /&gt;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;&lt;br /&gt;using Microsoft.SharePoint.WebPartPages;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;namespace CaptchaWebPart&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;    public class CaptchaWebPart : WebPart&lt;br /&gt;&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        private Image imgCaptcha;&lt;br /&gt;&lt;br /&gt;        private TextBox txtCaptchaNumber;&lt;br /&gt;&lt;br /&gt;        private RequiredFieldValidator rfv;&lt;br /&gt;&lt;br /&gt;        private CustomValidator captchaValidator;   // Performs user-defined validation on an input control.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        /// &lt;summary&gt;&lt;br /&gt;&lt;br /&gt;        /// Override the ASP.NET Web.UI.Controls.CreateChildControls method&lt;br /&gt;&lt;br /&gt;        /// to create the objects for the Web Part's controls.&lt;br /&gt;&lt;br /&gt;        /// &lt;/summary&gt;&lt;br /&gt;&lt;br /&gt;        protected override void CreateChildControls()&lt;br /&gt;&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            // Get the SPWeb&lt;br /&gt;&lt;br /&gt;            //SPSite siteColl = SPContext.Current.Site;&lt;br /&gt;&lt;br /&gt;            SPWeb site = SPContext.Current.Web;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            // table Formatting&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;_table border="\"&gt;"));&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;_tr&gt;&lt;_td&gt;"));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            // CAPTCHA Image&lt;br /&gt;&lt;br /&gt;            imgCaptcha = new Image();&lt;br /&gt;&lt;br /&gt;            imgCaptcha.ID = "imgCaptcha";&lt;br /&gt;&lt;br /&gt;            imgCaptcha.ImageUrl = site.Url + "/_layouts/Sprint/captcha.ashx";&lt;br /&gt;&lt;br /&gt;            imgCaptcha.AlternateText = "If you can't read this number refresh your screen.";&lt;br /&gt;&lt;br /&gt;            Controls.Add(imgCaptcha);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;/_td&gt;&lt;/_tr&gt;"));&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;_tr&gt;&lt;_td&gt;"));&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;_strong&gt;Enter the code shown above: &lt;_span style="\"&gt;*&lt;/_span&gt;&lt;/_strong&gt;&lt;_br&gt;"));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            // Textbox for user to enter CAPTCHA Text&lt;br /&gt;&lt;br /&gt;            txtCaptchaNumber = new TextBox();&lt;br /&gt;&lt;br /&gt;            txtCaptchaNumber.ID = "txtCaptchaNumber";&lt;br /&gt;&lt;br /&gt;            txtCaptchaNumber.EnableViewState = false;&lt;br /&gt;&lt;br /&gt;            Controls.Add(txtCaptchaNumber);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            // Required Field Validator&lt;br /&gt;&lt;br /&gt;            rfv = new RequiredFieldValidator();&lt;br /&gt;&lt;br /&gt;            rfv.ControlToValidate = "txtCaptchaNumber";&lt;br /&gt;&lt;br /&gt;            rfv.Display = ValidatorDisplay.Dynamic;&lt;br /&gt;&lt;br /&gt;            rfv.Text = "*";&lt;br /&gt;&lt;br /&gt;            Controls.Add(rfv);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            captchaValidator = new CustomValidator();&lt;br /&gt;&lt;br /&gt;            captchaValidator.ServerValidate += new ServerValidateEventHandler(captchaValidator_ServerValidate);&lt;br /&gt;&lt;br /&gt;            captchaValidator.Display = ValidatorDisplay.Dynamic;&lt;br /&gt;&lt;br /&gt;            captchaValidator.Text = "Incorrect Code";&lt;br /&gt;&lt;br /&gt;            Controls.Add(captchaValidator);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;_br&gt;&lt;_i&gt;(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)&lt;/_i&gt;"));&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;/_td&gt;&lt;/_tr&gt;"));&lt;br /&gt;&lt;br /&gt;            Controls.Add(new LiteralControl("&lt;/_table&gt;"));&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        /// &lt;summary&gt;&lt;br /&gt;&lt;br /&gt;        /// Renders the HTML for the body of a Web Part to the client.&lt;br /&gt;&lt;br /&gt;        /// &lt;/summary&gt;&lt;br /&gt;&lt;br /&gt;        /// &lt;param name="output"&gt;&lt;/param&gt;&lt;br /&gt;&lt;br /&gt;        protected override void RenderWebPart(HtmlTextWriter output)&lt;br /&gt;&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            RenderChildren(output);&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        /// &lt;summary&gt;&lt;br /&gt;&lt;br /&gt;        /// Raises the ServerValidate event for the CustomValidator control.&lt;br /&gt;&lt;br /&gt;        /// &lt;/summary&gt;&lt;br /&gt;&lt;br /&gt;        /// &lt;param name="source"&gt;&lt;/param&gt;&lt;br /&gt;&lt;br /&gt;        /// &lt;param name="args"&gt;&lt;/param&gt;&lt;br /&gt;&lt;br /&gt;        void captchaValidator_ServerValidate(object source, ServerValidateEventArgs args)&lt;br /&gt;&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            if (txtCaptchaNumber.Text == (string)this.Page.Session["CAPTCHA"])&lt;br /&gt;&lt;br /&gt;            {&lt;br /&gt;&lt;br /&gt;                args.IsValid = true;&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            else&lt;br /&gt;&lt;br /&gt;            {&lt;br /&gt;&lt;br /&gt;                args.IsValid = false;&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;/pre&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;Note: Please remove _ from above code appearing before HTML Tags (for e.g.: _table, _td, _tr)&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:78%;"&gt;3. Sign the assembly with Strong Key Name file.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;4. Compile the code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Configuring Portal to use Captcha WebPart&lt;br /&gt;&lt;span style="font-size:78%;"&gt;1. Navigate to Blog’s site.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;2. Click on Comments link under any blog post. (&lt;/span&gt;&lt;a href="http://provpc:24106/ACME/Lists/Posts/Post.aspx?ID=1#Comments&amp;amp;PageView=Shared"&gt;&lt;span style="font-size:78%;"&gt;http://provpc:24106/ACME/Lists/Posts/Post.aspx?ID=1#Comments&amp;amp;PageView=Shared&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;3. Click Site Actions -&gt; Edit Page.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;4. Click Add a Web Part.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;5. Select CaptchaWebPart from category Miscellaneous under All Web Parts.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;6. Click edit -&gt; Modify Shared Web Part.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;7. Select Chrome Type as None.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;8. Click OK.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;9. Align CaptchaWebPart below New Comment WebPart.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;10.Click Exit Edit Mode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;The CAPTCHA WebPart will appear as below:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_F7Uq4dyJ-Pw/SFjLdBmF1QI/AAAAAAAAAIU/6ppGCd9ivQQ/s1600-h/CAPTCHA_on_comments.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5213140268186195202" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_F7Uq4dyJ-Pw/SFjLdBmF1QI/AAAAAAAAAIU/6ppGCd9ivQQ/s320/CAPTCHA_on_comments.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Code Download:&lt;/b&gt;&lt;br /&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/CAPTCHA/CAPTCHA.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-4853385732742656634?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eDHN0J-8r5hv9PZJz7eEGZBZQ8A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eDHN0J-8r5hv9PZJz7eEGZBZQ8A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eDHN0J-8r5hv9PZJz7eEGZBZQ8A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eDHN0J-8r5hv9PZJz7eEGZBZQ8A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/29JNnbQIdg4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/4853385732742656634/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=4853385732742656634&amp;isPopup=true" title="24 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/4853385732742656634?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/4853385732742656634?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/29JNnbQIdg4/captcha-for-sharepoint-blog.html" title="CAPTCHA for SharePoint Blog" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_F7Uq4dyJ-Pw/SFjLdBmF1QI/AAAAAAAAAIU/6ppGCd9ivQQ/s72-c/CAPTCHA_on_comments.JPG" height="72" width="72" /><thr:total>24</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/06/captcha-for-sharepoint-blog.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8AQH8-fyp7ImA9WxdQEUU.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-5410571063729830098</id><published>2008-06-11T17:13:00.002+05:30</published><updated>2008-06-11T17:17:21.157+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-11T17:17:21.157+05:30</app:edited><title>Exposing SharePoint Workflow As Web Service</title><content type="html">&lt;h1 style="MARGIN: 24pt 0cm 0pt"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;/span&gt; &lt;/h1&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family:Calibri;"&gt;1.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;Create a New Project in Visual Studio 2005, by selecting the template: &lt;b style="mso-bidi-font-weight: normal"&gt;Sequential Workflow Library&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family:Calibri;"&gt;2.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Add an Interface&lt;/b&gt; to your project (e.g. Interface1.cs)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family:Calibri;"&gt;3.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Add a Method&lt;/b&gt; to above Interface.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;The code will look like as below:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;color:blue;"   &gt;namespace&lt;/span&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt; WorkflowAsWebService&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;{&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;&lt;span style="mso-tab-count: 1"&gt;      &lt;/span&gt;&lt;span style="color:blue;"&gt;interface&lt;/span&gt; &lt;span style="color:teal;"&gt;Interface1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;&lt;span style="mso-tab-count: 1"&gt;      &lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt; HelloWorld(&lt;span style="color:blue;"&gt;string&lt;/span&gt; strName);&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;&lt;span style="mso-tab-count: 1"&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="LINE-HEIGHT: 115%; mso-no-proof: yesfont-family:'Courier New';font-size:10;"  &gt;}&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family:Calibri;"&gt;4.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;Drag and drop &lt;b style="mso-bidi-font-weight: normal"&gt;WebServiceInput&lt;/b&gt; activity.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;Set the following properties&lt;/span&gt;&lt;/p&gt;&lt;table class="MsoNormalTable" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid black .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid black; mso-border-insidev: .5pt solid black" cellspacing="0" cellpadding="0" border="1"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="font-family:Calibri;"&gt;Property&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="font-family:Calibri;"&gt;Value&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 1"&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;IsActivating&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;True&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 2"&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;InterfaceType&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;WorkflowAsWebService.Interface1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes"&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;MethodName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;HelloWorld&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;Bind the parameter strName to a new member. For e.g.: webServiceInputActivity1_strName1&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family:Calibri;"&gt;5.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;Drag and drop &lt;b style="mso-bidi-font-weight: normal"&gt;WebServiceOutput&lt;/b&gt; activity.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;Set the following properties&lt;/span&gt;&lt;/p&gt;&lt;table class="MsoNormalTable" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid black .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid black; mso-border-insidev: .5pt solid black" cellspacing="0" cellpadding="0" border="1"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="font-family:Calibri;"&gt;Property&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="font-family:Calibri;"&gt;Value&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes"&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: black 1pt solid; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;InputActivityName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 239.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: black 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt" valign="top" width="319"&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;webServiceInputActivity1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;Bind the parameter ReturnValue to a new member. For e.g.: webServiceOutputActivity1__ReturnValue_1&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yesfont-family:'Courier New';font-size:10;"  &gt;&lt;span style="mso-list: Ignore"&gt;6.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;Write a code to handle the event &lt;/span&gt;&lt;span style="LINE-HEIGHT: 115%; mso-no-proof: yesfont-family:'Courier New';font-size:10;"  &gt;webServiceInputActivity1_InputReceived&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="font-family:Calibri;"&gt;The code will look like as below:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;color:blue;"   &gt;private&lt;/span&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; webServiceInputActivity1_InputReceived(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color:teal;"&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;{&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="mso-no-proof: yes;font-family:'Courier New';font-size:10;"  &gt;webServiceOutputActivity1__ReturnValue_1 = &lt;span style="color:maroon;"&gt;"Hello "&lt;/span&gt; + webServiceInputActivity1_strName1;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="LINE-HEIGHT: 115%; mso-no-proof: yesfont-family:'Courier New';font-size:10;"  &gt;}&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family:Calibri;"&gt;7.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri;"&gt;Right Click on the Project Name in Solution Explorer and select the option &lt;b style="mso-bidi-font-weight: normal"&gt;Publish as Web Service&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-5410571063729830098?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/doodboopfM_WJo2_uC6saFMF8Q4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/doodboopfM_WJo2_uC6saFMF8Q4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/doodboopfM_WJo2_uC6saFMF8Q4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/doodboopfM_WJo2_uC6saFMF8Q4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/6T0emJweq_0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/5410571063729830098/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=5410571063729830098&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/5410571063729830098?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/5410571063729830098?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/6T0emJweq_0/exposing-sharepoint-workflow-as-web.html" title="Exposing SharePoint Workflow As Web Service" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/06/exposing-sharepoint-workflow-as-web.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QAQ3szcCp7ImA9WxdXGUQ.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-5075582601140256408</id><published>2008-06-10T15:09:00.005+05:30</published><updated>2008-07-02T15:05:42.588+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-02T15:05:42.588+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Wiki" /><title>SharePoint Wiki: Create pages based on a template</title><content type="html">&lt;p style="MARGIN: 0cm 0cm 0pt"&gt;&lt;span style="font-size:130%;"&gt;Creating Wiki-Pages from a Template&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;To make Wiki pages look uniform, it would be handy if there was always the same template used when the pages are created. Unfortunately, WSS 3.0/MOSS 2007 doesn't support this functionality (yet). &lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:130%;"&gt;The configuration part&lt;/span&gt;&lt;/p&gt;&lt;ol style="MARGIN-TOP: 0cm" type="1"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Create a WIKI site.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Create a Custom List called something like "Page Templates".&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Add a custom column "Template" and make it multi-line rich-text including pictures etc.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Now create your HTML Template.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Copy your HTML (only the part inside the &amp;lt;body&amp;gt; of course) and add an entry in your custom list. In my example, the title is "Wikipedia" and in the "Template Column" switch to HTML view and paste your HTML Template.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;If your template needs a separate stylesheet, you must proceed like with any other stylesheet in MOSS (and make sure it doesn't interfere with the standard styles so your layout gets corrupted.):&lt;/span&gt; &lt;/li&gt;&lt;ol style="MARGIN-TOP: 0cm" type="a"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Upload the style sheet to the appropriate location in the Styles Library.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Add a link to the style-sheet to the master page (Example: &amp;lt;SharePoint:CssRegistration name="&amp;lt;% $SPUrl:~sitecollection/Style Library/wikipedia_common.css %&amp;gt;" runat="server"/&amp;gt;)&lt;/span&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:130%;"&gt;The development part&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;This is a quick'n'dirty approach in a development environment and you mustn't change standard MOSS-files! If you want to use this in a real environment, create a custom site definition where the Wiki Pages list doesn't point to &lt;b&gt;_layouts/CreateWebPage.aspx&lt;/b&gt; but to your own page which is deployed with your custom site definition. &lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Create a new class-library.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Make sure it will be signed.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Add two references:&lt;/span&gt; &lt;ol style="MARGIN-TOP: 0cm" type="a"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Microsoft.SharePoint.dll (12\ISAPI)&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Microsoft.SharePoint.ApplicationPages.dll (\12\CONFIG\BIN)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Create your class inheriting from CreateWebPage as shown in the code example.&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="MARGIN: 0cm 0cm 0pt"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #c8cdde 1pt solid; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none"&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;using System;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;using System.Web.UI;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;using System.Web.UI.WebControls;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;using Microsoft.SharePoint.ApplicationPages;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;using Microsoft.SharePoint.WebControls;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;using Microsoft.SharePoint;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;namespace CustomTemplateForWikis&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;public class EnhancedCreateWebpage : CreateWebPage&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;protected ListFieldIterator listFieldIterator;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;protected string template;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;protected Label lblTemplateID;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;protected DropDownList ddltemplateList;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;public EnhancedCreateWebpage()&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;protected override void OnPreRender(EventArgs e)&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;if (!this.Page.IsPostBack)&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FillTemplateDropDown();&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;// Get the templates list&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;SPList templatesList = this.listFieldIterator.Web.Lists["Page Templates"];&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;if (TemplateSourceDirectory != null &amp;amp;&amp;amp; templatesList.Items.Count &amp;gt; 0)&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;// Just take the first template for demonstration&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;//int templateID = int.Parse(Request.QueryString["TemplateID"].ToString());&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;int templateID = int.Parse(ddltemplateList.SelectedValue) - 1;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;this.template = templatesList.Items[templateID]["Template"].ToString();&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;templatesList = null;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;this.FindRichTextControl(listFieldIterator);&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;base.OnPreRender(e);&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;private void FindRichTextControl(Control control)&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;foreach (Control childControl in control.Controls)&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;if (childControl.GetType().Equals(typeof(Microsoft.SharePoint.WebControls.RichTextField)))&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;((RichTextField)childControl).Value = this.template;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;return;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;this.FindRichTextControl(childControl);&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;private void FillTemplateDropDown()&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;if (ddltemplateList != null)&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;SPList templatesList = this.listFieldIterator.Web.Lists["Page Templates"];&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;ddltemplateList.DataSource = templatesList.Items;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;ddltemplateList.DataTextField = "Title";&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;ddltemplateList.DataValueField = "ID";&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;ddltemplateList.DataBind();&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;}&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="MARGIN: 0cm 0cm 0pt"&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style="MARGIN-TOP: 0cm" type="1" start="5"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Compile and deploy to the GAC.&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Make changes in CreateWebPage.aspx&lt;/span&gt; &lt;ol style="MARGIN-TOP: 0cm" type="a"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Open the file "12\TEMPLATE\LAYOUTS\CreateWebPage.aspx" (a backup could maybe be handy…)&lt;/span&gt; &lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Change the header to point to your assembly: &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/li&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #c8cdde 1pt solid; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none"&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&amp;lt;%@ Assembly Name="Mho.SharePoint.Trials, Version=&lt;a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.0.0.0/" target="_blank"&gt;1.0.0.0&lt;/a&gt;, Culture=neutral, PublicKeyToken=261ba54b9846991b"%&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;ol style="MARGIN-TOP: 0cm" type="1" start="6"&gt;&lt;ol style="MARGIN-TOP: 0cm" type="a" start="3"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Set the correct class to inherit from &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #c8cdde 1pt solid; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none"&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&amp;lt;%@ Page Language="C#" Inherits="Mho.SharePoint.Trials.EnhancedCreateWebpage"…&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;ol style="MARGIN-TOP: 0cm" type="1" start="6"&gt;&lt;ol style="MARGIN-TOP: 0cm" type="a" start="4"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Add the name of the "ListFieldIterator" control you've used in the class code as its ID: &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #c8cdde 1pt solid; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none"&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&amp;lt;SharePoint:ListFieldIterator ID="listFieldIterator"…&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;ol style="MARGIN-TOP: 0cm" type="1" start="6"&gt;&lt;ol style="MARGIN-TOP: 0cm" type="a" start="5"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Add Dropdown: &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #c8cdde 1pt solid; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none"&gt;&lt;p style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 0cm; BACKGROUND: #dddddd; PADDING-BOTTOM: 0cm; MARGIN: 0cm 0cm 0pt; BORDER-LEFT: medium none; LINE-HEIGHT: 140%; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none; TEXT-ALIGN: justify"&gt;&lt;span style="LINE-HEIGHT: 140%;font-size:9;" &gt;&amp;lt;asp:DropDownList ID="ddltemplateList" AutoPostBack="true" runat="server" /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;ol style="MARGIN-TOP: 0cm" type="1" start="7"&gt;&lt;li style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;span style="font-size:85%;"&gt;Recycle the application pool and try it out.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"&gt;&lt;strong&gt;Code Download:&lt;/strong&gt;&lt;/p&gt;&lt;iframe style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginwidth="0" marginheight="0" src="http://cid-1394cec7c108882e.skydrive.live.com/embedrowdetail.aspx/Public/SharePoint%20Code/Custom%20Template%20For%20Wikis/CustomTemplateForWikis.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-5075582601140256408?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TRb4gHc-0xZ9EfiYJUdHf4JNu6w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TRb4gHc-0xZ9EfiYJUdHf4JNu6w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TRb4gHc-0xZ9EfiYJUdHf4JNu6w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TRb4gHc-0xZ9EfiYJUdHf4JNu6w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/boFtxrOWgyw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/5075582601140256408/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=5075582601140256408&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/5075582601140256408?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/5075582601140256408?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/boFtxrOWgyw/sharepoint-wiki-create-pages-based-on.html" title="SharePoint Wiki: Create pages based on a template" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/06/sharepoint-wiki-create-pages-based-on.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AAQnY-cSp7ImA9WxdaF0s.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-5006761692045458801</id><published>2008-06-10T14:37:00.001+05:30</published><updated>2008-08-26T20:12:23.859+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T20:12:23.859+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Site Template" /><title>Installing Custom Site Templates as Top Level Templates in Central Administration</title><content type="html">&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;You can save sites in SharePoint Server 2007 as custom site templates using the browser via the Site Settings –&gt; Look and Feel &gt; Save Site as Template.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;Note:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;If you have the Office SharePoint Server Publishing Feature enabled, then the Save Site as Template link will not appear.&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;The &lt;strong&gt;Save Site as Template&lt;/strong&gt; link will save the site template to the site collection &lt;strong&gt;Site Template Gallery&lt;/strong&gt; and the site template will then become available for subsites within the site collection.&lt;br /&gt;&lt;br /&gt;But, if you want to create a top level site template which you can use as the root site when creating new site collections throughout Web applications, you’ll need to use the SharePoint &lt;strong&gt;STSADM&lt;/strong&gt; command line tool to install the custom site template.&lt;br /&gt;&lt;br /&gt;The top level site templates are accessed when creating a new site collection in Central Administration –&lt;br /&gt;&lt;strong&gt;Central Administration &gt; Application Management &gt; Create Site Collection&lt;/strong&gt;.&lt;br /&gt;SharePoint will automatically generate a Custom tab in the Template Selection where any custom site templates will be available for selection.&lt;br /&gt;&lt;br /&gt;To install a custom site template using STSADM, where the site template is named exercise and located in the root of Drive C:&lt;br /&gt;&lt;em&gt;stsadm –o addtemplate –filename c:\exercise.stp –title exercise &lt;/em&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;br /&gt;An &lt;em&gt;iisreset&lt;/em&gt; will be necessary before the template is made available.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#333333;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Other template-related commands include:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;1. To enumerate custom site templates on a SharePoint server:&lt;br /&gt;&lt;/strong&gt;&lt;em&gt;stsadm –o enumtemplates&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;2. To delete a custom site template:&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;stsadm –o deletetemplate –title exercise&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;em&gt;An iisreset will be necessary to complete template removal.&lt;/em&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/26556346-5006761692045458801?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xji0Dt365c4k2Ncv-HErcT0vZxc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xji0Dt365c4k2Ncv-HErcT0vZxc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xji0Dt365c4k2Ncv-HErcT0vZxc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xji0Dt365c4k2Ncv-HErcT0vZxc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/DMeqJSFIq-E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/5006761692045458801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=5006761692045458801&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/5006761692045458801?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/5006761692045458801?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/DMeqJSFIq-E/installing-custom-site-templates-as-top.html" title="Installing Custom Site Templates as Top Level Templates in Central Administration" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>3</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/06/installing-custom-site-templates-as-top.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EHQXg7eCp7ImA9WxdaF0s.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8676812152714182545</id><published>2008-04-11T17:48:00.001+05:30</published><updated>2008-08-26T20:10:30.600+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T20:10:30.600+05:30</app:edited><title>SharePoint : Make a list view that shows only items dated 'This Week'</title><content type="html">&lt;span style="font-size:85%;"&gt;1. Create a &lt;strong&gt;datetime&lt;/strong&gt; column named &lt;strong&gt;Date&lt;/strong&gt;.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Create a &lt;strong&gt;calculated&lt;/strong&gt; column named &lt;strong&gt;WeekStart&lt;/strong&gt; returning type &lt;strong&gt;datetime&lt;/strong&gt;, with the calculation: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;=IF(TEXT(WEEKDAY(Date),"ddd")="Mon",Date,IF(TEXT(WEEKDAY(Date-1),"ddd")="Mon ",Date-1,IF(TEXT(WEEKDAY(Date-2),"ddd")="Mon",Date-2,IF(TEXT(WEEKDAY(Date-3) ,"ddd")="Mon",Date-3,IF(TEXT(WEEKDAY(Date-4),"ddd")="Mon",Date-4,IF(TEXT(WEE KDAY(Date-5),"ddd")="Mon",Date-5,Date-6))))))&lt;/em&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. Create a &lt;strong&gt;calculated&lt;/strong&gt; column named &lt;strong&gt;WeekEnd&lt;/strong&gt; returning type &lt;strong&gt;datetime&lt;/strong&gt;, with the calculation: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;=IF(TEXT(WEEKDAY(Date),"ddd")="Sun",Date,IF(TEXT(WEEKDAY(Date+1),"ddd")="Sun ",Date+1,IF(TEXT(WEEKDAY(Date+2),"ddd")="Sun",Date+2,IF(TEXT(WEEKDAY(Date+3) ,"ddd")="Sun",Date+3,IF(TEXT(WEEKDAY(Date+4),"ddd")="Sun",Date+4,IF(TEXT(WEE KDAY(Date+5),"ddd")="Sun",Date+5,Date+6)))))) &lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;4. Create a &lt;strong&gt;view&lt;/strong&gt; with the following &lt;strong&gt;filter&lt;/strong&gt;: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;WeekStart &lt;= [Today] AND WeekEnd &gt;= [Today]&lt;/em&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-8676812152714182545?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/taDQO3zFRUEGFyCaQfHP5_yUJ9g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/taDQO3zFRUEGFyCaQfHP5_yUJ9g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/taDQO3zFRUEGFyCaQfHP5_yUJ9g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/taDQO3zFRUEGFyCaQfHP5_yUJ9g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/7Z6-Bu4JI8Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8676812152714182545/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8676812152714182545&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8676812152714182545?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8676812152714182545?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/7Z6-Bu4JI8Q/sharepoint-make-list-view-that-shows.html" title="SharePoint : Make a list view that shows only items dated 'This Week'" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/04/sharepoint-make-list-view-that-shows.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkYDSHs5fSp7ImA9WxdaF0s.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-8036007415549818352</id><published>2008-04-08T15:50:00.002+05:30</published><updated>2008-08-26T19:46:19.525+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-26T19:46:19.525+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007" /><category scheme="http://www.blogger.com/atom/ns#" term="Custom Theme" /><title>Custom Site Theme for SharePoint 2007 (MOSS 2007) and WSS 3.0</title><content type="html">&lt;div align="justify"&gt;Recently I shifted to SharePoint 2007, after working with ASP .Net for more than couple of years.&lt;br /&gt;&lt;/div&gt;&lt;p align="justify"&gt;When it's about developing a web application, the first thing all concentrate is on the UI part of it. Everyone wish to see his/her site with some good UI elements. The SharePoint 2007 gives you more flexibility by introducing the concept of Themes. (Now a days ASP .Net also does support Themes).&lt;/p&gt;&lt;p align="justify"&gt;The easiest and the fastest way to apply the same look and feel on any SharePoint site is creating a site theme.&lt;br /&gt;&lt;br /&gt;A SharePoint site theme basically consists of theme.inf, theme.css, and image files. &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Theme.inf&lt;/strong&gt; file simply represents the title of the theme. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Theme.css&lt;/strong&gt; is a stylesheet file that defines colors, header images and layouts of a site &lt;/li&gt;&lt;li&gt;&lt;div align="justify"&gt;&lt;strong&gt;Image files&lt;/strong&gt; can be referenced here to display on the page.&lt;br /&gt;&lt;br /&gt;By creating a custom site theme, you can easily change the style but in fact, writing and editing the stylesheet can be somewhat challenging when you have more than a hundred of elements to deal with.&lt;br /&gt;&lt;br /&gt;Here is a short procedure of creating a custom site theme named "Ghost":&lt;br /&gt;&lt;br /&gt;1. Copy any theme folder in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\THEMES" folder and paste with its name replaced with "Ghost". In this example, copy GRANITE folder.&lt;br /&gt;&lt;br /&gt;2. In Ghost folder, rename GRANITE.INF file to GHOST.INF in upper case.&lt;br /&gt;&lt;br /&gt;3. Open GHOST.INF file with notepad.&lt;br /&gt;&lt;br /&gt;4. Change the value of title under [Info] to Ghost.&lt;br /&gt;&lt;br /&gt;5. Replace every word, Granite, under [titles] with Ghost.&lt;br /&gt;&lt;br /&gt;6. Open "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\SPTHEMES.XML" file with notepad.&lt;br /&gt;&lt;br /&gt;7. Add the following lines under &lt;spthemes&gt;tag:&lt;br /&gt;&lt;templates&gt;&lt;br /&gt;&lt;templateid&gt;Ghost&lt;/templateid&gt;&lt;br /&gt;&lt;displayname&gt;Ghost&lt;/displayname&gt;&lt;br /&gt;&lt;description&gt;Ghost theme.&lt;/description&gt;&lt;br /&gt;&lt;thumbnail&gt;images/thghost.gif&lt;/thumbnail&gt;&lt;br /&gt;&lt;preview&gt;images/thghost.gif&lt;/preview&gt;&lt;br /&gt;&lt;/templates&gt;&lt;br /&gt;Notice that preview and thumbnail paths are images/thghost.gif. By default, MOSS 2007 and WSS 3.0 will not have such image files.&lt;br /&gt;&lt;br /&gt;8. In order to display thumbnail and preview correctly, you will need to capture the screen and save the file in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES" folder with thghost.gif name. You can change the .gif file name if you change the thumbnail and preview file names in &lt;templates&gt;tag.&lt;br /&gt;&lt;br /&gt;9. Do an iisreset for the server to recognize the new theme.&lt;br /&gt;&lt;br /&gt;Pretty simple procedure. Now you are ready to test your new theme. In Site Settings, you can now choose Ghost theme; however, the theme will not differ from Granite theme. Now, it is time for you to play with theme.css file! &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-8036007415549818352?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8JzqDkXD41qA4X6HyQUToxouXa8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8JzqDkXD41qA4X6HyQUToxouXa8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8JzqDkXD41qA4X6HyQUToxouXa8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8JzqDkXD41qA4X6HyQUToxouXa8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/F-ln_sU-Hgg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/8036007415549818352/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=8036007415549818352&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8036007415549818352?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/8036007415549818352?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/F-ln_sU-Hgg/custom-site-theme-for-sharepoint-2007.html" title="Custom Site Theme for SharePoint 2007 (MOSS 2007) and WSS 3.0" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2008/04/custom-site-theme-for-sharepoint-2007.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0IBSX4yeSp7ImA9WxdQF0o.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-114710893567275542</id><published>2006-05-08T22:31:00.003+05:30</published><updated>2008-06-18T14:29:18.091+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-18T14:29:18.091+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="messenger status" /><title>Add Yahoo! Messenger Status on Your Website</title><content type="html">If you ever wonder how to show your Yahoo! Messenger online status in your web page you’ll find an answer here. Yahoo! provides a URL which allows getting this information in graphic or text mode.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;br /&gt;Before you go, please be sure that your online status is not hidden in your account settings.&lt;br /&gt;&lt;br /&gt;Here is the URL template and the parameters that you have to supply when calling it.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;http://opi.yahoo.com/online?u={your yahoo id}&amp;amp;m={gt}&amp;amp;t={123}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A bit description of the parameters:&lt;br /&gt;&lt;li&gt;u - Your Yahoo! ID&lt;br /&gt;&lt;li&gt;m - Status mode, either graphic (g) or text (t)&lt;br /&gt;&lt;li&gt;t - Type of graphic or text to be displayed&lt;br /&gt;&lt;br /&gt;An example is shown below:&lt;br /&gt;&amp;lt;img src="http://opi.yahoo.com/online?u=nanddeepnachan&amp;amp;m=g&amp;amp;t=0" /&amp;gt;&lt;br /&gt;&amp;lt;img src="http://opi.yahoo.com/online?u=nanddeepnachan&amp;amp;m=g&amp;amp;t=1" /&amp;gt;&lt;br /&gt;&amp;lt;img src="http://opi.yahoo.com/online?u=nanddeepnachan&amp;amp;m=g&amp;amp;t=2" /&amp;gt;&lt;br /&gt;&lt;br /&gt;And here goes the result:&lt;br /&gt;&lt;img src="http://opi.yahoo.com/online?u=saryada&amp;amp;m=g&amp;amp;t=0" /&gt;&lt;br /&gt;&lt;img src="http://opi.yahoo.com/online?u=saryada&amp;amp;m=g&amp;amp;t=1" /&gt;&lt;br /&gt;&lt;img src="http://opi.yahoo.com/online?u=saryada&amp;amp;m=g&amp;amp;t=2" /&gt;&lt;/li&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-114710893567275542?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/T1BHFYaETKQMvsjq58icQ0kvQ18/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/T1BHFYaETKQMvsjq58icQ0kvQ18/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/T1BHFYaETKQMvsjq58icQ0kvQ18/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/T1BHFYaETKQMvsjq58icQ0kvQ18/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/bELRbC6wEhA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/114710893567275542/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=114710893567275542&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/114710893567275542?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/114710893567275542?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/bELRbC6wEhA/add-yahoo-messenger-status-on-your.html" title="Add Yahoo! Messenger Status on Your Website" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2006/05/add-yahoo-messenger-status-on-your.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EESHozfCp7ImA9WxdQF0o.&quot;"><id>tag:blogger.com,1999:blog-26556346.post-114551778574429811</id><published>2006-04-20T12:41:00.002+05:30</published><updated>2008-06-18T14:30:09.484+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-18T14:30:09.484+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="messenger status" /><title>Change MSN Messenger Status Programmetically</title><content type="html">C# Application to change MSN Messenger Status.&lt;br /&gt;&lt;br /&gt;MSN Messenger 7.0 introduced the notion of a personal message, a small message that's not poisening your nickname if you want to share something with your contacts. Quite a lot of people are using this nowadays to put their favorite quote over there or just to share a random thought. Beside of the manual entry of a personal message, such a message can be automatically generated as well by an external application.&lt;br /&gt;&lt;br /&gt;This way, it's possible to show your friends "what you're listening to". Basically, a music player such as Windows Media Player does some IPC (Inter-Process Communication) to MSN Messager using the Win32 API every time the song which is currently playing changes. The nice thing is that you can write your own plug-in using some relatively simple C#:&lt;br /&gt;&lt;br /&gt;1. Create a Windows Forms application and open the source code view for the Form1.cs form.&lt;br /&gt;&lt;br /&gt;2. Add the namespace:&lt;br /&gt;using System.Runtime.InteropServices;&lt;br /&gt;&lt;br /&gt;3. In the class definition, put two DllImports as follows:&lt;br /&gt;&lt;br /&gt;[DllImport("user32", EntryPoint="SendMessageA")]private static extern int SendMessage(int Hwnd, int wMsg, int wParam, int lParam);&lt;br /&gt;&lt;br /&gt;[DllImport("user32", EntryPoint="FindWindowExA")]private static extern int FindWindowEx(int hWnd1, int hWnd2, string lpsz1, string lpsz2);&lt;br /&gt;&lt;br /&gt;4. Import the WM_COPYDATA constant for the Win32 API calls:&lt;br /&gt;private const short WM_COPYDATA = 74;&lt;br /&gt;&lt;br /&gt;5. Declare a struct for the IPCs we're going to perform:&lt;br /&gt;public struct COPYDATASTRUCT&lt;br /&gt;{&lt;br /&gt;     public int dwData;&lt;br /&gt;     public int cbData;&lt;br /&gt;     public int lpData;&lt;br /&gt;}&lt;br /&gt;public COPYDATASTRUCT data;&lt;br /&gt;&lt;br /&gt;6. Function that makes interop to MSN Messenger&lt;br /&gt;public int VarPtr(object e)&lt;br /&gt;{&lt;br /&gt;     GCHandle GC = GCHandle.Alloc(e, GCHandleType.Pinned);&lt;br /&gt;     int gc = GC.AddrOfPinnedObject().ToInt32();&lt;br /&gt;     GC.Free();&lt;br /&gt;     return gc;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Now the plumbing is done, we can start implementing the IPC-method to MSN. The only thing you need to know is the identification string of the MSN Messager 7 application, which is "MsnMsgrUIManager".&lt;br /&gt;&lt;br /&gt;The code for the method is displayed below:&lt;br /&gt;private void SendMSNMessage(bool enable, string category, string message)&lt;br /&gt;{&lt;br /&gt;     string buffer = "file://0/" + category + "file://0/" + (enable ? "1" : "0") + "file://0{0}//0" + message + "file://0//0//0//0/0";&lt;br /&gt;     int handle = 0;&lt;br /&gt;     data.dwData = 0x0547;&lt;br /&gt;     data.lpData = VarPtr(buffer);&lt;br /&gt;     data.cbData = buffer.Length * 2;&lt;br /&gt;     handle = FindWindowEx(0, handle, "MsnMsgrUIManager", null);&lt;br /&gt;&lt;br /&gt;     if (handle &gt; 0)&lt;br /&gt;     {&lt;br /&gt;          SendMessage(handle, WM_COPYDATA, 0, VarPtr(data));&lt;br /&gt;     }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Basically, this method takes three parameters.&lt;br /&gt;The first indicated whether to display a message or not.&lt;br /&gt;The second one contains a category which can be "Office", "Games" or "Music".&lt;br /&gt;The last parameter takes the message itself.&lt;br /&gt;&lt;br /&gt;Assuming MSN Messenger 7.0 is running on your machine (in the current user session), a call to:&lt;br /&gt;SendMSNMessage(true, "Office", "Hello World"); would put "(Office logo) Hello World" behind your nickname in MSN. By calling: SendMSNMessage(false, "Office", ""); the message will be gone and the old personal message of MSN will be restored. Note that for this to work, you should put on the feature "What I'm listening to" in MSN 7.0. It's this feature which listens to incoming IPC messages in order to display them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26556346-114551778574429811?l=nanddeepnachan.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6hfCO9iZObq8YfSPkrbe8fvA6cI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6hfCO9iZObq8YfSPkrbe8fvA6cI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6hfCO9iZObq8YfSPkrbe8fvA6cI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6hfCO9iZObq8YfSPkrbe8fvA6cI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/NanddeepsBlog/~4/VnfpuaHfImc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nanddeepnachan.blogspot.com/feeds/114551778574429811/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=26556346&amp;postID=114551778574429811&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/114551778574429811?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/26556346/posts/default/114551778574429811?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/NanddeepsBlog/~3/VnfpuaHfImc/change-msn-messenger-status.html" title="Change MSN Messenger Status Programmetically" /><author><name>Nanddeep Nachan</name><uri>http://www.blogger.com/profile/04029060924922682175</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="29" height="32" src="http://3.bp.blogspot.com/_F7Uq4dyJ-Pw/SkOPpzP6yAI/AAAAAAAABLA/Sw-5Z52z2Sg/S220/ND.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://nanddeepnachan.blogspot.com/2006/04/change-msn-messenger-status.html</feedburner:origLink></entry></feed>

