<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5054235627030826300</id><updated>2026-01-11T19:43:53.689+05:30</updated><category term="Content Type"/><category term="Modal Dialog"/><category term="SharePoint 2010"/><category term="Workflow with Visio"/><category term="Workflow with Visio and Designer"/><category term="Approval Workflow"/><category term="Asp.net MVC Web Application"/><category term="Attach workflow to list using Object Model"/><category term="BCS"/><category term="Business Connectivity Service"/><category term="Chart web part"/><category term="Chart web part with Database Connection"/><category term="Content Type Hub"/><category term="Content Type Hub on Blank site"/><category term="Content type publishing hub"/><category term="Custom Control"/><category term="Database Connection for Chart Web part"/><category term="Import workflow in  Sharepoint Designer 2010"/><category term="ItemAdding with SpLongOperation"/><category term="Jquery Selector"/><category term="MVC"/><category term="MVC Application"/><category term="SPCache"/><category term="Security Token Service"/><category term="SharePoint 2007 visual upgrade"/><category term="SharePoint Cache"/><category term="Sharepoint"/><category term="Sharepoint 2010 Modal dialog"/><category term="Sharepoint Approval Workflow"/><category term="Sharepoint Chart Web part"/><category term="Sharepoint Designer Workflow"/><category term="SpLongOperation"/><category term="Taxonomy Feature"/><category term="Tree View"/><category term="Upgrade to SharePoint 2010"/><category term="Visual Upgrade in SharePoint 2010"/><category term="claim based authentication sharepoint 2010"/><category term="content type hub not publishing"/><category term="programmatically associate a workflow to a list"/><title type='text'>SharePoint For Dummies</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-7609014576319381795</id><published>2013-02-13T12:03:00.001+05:30</published><updated>2013-06-14T15:34:00.040+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net MVC Web Application"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC Application"/><title type='text'>Start With MVC Application Part 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;Before we starting to create MVC Application we required customer table on which we create our application. So first create customer table as show in below&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;CREATE TABLE [dbo].[tblCustomer]&lt;br /&gt;(&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[Id] [int] IDENTITY(1,1) NOT NULL,&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; 
&lt;/span&gt;[Name] [varchar](50) NOT NULL,&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; 
&lt;/span&gt;[Address] [varchar](500) NOT NULL,&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; 
&lt;/span&gt;[City] [varchar](50) NOT NULL,&lt;/b&gt;&lt;b&gt;[State] [varchar](50) NOT NULL,&lt;/b&gt;&lt;b&gt;[Country] [varchar](50) NULL,&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;
&lt;/span&gt;[Phone] [varchar](15) NULL,&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; 
&lt;/span&gt;[EmailId] [varchar](50) NULL,&lt;/b&gt;&lt;b&gt;&lt;br /&gt;CONSTRAINT [PK_tblCustomer] PRIMARY KEY CLUSTERED&amp;nbsp;&lt;/b&gt;&lt;b&gt;(&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[Id] ASC&lt;/b&gt;&lt;b&gt;)WITH (PAD_INDEX &amp;nbsp;= OFF, STATISTICS_NORECOMPUTE &amp;nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &amp;nbsp;= ON, ALLOW_PAGE_LOCKS &amp;nbsp;= ON) ON [PRIMARY]&lt;/b&gt;&lt;b&gt;) ON [PRIMARY]&lt;/b&gt;&lt;b&gt;GO&lt;/b&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;We creating our MVC Application with Visual Studio 2010. Start your visual studio, from File menu select New Project as shown in below. Select ASP.NET MVC 2 Web Application template (other wise download template from&amp;nbsp;http://www.asp.net/mvc)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;give name MyFirstApplication and click on Ok in next screen skip Unit Test Project Creation.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq7_zXNjoajVr6IRnamubtD3dsWb5K92T4Z0grBMKoPoimhc_MwjeaqV_mOY86O6x4mfJxznD_epC8NfcvUOBfndOR46HmzIcyuy-k8ngk0vL8iLOzvU-L-Eta1_BLJVniH7ria2lBINc/s1600/FirstScreen.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;441&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq7_zXNjoajVr6IRnamubtD3dsWb5K92T4Z0grBMKoPoimhc_MwjeaqV_mOY86O6x4mfJxznD_epC8NfcvUOBfndOR46HmzIcyuy-k8ngk0vL8iLOzvU-L-Eta1_BLJVniH7ria2lBINc/s640/FirstScreen.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;Right click on models folder and LINQ to SQL Classes with name Application, select database and drag n drop tblCustomer on design surface area with this step we completed our prerequisite of our application&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7xz8J5RJKTWJFzmSI30yclGC1ZrqLyNxLbGOXMTcSdJ7ptSlu9rvS21c-ur-gv2cBeJxc_ECItPOgMCKRx0Mh2_VJuHJbJIeRbrd6FjhCs7QJivmcYdd9Ui1rS1elyfwvC4ob9s1l6L4/s1600/CreateDatabase.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7xz8J5RJKTWJFzmSI30yclGC1ZrqLyNxLbGOXMTcSdJ7ptSlu9rvS21c-ur-gv2cBeJxc_ECItPOgMCKRx0Mh2_VJuHJbJIeRbrd6FjhCs7QJivmcYdd9Ui1rS1elyfwvC4ob9s1l6L4/s640/CreateDatabase.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;Create customer folder under views folder in which we are going to store all customer related methods.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;Now we going to create CRUD methods for Customer using MVC. First we create controller for customer for this right click on Controllers folder and add controller with name CustomerController. This is one of the most important step while creating MVC Application.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwb7mG0y60TLZKvieq-xmRN5SFxBzcefTjjbhguYBwsZaIczKGWBknv5prJ1ThCafRA8-IissrYhSJvD8JCVtfQ6C9tJjXBScWNe2I2RhLLlE9JEQElWn2hFc-v8F3rSPmmLpNJbJRpTQ/s1600/Controller.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwb7mG0y60TLZKvieq-xmRN5SFxBzcefTjjbhguYBwsZaIczKGWBknv5prJ1ThCafRA8-IissrYhSJvD8JCVtfQ6C9tJjXBScWNe2I2RhLLlE9JEQElWn2hFc-v8F3rSPmmLpNJbJRpTQ/s640/Controller.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;When we create controller Index method created it contains Index method. We use this method to show list of all record from that controller. Add following code in Index method which returns list of customers.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp;public ActionResult Index()&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp;{&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var Customers = from vcustomer in this.dbContext.tblCustomers&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select vcustomer;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return View(Customers);&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;Right click on Index method then select Add View menu from pop menu. In Add view window set parameter as shown in the picture below&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfzyS73qgG40gxYT7uvid2GQxRqxYcdWA4R7zJuOXnlePKC77-Y60dQP1UKIJ4XQloI6d63bJVI1_wlliQH-rdI77TcGIzgvzk613LVBEsK6KKx8z9YXaX2L9TTH5fvatfd6iDsHD7AeE/s1600/IndexPage.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfzyS73qgG40gxYT7uvid2GQxRqxYcdWA4R7zJuOXnlePKC77-Y60dQP1UKIJ4XQloI6d63bJVI1_wlliQH-rdI77TcGIzgvzk613LVBEsK6KKx8z9YXaX2L9TTH5fvatfd6iDsHD7AeE/s640/IndexPage.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;After clicking on Add button Visual Studio create Index.Aspx page in Views/Customer folder which will be our landing page for Customers. Now we have to add customer menu in master page for this open Site.Master page from Shared folder. &amp;nbsp;In master page add Html.ActionLink for customer as shown below&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul id=&quot;menu&quot;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;%= Html.ActionLink(&quot;Home&quot;, &quot;Index&quot;, &quot;Home&quot;)%&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;%= Html.ActionLink(&quot;Customer&quot;, &quot;Index&quot;, &quot;Customer&quot;)%&amp;gt;&amp;lt;/li&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;%= Html.ActionLink(&quot;About&quot;, &quot;About&quot;, &quot;Home&quot;)%&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;After Adding this&amp;nbsp;compiled&amp;nbsp;and run the web application.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;In next blog we going to study how to implement CRUD methods for customer object.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/7609014576319381795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2013/02/start-with-mvc-application-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7609014576319381795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7609014576319381795'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2013/02/start-with-mvc-application-part-1.html' title='Start With MVC Application Part 1'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq7_zXNjoajVr6IRnamubtD3dsWb5K92T4Z0grBMKoPoimhc_MwjeaqV_mOY86O6x4mfJxznD_epC8NfcvUOBfndOR46HmzIcyuy-k8ngk0vL8iLOzvU-L-Eta1_BLJVniH7ria2lBINc/s72-c/FirstScreen.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.856743699999925</georss:point><georss:box>18.2795338 73.534020199999929 18.761326800000003 74.17946719999992</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-7577691509408147102</id><published>2013-02-11T13:28:00.000+05:30</published><updated>2013-06-14T15:34:00.035+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint Cache"/><category scheme="http://www.blogger.com/atom/ns#" term="SPCache"/><title type='text'>How to implement SPCache in SharePoint 2010 ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Following code shows implementation of SPCache object in SharePoint 2010.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;// Object for Cacheing&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
public class TestClass&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string someData { get; set; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public TestClass(string myData)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.someData = myData;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;// SPCache Object Settings Cache Parameters&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;public class MyCache&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static SPCacheConfig cacheConfig = new SPCacheConfig();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; internal static CacheParameter[] CacheParameters = new CacheParameter[]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // DataCache&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new CacheParameter(ServiceName,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataCache,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xfffff,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PriorityType.High, &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new TimeSpan(0,60,0))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; internal const string ServiceName = &quot;CacheAppStressTest&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; internal const string DataCache = &quot;CacheAppStressTest.Data&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create Web part and add following code&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;public class CustomCache : WebPart&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Label lblMessage;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Label lblCacheData;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public CustomCache()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblMessage = new Label();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblMessage.ID = &quot;lblMessage&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblCacheData = new Label();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblCacheData.ID = &quot;lblCacheData&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected override void CreateChildControls()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte priority = 0; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyCache.CacheParameters[0].lifetime = new TimeSpan(0, 1, 0); //Set life time of parameter&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyCache.CacheParameters[0].priority = (PriorityType)priority; // Set priority of paramater&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyCache.cacheConfig.AddCaches(MyCache.CacheParameters);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPCache.Cache.Put(MyCache.DataCache, new SPCachedObject(&quot;Test&quot;, new TestClass(&quot;some data&quot;), new TimeSpan(1, 0, 0))); &amp;nbsp;// Add cache object into SPCache Collection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TestClass newClass = (TestClass)SPCache.Cache.Get(MyCache.DataCache, &quot;Test&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (newClass != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblCacheData.Text = &quot;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;&quot; + newClass.someData + &quot;&amp;lt;/b&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblCacheData.Text = &quot;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt; Null data&amp;lt;/b&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
// Remove cache object&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPCache.Cache.Delete(MyCache.DataCache, &quot;Test&quot;);&lt;br /&gt;
//Display Cache data&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblMessage.Text = string.Format(&quot;CacheHits={0}\r\nReads={1}\r\nCount={2}\r\nSizeBytes={3}\r\nHitRatio={4}&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; SPCache.Cache.TotalCacheHits, SPCache.Cache.TotalReadAttempts, SPCache.Cache.Count, SPCache.Cache.UsedBytes, SPCache.Cache.HitRatio);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyCache.cacheConfig.RemoveCaches(MyCache.CacheParameters);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.lblMessage.Text = ex.Message;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.Controls.Add(this.lblMessage);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.Controls.Add(this.lblCacheData);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/7577691509408147102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2013/02/how-to-user-spcache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7577691509408147102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7577691509408147102'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2013/02/how-to-user-spcache.html' title='How to implement SPCache in SharePoint 2010 ?'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.856743699999925</georss:point><georss:box>18.2795338 73.534020199999929 18.761326800000003 74.17946719999992</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-4580990259152410056</id><published>2013-02-04T16:51:00.002+05:30</published><updated>2013-06-14T15:34:00.023+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BCS"/><category scheme="http://www.blogger.com/atom/ns#" term="Business Connectivity Service"/><title type='text'>Access  Business Connectivity Services object using Client Application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Business Connectivity Service (BCS), enables users to read and write data from external systems - from web services, database, and Microsoft .NET Framework.&lt;br /&gt;
Following code snippet shows, how to access BCS object using Client Object Model&lt;br /&gt;
&lt;br /&gt;
We already have BCS list named &quot;Customer&quot;, contains columns Name, Address&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Specify your SharePoint Web Url&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ClientContext clientContext = new ClientContext(&quot;http://contoso:3434&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
// Specify SharePoint list name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List list = clientContext.Web.Lists.GetByTitle(&quot;Customer&quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CamlQuery query = new CamlQuery();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query.ViewXml =&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @&quot; &amp;nbsp;&amp;lt;View&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ViewFields&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldRef Name=&#39;Name&#39;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldRef Name=&#39;Address&#39;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ViewFields&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Query&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Where&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Eq&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldRef Name=&#39;Name&#39;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Value Type=&#39;Text&#39;&amp;gt;Jhon&amp;lt;/Value&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Eq&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Where&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Query&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;RowLimit&amp;gt;100&amp;lt;/RowLimit&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/View&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ListItemCollection listItems = list.GetItems(query);&lt;br /&gt;
&lt;br /&gt;
// Specify which field required to include in list object other wise it throws exception&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clientContext.Load(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; listItems, items =&amp;gt; items.Include(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item =&amp;gt; item[&quot;Name&quot;], item =&amp;gt; item[&quot;Address&quot;]));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clientContext.ExecuteQuery();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (ListItem listItem in listItems.ToList())&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;{0} ==&amp;gt; {1}&quot;, listItem[&quot;Name&quot;].ToString(), listItem[&quot;Address&quot;].ToString());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/4580990259152410056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2013/02/access-business-connectivity-services.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4580990259152410056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4580990259152410056'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2013/02/access-business-connectivity-services.html' title='Access  Business Connectivity Services object using Client Application'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-5274493682615373359</id><published>2013-01-16T11:15:00.000+05:30</published><updated>2013-06-14T15:34:00.026+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="claim based authentication sharepoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Security Token Service"/><title type='text'>An exception occurred when trying to issue security token</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;&quot;&gt;Security Token Service Application Error:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Problems:&amp;nbsp; Unable to Login with Claim base authentication
to SharePoint 2010 Site&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Errors &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
An exception
occurred when trying to issue security token: The requested service,
&#39;http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc&#39;
could not be activated. See the server&#39;s diagnostic trace logs for more
information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Or&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
WebHost failed
to process a request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;Sender Information:
System.ServiceModel.ServiceHostingEnvironment+HostingManager/15688314&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;Exception:
System.ServiceModel.ServiceActivationException: The service
&#39;/SecurityTokenServiceApplication/securitytoken.svc&#39; cannot be activated due to
an exception during compilation.&amp;nbsp; The
exception message is: Method not found: &#39;System.String
System.ServiceModel.Activation.Iis7Helper.ExtendedProtectionDotlessSpnNotEnabledThrowHelper(System.Object)&#39;..
---&amp;gt; System.MissingMethodException: Method not found: &#39;System.String
System.ServiceModel.Activation.Iis7Helper.ExtendedProtectionDotlessSpnNotEnabledThrowHelper(System.Object)&#39;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.WebConfigurationManagerWrapper.BuildExtendedProtectionPolicy(ExtendedProtectionTokenChecking
tokenChecking, ExtendedProtectionFlags flags, List`1 spnList)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.WebConfigurationManagerWrapper.GetExtendedProtectionPolicy(ConfigurationElement
element)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.ProcessWindowsAuthentication(String
siteName, String virtualPath, HostedServiceTransportSettings&amp;amp;
transportSettings)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.CreateTransportSettings(String
relativeVirtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Activation.MetabaseSettingsIis.GetTransportSettings(String
virtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Activation.MetabaseSettingsIis.GetAuthenticationSchemes(String
virtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.HttpChannelListener.ApplyHostedContext(VirtualPathExtension
virtualPathExtension, Boolean isMetadataListener)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.HttpTransportBindingElement.BuildChannelListener[TChannel](BindingContext
context)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.BindingContext.BuildInnerChannelListener[TChannel]()&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.MessageEncodingBindingElement.InternalBuildChannelListener[TChannel](BindingContext
context)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.BinaryMessageEncodingBindingElement.BuildChannelListener[TChannel](BindingContext
context)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.BindingContext.BuildInnerChannelListener[TChannel]()&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.Binding.BuildChannelListener[TChannel](Uri
listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode
listenUriMode, BindingParameterCollection parameters)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Description.DispatcherBuilder.MaybeCreateListener(Boolean
actuallyCreate, Type[] supportedChannels, Binding binding,
BindingParameterCollection parameters, Uri listenUriBaseAddress, String
listenUriRelativeAddress, ListenUriMode listenUriMode, ServiceThrottle
throttle, IChannelListener&amp;amp; result, Boolean supportContextSession)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo
stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode,
Boolean supportContextSession, IChannelListener&amp;amp; result)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription
description, ServiceHostBase serviceHost)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.ServiceHostBase.InitializeRuntime()&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHost.InitializeRuntime()&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String
normalizedVirtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; at
System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String
relativeVirtualPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;Process Name: w3wp&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;Process ID: 4780&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Solution: &lt;/b&gt;Uninstall Security Update No. - KB2756920&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://blogs.technet.com/b/praveenh/archive/2013/01/15/issue-found-with-net-framework-3-5-1-security-update-kb2756920.aspx&quot;&gt;http://blogs.technet.com/b/praveenh/archive/2013/01/15/issue-found-with-net-framework-3-5-1-security-update-kb2756920.aspx&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/5274493682615373359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2013/01/an-exception-occurred-when-trying-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5274493682615373359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5274493682615373359'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2013/01/an-exception-occurred-when-trying-to.html' title='An exception occurred when trying to issue security token'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.856743699999925</georss:point><georss:box>18.2795338 73.534020199999929 18.761326800000003 74.17946719999992</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-3603795962870937663</id><published>2013-01-03T17:35:00.000+05:30</published><updated>2013-06-14T15:34:00.016+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Custom Control"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Hide Sign in as Different User in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Hide sign in as Different User action on welcome menu using&amp;nbsp;customization&amp;nbsp;of welcome control&lt;/h2&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Open WelCome.ascx file in visual studio. you found this file in controltemplates folder. We want to show only sign out option for welcome menu. Remove menu templates as per your required and save as &quot;Custom_Welcome.ascx&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&amp;lt;%@ Register Tagprefix=&quot;SharePoint&quot; Namespace=&quot;Microsoft.SharePoint.WebControls&quot; Assembly=&quot;Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; %&amp;gt; &amp;lt;%@ Register Tagprefix=&quot;Utilities&quot; Namespace=&quot;Microsoft.SharePoint.Utilities&quot; Assembly=&quot;Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; %&amp;gt; &amp;lt;%@ Import Namespace=&quot;Microsoft.SharePoint&quot; %&amp;gt; &amp;lt;%@ Assembly Name=&quot;Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; %&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&amp;lt;%@ Control Language=&quot;C#&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;Inherits=&quot;Microsoft.SharePoint.WebControls.Welcome,Microsoft.SharePoint,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c&quot; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;AutoEventWireup=&quot;false&quot; compilationMode=&quot;Always&quot; %&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&amp;nbsp; &amp;lt;SharePoint:PersonalActions accesskey=&quot;&amp;lt;%$Resources:wss,personalactions_menu_ak%&amp;gt;&quot; ToolTip=&quot;&amp;lt;%$Resources:wss,open_menu%&amp;gt;&quot; runat=&quot;server&quot; id=&quot;ExplicitLogout&quot; Visible=&quot;false&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;CustomTemplate&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;lt;SharePoint:FeatureMenuTemplate runat=&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; FeatureScope=&quot;Site&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; Location=&quot;Microsoft.SharePoint.StandardMenu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; GroupId=&quot;PersonalActions&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; id=&quot;ID_PersonalActionMenu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; UseShortId=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;lt;SharePoint:MenuItemTemplate runat=&quot;server&quot; id=&quot;ID_Logout&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; Text=&quot;&amp;lt;%$Resources:wss,personalactions_logout%&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; Description=&quot;&amp;lt;%$Resources:wss,personalactions_logoutdescription%&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; MenuGroupId=&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; Sequence=&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; UseShortId=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; /&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;lt;/SharePoint:FeatureMenuTemplate&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/CustomTemplate&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&amp;lt;/SharePoint:PersonalActions&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&amp;lt;SharePoint:ApplicationPageLink runat=&quot;server&quot; id=&quot;ExplicitLogin&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ApplicationPageFileName=&quot;Authenticate.aspx&quot; AppendCurrentPageUrl=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Text=&quot;&amp;lt;%$Resources:wss,login_pagetitle%&amp;gt;&quot; style=&quot;display:none&quot; Visible=&quot;false&quot; /&amp;gt;&lt;/span&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;br /&gt;
Open site master page on page search for register tag of &amp;nbsp;welcome control&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Register TagPrefix=&quot;wssuc&quot; TagName=&quot;Welcome&quot; &lt;span style=&quot;background-color: yellow;&quot;&gt;src=&quot;~/_controltemplates/Welcome.ascx&quot; %&amp;gt;&lt;/span&gt;&lt;br /&gt;
replace with&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;src=&quot;~/_controltemplates/Custom_Welcome.ascx&quot; %&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Refresh the page and get happy...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/3603795962870937663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2013/01/hide-sign-in-as-different-user-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/3603795962870937663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/3603795962870937663'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2013/01/hide-sign-in-as-different-user-in.html' title='Hide Sign in as Different User in SharePoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.856743699999925</georss:point><georss:box>18.2795338 73.534020199999929 18.761326800000003 74.17946719999992</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-2962475918343441839</id><published>2012-05-15T11:58:00.003+05:30</published><updated>2013-06-14T15:34:00.012+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery Selector"/><category scheme="http://www.blogger.com/atom/ns#" term="Modal Dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2010 Modal dialog"/><title type='text'>How to open hyperlinks into modal dialog box in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
SharePoint 2010 provides new feature &quot;Modal dialog box&quot;. In this blog we shows how to open hyperlinks in modal dialog box using simple jquery selector.&lt;br /&gt;
&lt;br /&gt;
Declaration syntax for modal dialog box is as follows&lt;br /&gt;
&lt;br /&gt;
//Using the DialogOptions class.&lt;br /&gt;
var options = SP.UI.$create_DialogOptions();&lt;br /&gt;
&lt;br /&gt;
options.title = &quot;Dialog box title&quot;;&lt;br /&gt;
options.width = 300;&lt;br /&gt;
options.height = 500;&lt;br /&gt;
options.url = &quot;PageUrl&quot;;&lt;br /&gt;
&lt;br /&gt;
SP.UI.ModalDialog.showModalDialog(options);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//Using a generic object.&lt;br /&gt;
var options = {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; title: &quot;Dialog box title&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 300,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 500,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; url: &quot;PageUrl&quot; };&lt;br /&gt;
SP.UI.ModalDialog.showModalDialog(options);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we put above modal dialog syntax in jquery selector&lt;br /&gt;
&lt;br /&gt;
$(&quot;[href(selection attributes)&#39;&lt;b&gt;Condition&lt;/b&gt;&#39;]&quot;).click ( function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var options = {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;title: &quot;Dialog box title&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width: 300,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;height: 500,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url: $(this).attr(&#39;href&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;// required to override default&amp;nbsp;behavior of hyperlink tag&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
We have to open link which contains the query string parameters &quot;ShowInDialog=1&quot;, then selection condition for it&lt;br /&gt;
$(&quot;[href*=&#39;ShowInDialog=1&#39;]&quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Attribute for selection&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
!= is not equal&lt;br /&gt;
^= is starts with&lt;br /&gt;
$= is ends with&lt;br /&gt;
*= is contains&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example for selecting hyper links which contains query string parameter &quot;ShowInDialog=1&quot;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
$(&quot;[href*=&#39;ShowInDialog=1&lt;b&gt;&#39;&lt;/b&gt;]&quot;).click ( function () {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var options = {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;title: &quot;Dialog box title&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width: 300,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;height: 500,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url: $(this).attr(&#39;href&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;// required to override default&amp;nbsp;behavior of hyperlink tag&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&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;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/2962475918343441839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2012/05/how-to-open-hyperlinks-into-modal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/2962475918343441839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/2962475918343441839'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2012/05/how-to-open-hyperlinks-into-modal.html' title='How to open hyperlinks into modal dialog box in SharePoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-5439118443878811920</id><published>2012-02-01T15:44:00.000+05:30</published><updated>2013-06-14T15:34:00.028+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Modal Dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Modal Dialog in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Modal dialog is new feature provided by SharePoint 2010. SharePoint 2010 uses modal dialog box for add and update items, perform administrator tasks without redirect current page.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpyJ1jUTi6RYi_b5vHv3k0lSXnSzgc-abahNOvvU4NIbBTNqB7N7PbKvXz-lCqyV_a3l30DJZBQL1PAKKTOF0pCKngabepg3PWvj7VioRM9xsui23xFnY08PCKbKJ33MnEwGBxqJg6ZZs/s1600/dialog.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;355&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpyJ1jUTi6RYi_b5vHv3k0lSXnSzgc-abahNOvvU4NIbBTNqB7N7PbKvXz-lCqyV_a3l30DJZBQL1PAKKTOF0pCKngabepg3PWvj7VioRM9xsui23xFnY08PCKbKJ33MnEwGBxqJg6ZZs/s640/dialog.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;To use modal dialog box you have to include client library SP.UI.ModalDialog. syntax for calling modal dialog box is shown below&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
SP.UI.ModalDialog.showModalDialog({ &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; url: &quot;Url Of Page&quot;, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: &quot;Title of Page&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; allowMaximize: true/false, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; showClose: true/false, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: in pixel e.g 800, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: in pixel e.g 600, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dialogReturnValueCallback: callbackfunction &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Modal dialog box also takes SP.UI.DialogOptions as optional structure, syntax with structure is shown below&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
var Dialogoptions = SP.UI.$create_DialogOptions();&lt;br /&gt;
&lt;br /&gt;
options.title = &quot;PageTitle&quot;;&lt;br /&gt;
options.width = 600;&lt;br /&gt;
options.height = 800;&lt;br /&gt;
options.url = &quot;PageUrl&quot;;&lt;br /&gt;
dialogReturnValueCallback: callbackfunction ;&lt;br /&gt;
&lt;br /&gt;
SP.UI.ModalDialog.showModalDialog(options);&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;or you send options using simple generic object&amp;nbsp;&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
var genericoptions = {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: &quot;PageTitle&quot;;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 800,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 600,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; dialogReturnValueCallback: callbackfunction ,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; url: &quot;PageUrl&quot;;};&lt;br /&gt;
&lt;br /&gt;
SP.UI.ModalDialog.showModalDialog(options);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//Call back function syntax &lt;br /&gt;
function callbackfunction (dialogResult, returnValue) { &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;}&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/5439118443878811920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2012/02/modal-dialog-in-sharepoint-2010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5439118443878811920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5439118443878811920'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2012/02/modal-dialog-in-sharepoint-2010.html' title='Modal Dialog in SharePoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpyJ1jUTi6RYi_b5vHv3k0lSXnSzgc-abahNOvvU4NIbBTNqB7N7PbKvXz-lCqyV_a3l30DJZBQL1PAKKTOF0pCKngabepg3PWvj7VioRM9xsui23xFnY08PCKbKJ33MnEwGBxqJg6ZZs/s72-c/dialog.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-8408756440730110231</id><published>2012-01-23T13:20:00.000+05:30</published><updated>2013-06-14T15:34:00.043+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ItemAdding with SpLongOperation"/><category scheme="http://www.blogger.com/atom/ns#" term="SpLongOperation"/><category scheme="http://www.blogger.com/atom/ns#" term="Upgrade to SharePoint 2010"/><title type='text'>SPLongOperation error for ItemAdding Event In SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;br /&gt;We recently upgrade one of our project from SharePoint 2007 to SharePoint 210. In that project we user event handler for list. In ItemAdding event we use to create new site which takes times for creation. So we use SPLongOperation to handle it&amp;nbsp; but in SharePoint 2010 its same code gives error for &quot;Object reference null&quot; for SPLongOperation being statement.&lt;br /&gt;So we had following workaround for this problem.&lt;br /&gt;
&lt;br /&gt;&lt;b&gt;Create Web Part with following Code and add this web part to publishing Page&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;protected override void CreateChildControls(){&lt;br /&gt;&amp;nbsp;if (this.Page.Request.QueryString[&quot;Processid&quot;] != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (SPLongOperation ctx = new SPLongOperation(this.Page))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.LeadingHTML = &quot;Please wait while your operation is being executed.&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.TrailingHTML = &quot;Site is being created. Please wait....&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.Begin();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep(5000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string eid = this.Page.Request.QueryString[&quot;Processid&quot;].ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int count = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (true)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (SPWeb web = SPContext.Current.Site.OpenWeb(SPContext.Current.Web.ID))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (web.Properties[eid].ToString() != &quot;Completed&quot; &amp;amp;&amp;amp; count &amp;lt; 18)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep(5000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ctx.End(this.Page.Request.QueryString[&quot;h&quot;].ToString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.lbl.Text = ex.Message.ToString() + Environment.NewLine + ex.StackTrace.ToString() ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;In event handler modify ItemAdding event as follows&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;public override void ItemAdding(SPItemEventProperties properties)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base.ItemAdding(properties);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string guid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = string.Format(&quot;ProcessId{0}_{1}&quot;, DateTime.Now.ToString(&quot;MMddyyyy&quot;), Guid.NewGuid().ToString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread thread = new Thread(() =&amp;gt; FunctionName(properties,guid));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thread .Start();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; properties.Status = SPEventReceiverStatus.CancelNoError;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; properties.Cancel = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPUtility.Redirect({Url of page on which out put above webpart}, SPRedirectFlags.Default, _currentContext,string.Format (&quot;Processid={0}&amp;amp;h={1}&quot;,guid , properties.RelativeWebUrl));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;
Hope this work for you also&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/8408756440730110231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2012/01/splongoperation-error-for-itemadding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/8408756440730110231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/8408756440730110231'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2012/01/splongoperation-error-for-itemadding.html' title='SPLongOperation error for ItemAdding Event In SharePoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-5814808871889176621</id><published>2012-01-17T18:17:00.000+05:30</published><updated>2013-06-14T15:34:00.031+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007 visual upgrade"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Upgrade in SharePoint 2010"/><title type='text'>Using PowerShell Command for Visual Upgrade</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Upgrade Visual from SharePoint 2007 to SharePoint 2010 after restoring Content Database on SharePoint 2010 Server.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;When we restore content database in SharePoint 2010 from SharePoint 2007, it required to upgrade the Visual to Version 4. Following command will update all the site and sub-sites for provided content database.&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #4b6c9e; color: white; padding: 10px; width: 95%;&quot;&gt;
$ContentDatabaseName = Get-SPContentDatabase WSS_Content_SharePoint_Database_Restore&lt;br /&gt;
&lt;br /&gt;
$ContentDatabaseName.Sites | Get-SPWeb -limit all | ForEach-Object {$_.UIversion = 4; $_.UIVersionConfigurationEnabled = $false; $_.update()} &lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/5814808871889176621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2012/01/using-powershell-to-control-visual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5814808871889176621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5814808871889176621'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2012/01/using-powershell-to-control-visual.html' title='Using PowerShell Command for Visual Upgrade'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-4086092355044983557</id><published>2011-12-30T12:58:00.000+05:30</published><updated>2013-06-14T15:34:00.021+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Import workflow in  Sharepoint Designer 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Workflow with Visio"/><category scheme="http://www.blogger.com/atom/ns#" term="Workflow with Visio and Designer"/><title type='text'>How to create workflow in Visio and import it in Sharepoint Designer 2010 - Part 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In previous blog we saw how to create and export the workflow diagram in Visio 2010
        (&lt;a href=&quot;http://sharepointdummies.blogspot.com/2011/12/how-to-create-workflow-with-visio-and_19.html&quot; target=&quot;_blank&quot;&gt; How to create workflow in Visio and import it in Sharepoint Designer
            2010 - Part 1 &lt;/a&gt;). In this blog we import workflow file in SharePoint Designer
        2010.&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Open SharePoint Designer 2010 -&amp;gt; Click on &quot;Open Site&quot; -&amp;gt; In open site window
                enter site URL on which you want to import the workflow. &lt;/li&gt;
&lt;li&gt;Click on &quot;Workflows&quot; in Navigation -&amp;gt; Click on &quot;Import from Visio&quot; button from
                top ribbon -&amp;gt; In Import workflow from Visio Drawing browse the path of export
                file and click on Next button. &lt;/li&gt;
&lt;li&gt;In this screen Click on List Workflow and from drop down select &quot;Reimbursement Request&quot;
                list and click on finish.&lt;/li&gt;
&lt;li&gt;After click on finish you got following workflow view now we have to set the condition
                and values for this imported workflow.&lt;br /&gt;
                &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zqPqs1t0xfI9dqjqOV2gDB5b5h0HSxjBU_sG09avdhmCXSQ2cmpKop_o4yPCPaa85bK1snkxA7uuyEkWxoo3p-C3bZHgdmgqnqiB6CiTO32hCfKremh3Qo_kUVv3SSXYKSh9KiHx0Ns/s1600/Imported+Visio+Drawing+-+Step+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
                        &lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zqPqs1t0xfI9dqjqOV2gDB5b5h0HSxjBU_sG09avdhmCXSQ2cmpKop_o4yPCPaa85bK1snkxA7uuyEkWxoo3p-C3bZHgdmgqnqiB6CiTO32hCfKremh3Qo_kUVv3SSXYKSh9KiHx0Ns/s1600/Imported+Visio+Drawing+-+Step+1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
               
&lt;ol&gt;
&lt;li&gt;Click on &quot;Value&quot; in top if statement , here we have to select expense and specifies
                        the limit after which approval is required for it. set the value as shown in fig.
                        below
                        
                        
&lt;br /&gt;&lt;br /&gt;
 &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRWQUucAhkdsBakMb_7464zedyEMEewqLbtc_3Wxb79ZFUcIaECW8WHS6P0rUcPLoMe3LqdjnQ-niidRRKHj0JhFfZepORxxPNJevUteNXRnZucQOsvzLH1iiED0YpZLSEstceA47udk/s1600/Imported+Visio+Drawing+-+Step+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
                            &lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRWQUucAhkdsBakMb_7464zedyEMEewqLbtc_3Wxb79ZFUcIaECW8WHS6P0rUcPLoMe3LqdjnQ-niidRRKHj0JhFfZepORxxPNJevUteNXRnZucQOsvzLH1iiED0YpZLSEstceA47udk/s1600/Imported+Visio+Drawing+-+Step+2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
                    &lt;/li&gt;
&lt;li&gt;Set approval attributes as shown in fig. below&lt;br /&gt;
&lt;br /&gt;
 &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRWQUucAhkdsBakMb_7464zedyEMEewqLbtc_3Wxb79ZFUcIaECW8WHS6P0rUcPLoMe3LqdjnQ-niidRRKHj0JhFfZepORxxPNJevUteNXRnZucQOsvzLH1iiED0YpZLSEstceA47udk/s1600/Imported+Visio+Drawing+-+Step+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
                            &lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRWQUucAhkdsBakMb_7464zedyEMEewqLbtc_3Wxb79ZFUcIaECW8WHS6P0rUcPLoMe3LqdjnQ-niidRRKHj0JhFfZepORxxPNJevUteNXRnZucQOsvzLH1iiED0YpZLSEstceA47udk/s1600/Imported+Visio+Drawing+-+Step+3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
                        
                    &lt;/li&gt;
&lt;li&gt;Click on value link after &quot;Is Approved?&quot;&amp;nbsp; from pop up window set approval status
                        field from field from source drop down and set condition equals to approved. If
                        approval status is equal to approved then you have to inform user that his request
                        has been approved by department head. for that set following values as shown in
                        fig. below. and for update item , select current item, add Authorized field and
                        set its values to Yes.&lt;br /&gt;
                        &lt;br /&gt;
                        &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjknQF4eZIoo2SJVozR1A1Tt_yNGQ4h1heswufHsmxOU3BhoYuLkSHRa3TmxE2Nj-Carga404S5OmqOG4uL_H8F_n2535gcNistWojDwnUEKCPi4GJV8CpaSxM8PI6TkCun4Vpl21NUqAU/s1600/Imported+Visio+Drawing+-+Step+4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
                            &lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjknQF4eZIoo2SJVozR1A1Tt_yNGQ4h1heswufHsmxOU3BhoYuLkSHRa3TmxE2Nj-Carga404S5OmqOG4uL_H8F_n2535gcNistWojDwnUEKCPi4GJV8CpaSxM8PI6TkCun4Vpl21NUqAU/s1600/Imported+Visio+Drawing+-+Step+4.png&quot; /&gt;&lt;/a&gt;
                    &lt;/li&gt;
&lt;li&gt;Repeat above step for remaining else parts with appropriate messages.
                    &lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Save current workflow and click on &quot;Check for Errors&quot; button which is on top of ribbon. if workflow complied successfully then pop up message shows &quot;The workflow contains no errors&quot;. Go to start options of workflow and check on &quot;Start workflow automatically when item is created.&quot; and click on button publish button to publish workflow in selected list. &lt;/li&gt;
&amp;nbsp;&lt;/ol&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;/ol&gt;
After this step we had workflow which is published on site, now go to site and add item with Expense amount greater than Rs. 200. &lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/4086092355044983557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/how-to-create-workflow-in-visio-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4086092355044983557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4086092355044983557'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/how-to-create-workflow-in-visio-and.html' title='How to create workflow in Visio and import it in Sharepoint Designer 2010 - Part 2'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zqPqs1t0xfI9dqjqOV2gDB5b5h0HSxjBU_sG09avdhmCXSQ2cmpKop_o4yPCPaa85bK1snkxA7uuyEkWxoo3p-C3bZHgdmgqnqiB6CiTO32hCfKremh3Qo_kUVv3SSXYKSh9KiHx0Ns/s72-c/Imported+Visio+Drawing+-+Step+1.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-3004558116565390497</id><published>2011-12-28T12:08:00.000+05:30</published><updated>2013-06-14T15:34:00.014+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Type"/><category scheme="http://www.blogger.com/atom/ns#" term="content type hub not publishing"/><category scheme="http://www.blogger.com/atom/ns#" term="Taxonomy Feature"/><title type='text'>Content type hub problem with Blank Site Template</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As I mentioned in how to deploy content type hub in my previous blog (&quot;&lt;a href=&quot;http://sharepointdummies.blogspot.com/2011/12/content-type-hubs-publish-and-subscribe.html&quot;&gt;Content Type Hubs Publishing in Sharepoint 2010&lt;/a&gt;&quot;), after following blog content type is not appearing on site may required to activate the Taxonomy feature on that site, following command required to activate the feature&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: cyan; border: solid 1px #338866; padding: 10px;&quot;&gt;
STSADM -o activatefeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -url http://&lt;server&gt; -force
&lt;/server&gt;&lt;/div&gt;
&lt;br /&gt;
Power Shell Command
&lt;br /&gt;
&lt;div style=&quot;background-color: cyan; border: solid 1px #338866; padding: 10px;&quot;&gt;
Enable-SPFeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -URL &lt;sitecollectionurl&gt;
&lt;/sitecollectionurl&gt;&lt;/div&gt;
&lt;br /&gt;
Hope this work for you also....
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Good luck :-)

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/3004558116565390497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/content-type-hub-problem-with-blank.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/3004558116565390497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/3004558116565390497'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/content-type-hub-problem-with-blank.html' title='Content type hub problem with Blank Site Template'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-4895121779231845678</id><published>2011-12-21T17:03:00.000+05:30</published><updated>2013-06-14T15:34:00.025+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Type"/><category scheme="http://www.blogger.com/atom/ns#" term="Content Type Hub"/><category scheme="http://www.blogger.com/atom/ns#" term="Content Type Hub on Blank site"/><category scheme="http://www.blogger.com/atom/ns#" term="Content type publishing hub"/><title type='text'>How to setup content type publishing hub in SharePoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;What is Content Type Hub ?&lt;/b&gt;&lt;br /&gt;
Content type hub is new feature of SharePoint 2010 to manage content type centrally (Content Type Gallery) and publish them to subscribed sites.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Prerequisite :&lt;/b&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Create two web application on two separate port number. we called site A as publisher and site b as subscribed site.&lt;/li&gt;
&lt;li&gt;Create content type on site A called &quot;Content Type Hub Demo&quot; of document base type.&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;&lt;br /&gt;Create service to deploy content type hub&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol style=&quot;font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&lt;li&gt;Open SharePoint 2010 Central Administration - &amp;gt; Click on Manage 
service applications under Application Management section -&amp;gt; Click on
 New and select Managed Metadata Service&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrFB8kyk24xexqtc2sBreEASdjjF9NCvUtFK0Q4i008cEyReHDIIrRKmHvX40acqwARSThg6grXV0cShSXDDhi4XoI__7pVZdRYfVUm49-9MwX3lwq2av74TrA_4_mCGnRP-15ZHoAG14/s1600/Managed+Metadata+Service+-+Step+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrFB8kyk24xexqtc2sBreEASdjjF9NCvUtFK0Q4i008cEyReHDIIrRKmHvX40acqwARSThg6grXV0cShSXDDhi4XoI__7pVZdRYfVUm49-9MwX3lwq2av74TrA_4_mCGnRP-15ZHoAG14/s1600/Managed+Metadata+Service+-+Step+1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;On &quot;Create New Managed Metadata Service&quot; window change following values &lt;br /&gt;Name : Content Type Hub&lt;br /&gt;Database Name : Content_Type_Hub_Database&lt;br /&gt;Use existing application pool: SharePoint Web Service Default&lt;br /&gt;&lt;label for=&quot;ctl00_PlaceHolderDialogBodySection_PlaceHolderDialogBodyMainSection_contentTypeSyncAndProxySection_ctl00_hubUrlTextBox&quot; id=&quot;ctl00_PlaceHolderDialogBodySection_PlaceHolderDialogBodyMainSection_contentTypeSyncAndProxySection_ctl00_LiteralLabelText&quot;&gt;Content 
Type hub&lt;/label&gt; : &lt;b&gt;&lt;i&gt;&quot;Enter the url of web site which going to act as publisher for content type&quot;. &lt;/i&gt;&lt;/b&gt;Click on &quot;Ok&quot; button&lt;b&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;How to deploy content type hub ?&lt;/b&gt;To deploy content type hub on site you required to activate &quot;Content Type Syndication Hub&quot; feature on publisher site which in Site Collection features.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVXoNxauDnybsZQm6dKUPyeNvRVnbxLNCHY378K6eVt8CTbfwRX34vadeBnkG_8RzEWQmvXkHnofbxbJe4bjcUYRZnbblG7aQXfybSizRgPRMjA8oj2Pkb7OKQsF_cSVIA8v1A4NZ_VnA/s1600/Content+Type+Syndication+Hub.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;40&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVXoNxauDnybsZQm6dKUPyeNvRVnbxLNCHY378K6eVt8CTbfwRX34vadeBnkG_8RzEWQmvXkHnofbxbJe4bjcUYRZnbblG7aQXfybSizRgPRMjA8oj2Pkb7OKQsF_cSVIA8v1A4NZ_VnA/s640/Content+Type+Syndication+Hub.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
After activating feature go to content type gallery of site, click on Site Actions -&amp;gt; Site Settings -&amp;gt; under Galleries section you find &quot;Site Content Types&quot; click on it. On site content types page select &quot;Content Type Hub Demo&quot; content type.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
In Settings section of Content type Click on &quot;Manage publishing for this content type&quot; and On Content type publishing select &quot;Publish&quot; and click on &quot;OK&quot; button.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
After this we required to run Timer jobs manually first time to publish the content type. Go to &quot;SharePoint 2010 Central Administration&quot; -&amp;gt; Click on Monitoring -&amp;gt; Click on Review job definitions.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;
In Job Definitions run the jobs in following order&lt;br /&gt;
1.Content type hub&lt;br /&gt;
2.Content Type Subscriber job for publishing site &lt;br /&gt;
3.Content Type Subscriber job for subscriber sites.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;
Go to subscriber site and Content type gallery you find the &quot;Content Type Hub Demo&quot; content type.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/4895121779231845678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/content-type-hubs-publish-and-subscribe.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4895121779231845678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4895121779231845678'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/content-type-hubs-publish-and-subscribe.html' title='How to setup content type publishing hub in SharePoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrFB8kyk24xexqtc2sBreEASdjjF9NCvUtFK0Q4i008cEyReHDIIrRKmHvX40acqwARSThg6grXV0cShSXDDhi4XoI__7pVZdRYfVUm49-9MwX3lwq2av74TrA_4_mCGnRP-15ZHoAG14/s72-c/Managed+Metadata+Service+-+Step+1.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-4013774224407617649</id><published>2011-12-19T14:20:00.000+05:30</published><updated>2013-06-14T15:34:00.020+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Designer Workflow"/><category scheme="http://www.blogger.com/atom/ns#" term="Workflow with Visio"/><category scheme="http://www.blogger.com/atom/ns#" term="Workflow with Visio and Designer"/><title type='text'>How to create workflow in Visio and import it in Sharepoint Designer 2010 - Part 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This blog shows how easy to create a workflow in&amp;nbsp; Microsoft Visio 2010 and import it in Sharepoint Designer 2010. This part contains the prerequisites required and how to design workflow in Microsoft Visio 2010. In this blog we create work for &quot;Reimbursement of Expenses&quot;, if my expense amount is less then specified limit then request is directly approved otherwise it goes to Department Head for approval.&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Prerequisites&lt;/b&gt; :&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I create custom list called &quot;Reimbursement Request&quot; and added following field into it.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&quot;Description&quot; type of Multiple lines of text.&lt;/li&gt;
&lt;li&gt;&quot;Expense Amount&quot; type of Currency.&lt;/li&gt;
&lt;li&gt;&quot;Authorized&quot; type of&amp;nbsp; &quot;Yes/No&quot;.&lt;/li&gt;
&lt;li&gt;&quot;Department Head&quot; type of &quot;person and Group&quot;.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Design workflow with Microsoft Visio :&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;1. Open Microsoft Visio 2010 : Click on Start -&amp;gt; All Programs -&amp;gt; Microsoft Office -&amp;gt; Click on &quot;Microsoft Visio 2010&quot;.&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;2. Create &quot;Microsoft Sharepoint Workflow&quot; : In Template Categories section click on Flowchart -&amp;gt; &quot;Microsoft SharePoint Workflow&quot; and click on Create button as shown in fig. below&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF7tnnV53Oo-5m5FtpBxa-gEp84poWdvhulZ6zlWjepkJUO-mMO6_zckl7MCW58wqeycc97r4Va5Ibu9027Jbfw2wsw5_kLn-U2PupONym4U3ZoCR72CnP15DWvJs9YNqzbHDGR3cGkg4/s1600/Choose+Microsoft+Sharepoint+Workflow+Template.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;496&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF7tnnV53Oo-5m5FtpBxa-gEp84poWdvhulZ6zlWjepkJUO-mMO6_zckl7MCW58wqeycc97r4Va5Ibu9027Jbfw2wsw5_kLn-U2PupONym4U3ZoCR72CnP15DWvJs9YNqzbHDGR3cGkg4/s640/Choose+Microsoft+Sharepoint+Workflow+Template.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Create workflow diagram &lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipU8BQPI9zwaq07FJ0biIVunLXtUz8FI5qE6zd8qj-xmVghyVpfneNm_4paoKlI15kHg1GJXLzBg2hweplYe_YLR0-8KghV-ZfC2lXMa2AMc0KJ9SAsEFNuBl3x31F3h9MIDgpyE7Mt7w/s1600/Workflow+drawing+without+condition.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Each workflow diagram has its start and terminate condition so we put this two condition on drawing area. shown in fig.&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGRO6E-FfFwrquNJiAKIkXKRU3q1UTIMM5u2VdFxIwuvZt4qw1Z-xrCC_77wvsjmO7mBJJONsaMiyxCCkfBRDXzVbnFbYMZl8hVwt2I_7g-HJP8GidjZ8IPXWH25uhTSkRdMx4P_57kd4/s1600/Drawing+area+with+Start+and+Terminate+Condition.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;512&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGRO6E-FfFwrquNJiAKIkXKRU3q1UTIMM5u2VdFxIwuvZt4qw1Z-xrCC_77wvsjmO7mBJJONsaMiyxCCkfBRDXzVbnFbYMZl8hVwt2I_7g-HJP8GidjZ8IPXWH25uhTSkRdMx4P_57kd4/s640/Drawing+area+with+Start+and+Terminate+Condition.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;/li&gt;
&lt;li&gt;Under &quot;Shapes&quot; panel click on &quot;SharePoint Workflow Conditions&quot;, drag and drop &quot;Compare data source&quot; control on drawing area. double click on control and change it display text. Click on &quot;SharePoint Workflow Actions&quot;&amp;nbsp; and drag and drop &quot;Start approval process&quot; and &quot;Send an email&quot; as shown in fig. below&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; height=&quot;450&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipU8BQPI9zwaq07FJ0biIVunLXtUz8FI5qE6zd8qj-xmVghyVpfneNm_4paoKlI15kHg1GJXLzBg2hweplYe_YLR0-8KghV-ZfC2lXMa2AMc0KJ9SAsEFNuBl3x31F3h9MIDgpyE7Mt7w/s640/Workflow+drawing+without+condition.png&quot; width=&quot;640&quot; /&gt;&lt;/li&gt;
&lt;li&gt;Now we have to add condition for Compare data source control, right click on arrow of &quot;Is Expense Amount Required Authorization?&quot;&amp;nbsp; select &quot;Yes&quot; from popup now. click on other arrow and set &quot;No&quot; condition for it. repeat same for &quot;Is Approved?&quot; control.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZW26ewNrkUAq-v9GhZsu4_66YCTOPcQwD0EVJQIFxfiqEViXJXPMM0nyfL7W4VrV3vba_pnNRGg_6hs1rxJJvo2KJA84xfEx41kv-B0h7GX4nER5pQVN7HI3CPhPzrl0Z06CoZRATnyQ/s1600/Workflow+drawing+with+condition.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;452&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZW26ewNrkUAq-v9GhZsu4_66YCTOPcQwD0EVJQIFxfiqEViXJXPMM0nyfL7W4VrV3vba_pnNRGg_6hs1rxJJvo2KJA84xfEx41kv-B0h7GX4nER5pQVN7HI3CPhPzrl0Z06CoZRATnyQ/s640/Workflow+drawing+with+condition.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;After setting all condition as shown in fig above click on Process tab from top ribbon and click on &quot;Check Diagram&quot; button. This will validate your workflow diagram and shows if any error before exporting this workflow diagram we have to clear all errors. Once its shows &quot;No issue found&quot; message click on export button and save this drawing as &quot;Visio Workflow InterChange&quot; type. After this step you had workflow ready to use in sharepoint designer 2010.&lt;/li&gt;
&lt;li&gt;How to use exported file in &quot;SharePoint Designer 2010&quot; explained in next part to this blog.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-16856508-5&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/4013774224407617649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/how-to-create-workflow-with-visio-and_19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4013774224407617649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/4013774224407617649'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/how-to-create-workflow-with-visio-and_19.html' title='How to create workflow in Visio and import it in Sharepoint Designer 2010 - Part 1'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF7tnnV53Oo-5m5FtpBxa-gEp84poWdvhulZ6zlWjepkJUO-mMO6_zckl7MCW58wqeycc97r4Va5Ibu9027Jbfw2wsw5_kLn-U2PupONym4U3ZoCR72CnP15DWvJs9YNqzbHDGR3cGkg4/s72-c/Choose+Microsoft+Sharepoint+Workflow+Template.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-9080698040885577792</id><published>2011-12-15T15:26:00.000+05:30</published><updated>2013-06-14T15:34:00.045+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chart web part"/><category scheme="http://www.blogger.com/atom/ns#" term="Chart web part with Database Connection"/><category scheme="http://www.blogger.com/atom/ns#" term="Database Connection for Chart Web part"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Chart Web part"/><title type='text'>Connect Chart Web Part to SQL database in Sharepoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;1. This blog shows you how to provide data for OOB Charting Web part in Sharepoint 2010. First insert the chart web part into you page as shown in fig. below&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnXojSy_r00CKPkE9ts7LrPYhEU8DYe-_Oj5MgwaIHrQu9vr0pcvI49Q2WShx5y6vQeHmqyFBqNrc_BVu8ek9Zq1aAlJGxMg0RTmhY2x2530YecAWPcGxIKPYGlcDMIYiDl2Rka0DYMH4/s1600/ChartWithoutDataConnection.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;424&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnXojSy_r00CKPkE9ts7LrPYhEU8DYe-_Oj5MgwaIHrQu9vr0pcvI49Q2WShx5y6vQeHmqyFBqNrc_BVu8ek9Zq1aAlJGxMg0RTmhY2x2530YecAWPcGxIKPYGlcDMIYiDl2Rka0DYMH4/s640/ChartWithoutDataConnection.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Create custom web part and specify the database connection as I am retrieving chart data from sql server 2008 database. Copy paste following code into webpart and deploy web part to site collection&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[ToolboxItemAttribute(false)]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [Serializable]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal)]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public class ChartDataProviderWebPart : WebPart, IWebPartTable&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlDataAdapter sda;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer _timer;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataTable _table;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label _lblMessage;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string databaseConnectionString = &quot;Data Source=.;Initial Catalog=Demo_Database;user id=username;password=yourpassword;&quot;; // Change setting &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override void CreateChildControls()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
// Timer control added to refresh chart after every 30 second &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _timer = new Timer();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._timer.Interval = 30000;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._timer.Tick += new EventHandler&amp;lt;EventArgs&amp;gt;(_timer_Tick);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._timer.Enabled = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Controls.Add(this._timer);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Controls.Add(this._lblMessage);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void _timer_Tick(object sender, EventArgs e)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._lblMessage.Text = string.Format(&quot;Last updated @ {0} &quot;, DateTime.Now.ToString());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ChartDataProviderWebPart()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _table = new DataTable();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._lblMessage = new Label();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.sda = new SqlDataAdapter(&quot;select * from tblData order by name&quot;, new SqlConnection(this.databaseConnectionString));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.sda.Fill(this._table);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._table.Columns.Add(new DataColumn(&quot;Name&quot;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._table.Columns.Add(new DataColumn(&quot;Value&quot;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void GetTableData(TableCallback callback)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callback(_table.Rows);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public PropertyDescriptorCollection Schema&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return TypeDescriptor.GetProperties(this._table.DefaultView[0]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public bool ConnectionPointEnabled&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object o = ViewState[&quot;ConnectionPointEnabled&quot;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (o != null) ? (bool)o : true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewState[&quot;ConnectionPointEnabled&quot;] = value;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ConnectionProvider(&quot;Table&quot;, typeof(DataTableProviderConnectionPoint), AllowsMultipleConnections = true)]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public IWebPartTable GetConnectionInterface()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new ChartDataProviderWebPart();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public class DataTableProviderConnectionPoint : ProviderConnectionPoint&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public DataTableProviderConnectionPoint(MethodInfo callbackMethod, Type interfaceType, Type controlType, string name, string id, bool allowsMultipleConnections)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : base(callbackMethod, interfaceType, controlType, name, id, allowsMultipleConnections)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public override bool GetEnabled(Control control)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ((ChartDataProviderWebPart)control).ConnectionPointEnabled;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3.&lt;/b&gt; &lt;b&gt;Go to page where you inserted chart web part, insert above deployed webpart on same page. Click on Data &amp;amp; Appearance from chart web part -&amp;gt; Click on Connect Chart To Data&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3p4rFk6vxR-rQ-XS4aOo_OVb22_06j5d1VPgNv6w5sOqreKeQ3nkVINFK82TbwWoaOIlQ1Hmjnb9lOa8APU-d-M-Io92s3I9yPUUpL5-ge27b8iSNcPymHCDkgaqboMvtdlJgE0Cxf0c/s1600/CharDataConnectionSelection.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3p4rFk6vxR-rQ-XS4aOo_OVb22_06j5d1VPgNv6w5sOqreKeQ3nkVINFK82TbwWoaOIlQ1Hmjnb9lOa8APU-d-M-Io92s3I9yPUUpL5-ge27b8iSNcPymHCDkgaqboMvtdlJgE0Cxf0c/s640/CharDataConnectionSelection.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;4.&lt;/b&gt; &lt;b&gt;After clicking on Connect Chart To Data you got Step by Step Data Connection Wizard&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;Step 1: Choose Connect to another web part option for this step and click on Next button&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUiaoaTBPre_gX3klFe-wWB8jbYOOSlE4yDDfCojUnf11F85Rux84bGWD7aNS9CnylsEAo6iUGq7z-EdDG30ER9NdoZgprEF4iwZ8f4yV2bUQ9nqMqtJA2ot2_qgS07qtfxkJuxW75aao/s1600/Data+Connection+Wizard+-+Step+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;424&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUiaoaTBPre_gX3klFe-wWB8jbYOOSlE4yDDfCojUnf11F85Rux84bGWD7aNS9CnylsEAo6iUGq7z-EdDG30ER9NdoZgprEF4iwZ8f4yV2bUQ9nqMqtJA2ot2_qgS07qtfxkJuxW75aao/s640/Data+Connection+Wizard+-+Step+1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;Step 2: Connect to another Web Part in drop down you found the name of web part that you deployed now&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNDRty4oQbJsWhmuZgxEkjDVDkFukU1i6J_GcxbYY6TcTCrKSh-14ABGCWxTcdzR84fFPaKahjFQ4TfCFHOubOQYeqQ6IFhrUMXtkriFEQ6D_w4uXeg_4RgljBXhjApR_7CsmpkwnYmOM/s1600/Connect+to+another+Web+Part+-+Step+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNDRty4oQbJsWhmuZgxEkjDVDkFukU1i6J_GcxbYY6TcTCrKSh-14ABGCWxTcdzR84fFPaKahjFQ4TfCFHOubOQYeqQ6IFhrUMXtkriFEQ6D_w4uXeg_4RgljBXhjApR_7CsmpkwnYmOM/s640/Connect+to+another+Web+Part+-+Step+2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3eQvgN8S-Cl5BNWrL_ItjyOE500A1a2-_AT5F7dg0KZub5LuSm5Zt6zx0fSv1_H7lKnqvNXJUJ9_Lamw4NMRVqip99paQw8Mp7GE6_SQUPvOxb23xTCezGn8urlcCjVggE7EzD80b9qY/s1600/Retrieve+Data+-+Step+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;Step 3:&amp;nbsp; On retrieve data step select&amp;nbsp; Table as source data format in data format dropdown and click on next button&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3eQvgN8S-Cl5BNWrL_ItjyOE500A1a2-_AT5F7dg0KZub5LuSm5Zt6zx0fSv1_H7lKnqvNXJUJ9_Lamw4NMRVqip99paQw8Mp7GE6_SQUPvOxb23xTCezGn8urlcCjVggE7EzD80b9qY/s1600/Retrieve+Data+-+Step+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3eQvgN8S-Cl5BNWrL_ItjyOE500A1a2-_AT5F7dg0KZub5LuSm5Zt6zx0fSv1_H7lKnqvNXJUJ9_Lamw4NMRVqip99paQw8Mp7GE6_SQUPvOxb23xTCezGn8urlcCjVggE7EzD80b9qY/s1600/Retrieve+Data+-+Step+3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3eQvgN8S-Cl5BNWrL_ItjyOE500A1a2-_AT5F7dg0KZub5LuSm5Zt6zx0fSv1_H7lKnqvNXJUJ9_Lamw4NMRVqip99paQw8Mp7GE6_SQUPvOxb23xTCezGn8urlcCjVggE7EzD80b9qY/s640/Retrieve+Data+-+Step+3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;Step 4:  On Bind Chart to Data , set Y Field to &quot;Value&quot; and X Field to &quot;Name&quot; as shown in fig. below and click on Finish&amp;nbsp; &lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1U0cgE3Blefe4F2hBCpKfcRMlbHh_fK9hQ51X08PhxAPUMU5aurapbClhSZGfxux605wGaE6s3IDYiXyl_UNaV73Zoi5qemoWzpeTa0a3wXl6xx3-CHGF2sNuIat0Ib-t-6z1zoEEpXY/s1600/Bind+Chart+to+Data++-+Step+4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1U0cgE3Blefe4F2hBCpKfcRMlbHh_fK9hQ51X08PhxAPUMU5aurapbClhSZGfxux605wGaE6s3IDYiXyl_UNaV73Zoi5qemoWzpeTa0a3wXl6xx3-CHGF2sNuIat0Ib-t-6z1zoEEpXY/s640/Bind+Chart+to+Data++-+Step+4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;This web part refresh after evey 30 second for retriving data from database.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-16856508-5&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/9080698040885577792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/connect-chart-web-part-to-sql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/9080698040885577792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/9080698040885577792'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/connect-chart-web-part-to-sql-database.html' title='Connect Chart Web Part to SQL database in Sharepoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnXojSy_r00CKPkE9ts7LrPYhEU8DYe-_Oj5MgwaIHrQu9vr0pcvI49Q2WShx5y6vQeHmqyFBqNrc_BVu8ek9Zq1aAlJGxMg0RTmhY2x2530YecAWPcGxIKPYGlcDMIYiDl2Rka0DYMH4/s72-c/ChartWithoutDataConnection.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-1600854951311203500</id><published>2011-12-02T18:43:00.000+05:30</published><updated>2013-06-14T15:34:00.011+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Approval Workflow"/><category scheme="http://www.blogger.com/atom/ns#" term="Attach workflow to list using Object Model"/><category scheme="http://www.blogger.com/atom/ns#" term="programmatically associate a workflow to a list"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint Approval Workflow"/><title type='text'>How to programmatically associate a workflow to a list in Sharepoint</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In one of your project we have to attach &quot;Sharepoint approval workflow&quot; to list when feature is activated on the web.&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;Prerequisite&lt;/span&gt; :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;SharePoint 2007 Workflows activated on site collection level&lt;/li&gt;
&lt;li&gt;Task list of content type Task, for storing task created to users.&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp; private void SetWorkFlow(SPWeb web, string listName)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;
web.AllowUnsafeUpdates = true;&lt;br /&gt;
&lt;br /&gt;
string workflowAssocName = string.Format(&quot;{0} - Sharepoint Approval&quot;, listName);&lt;br /&gt;
SPWorkflowTemplate workflowTemplate = web.WorkflowTemplates.GetTemplateByName(&quot;Approval - SharePoint 2010&quot;,&lt;br /&gt;
System.Globalization.CultureInfo.CurrentCulture);&lt;br /&gt;
SPList myList = web.Lists[listName];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Try to get workflow history and task list&lt;br /&gt;
SPList historyList = web.Lists[&quot;Workflow History&quot;];&lt;br /&gt;
SPList taskList = web.Lists[&quot;Tasks&quot;];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Create workflow association&lt;br /&gt;
SPWorkflowAssociation workflowAssociation = SPWorkflowAssociation.CreateListAssociation(&lt;br /&gt;
workflowTemplate, workflowAssocName, taskList, historyList);&lt;br /&gt;
&lt;br /&gt;
// Set workflow parameters&lt;br /&gt;
workflowAssociation.AllowManual = false;&lt;br /&gt;
workflowAssociation.AutoStartCreate = true;&lt;br /&gt;
workflowAssociation.AutoStartChange = false;&lt;br /&gt;
workflowAssociation.ContentTypePushDown = false;&lt;br /&gt;
&lt;br /&gt;
// The AssociationData property represents for the settings that user see in 2nd screen when creating workflow in SharePoint UI&lt;br /&gt;
var associationDataXml = XElement.Parse(workflowAssociation.AssociationData);&lt;br /&gt;
&lt;br /&gt;
// Update modifed xml segment back to WorkflowAssociation object&lt;br /&gt;
workflowAssociation.AssociationData = Add_Association_Data(web.ParentWeb, associationDataXml);&lt;br /&gt;
&lt;br /&gt;
// Add workflow association to my list&lt;br /&gt;
myList.WorkflowAssociations.Add(workflowAssociation);&lt;br /&gt;
&lt;br /&gt;
// Enable workflow&lt;br /&gt;
workflowAssociation.Enabled = true;&lt;br /&gt;
myList.Update();&lt;br /&gt;
&lt;br /&gt;
web.Update();&lt;br /&gt;
web.AllowUnsafeUpdates = false;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; private String Add_Association_Data(SPWeb oWeb, XElement associationDataXml)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String sDate = String.Empty;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XNamespace dNamespace = @&quot;http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XNamespace pcNamespace = @&quot;http://schemas.microsoft.com/office/infopath/2007/PartnerControls&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XNamespace dfsNamespace = @&quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XNamespace MyNamespace = @&quot;http://schemas.microsoft.com/office/infopath/2003/myXSD&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XNamespace XsiNamespace = @&quot;http://www.w3.org/2001/XMLSchema-instance&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XElement propertiesWrapper = associationDataXml.Element(dfsNamespace + &quot;dataFields&quot;).Element(dNamespace + &quot;SharePointListItem_RW&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propertiesWrapper.SetElementValue(dNamespace + WORKFLOW_SETTINGS_CANCELONREJECTION, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propertiesWrapper.SetElementValue(dNamespace + WORKFLOW_SETTINGS_CANCELONCHANGE, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propertiesWrapper.SetElementValue(dNamespace + WORKFLOW_SETTINGS_APPROVEWHENCOMPLETE, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propertiesWrapper.SetElementValue(dNamespace + WORKFLOW_SETTINGS_ENABLECONTENTAPPROVAL, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propertiesWrapper.SetElementValue(dNamespace + WORKFLOW_SETTINGS_EXPANDGROUPS, false);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Reviewers is Approvers in UI&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XElement xAssignement &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = associationDataXml.Element(dfsNamespace + &quot;dataFields&quot;).Element(dNamespace + &quot;SharePointListItem_RW&quot;).&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Element(dNamespace + &quot;Approvers&quot;).Element(dNamespace + &quot;Assignment&quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ApprovalGroup = &quot;Managers&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xAssignement.Element(dNamespace + &quot;Assignee&quot;).Add(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new XElement(pcNamespace + &quot;Person&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new XElement(pcNamespace + &quot;DisplayName&quot;, ApprovalGroup),&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new XElement(pcNamespace + &quot;AccountId&quot;, ApprovalGroup),&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new XElement(pcNamespace + &quot;AccountType&quot;, &quot;SharePointGroup&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return associationDataXml.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this will work for you also.............&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/1600854951311203500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/attach-workflow-to-sharepoint-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/1600854951311203500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/1600854951311203500'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/12/attach-workflow-to-sharepoint-list.html' title='How to programmatically associate a workflow to a list in Sharepoint'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-5607723857960989541</id><published>2011-07-28T12:48:00.000+05:30</published><updated>2013-06-14T15:34:00.030+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint"/><category scheme="http://www.blogger.com/atom/ns#" term="Tree View"/><title type='text'>Create TreeView  Structure From Data Table in ASP.Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
One of my friend want to convert Datatable to Tree Structure, hope this will help you.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
class Program&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
static void Main(string[] args)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
try&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
DataTable dt = new DataTable();&lt;/div&gt;
&lt;div&gt;
dt.Columns.Add(new DataColumn(&quot;Id&quot;, Type.GetType(&quot;System.Int32&quot;)));&lt;/div&gt;
&lt;div&gt;
dt.Columns.Add(new DataColumn(&quot;Name&quot;));&lt;/div&gt;
&lt;div&gt;
dt.Columns.Add(new DataColumn(&quot;ParentNodeId&quot;, Type.GetType(&quot;System.Int32&quot;)));&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DataRow dr = dt.NewRow();&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
dr[0] = &quot;1&quot;;&lt;/div&gt;
&lt;div&gt;
dr[1] = &quot;Number 1&quot;;&lt;/div&gt;
&lt;div&gt;
dr[2] = &quot;0&quot;;&lt;/div&gt;
&lt;div&gt;
dt.Rows.Add(dr);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
dr = dt.NewRow();&lt;/div&gt;
&lt;div&gt;
dr[0] = &quot;2&quot;;&lt;/div&gt;
&lt;div&gt;
dr[1] = &quot;Number 2&quot;;&lt;/div&gt;
&lt;div&gt;
dr[2] = &quot;1&quot;;&lt;/div&gt;
&lt;div&gt;
dt.Rows.Add(dr);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
dr = dt.NewRow();&lt;/div&gt;
&lt;div&gt;
dr[0] = &quot;3&quot;;&lt;/div&gt;
&lt;div&gt;
dr[1] = &quot;Number 3&quot;;&lt;/div&gt;
&lt;div&gt;
dr[2] = &quot;2&quot;;&lt;/div&gt;
&lt;div&gt;
dt.Rows.Add(dr);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
dr = dt.NewRow();&lt;/div&gt;
&lt;div&gt;
dr[0] = &quot;4&quot;;&lt;/div&gt;
&lt;div&gt;
dr[1] = &quot;Number 4&quot;;&lt;/div&gt;
&lt;div&gt;
dr[2] = &quot;1&quot;;&lt;/div&gt;
&lt;div&gt;
dt.Rows.Add(dr);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
new CreateTreeNode(dt, &quot;Id&quot;, &quot;Name&quot;, &quot;ParentNodeId&quot;);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Console.WriteLine(&quot;Table Created...&quot;);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
catch (Exception ex)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
Console.WriteLine(ex.Message.ToString());&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Console.ReadKey();&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
public class TreeNode&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
public int Id { set; get; }&lt;/div&gt;
&lt;div&gt;
public string Name { get; set; }&lt;/div&gt;
&lt;div&gt;
public int ParentId { get; set; }&lt;/div&gt;
&lt;div&gt;
public List&lt;treenode&gt; ChildeNodes { get; set; }&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
public TreeNode()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
this.Id = this.ParentId = 0;&lt;/div&gt;
&lt;div&gt;
this.Name = string.Empty;&lt;/div&gt;
&lt;div&gt;
this.ChildeNodes = new List&lt;treenode&gt;();&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
public TreeNode(int TreeNodeId, string TreeNodeName, int ParentNodeId)&lt;/div&gt;
&lt;div&gt;
: base()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
this.Id = TreeNodeId;&lt;/div&gt;
&lt;div&gt;
this.Name = TreeNodeName;&lt;/div&gt;
&lt;div&gt;
this.ParentId = ParentNodeId;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
public class CreateTreeNode&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
List&lt;treenode&gt; _nodeList;&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
DataTable _dataTable;&lt;/div&gt;
&lt;div&gt;
string _nodeColumn;&lt;/div&gt;
&lt;div&gt;
string _displayNodeColumn;&lt;/div&gt;
&lt;div&gt;
string _parentNodeColumn;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CreateTreeNode()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
this._nodeList = new List&lt;treenode&gt;();&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
this._dataTable = new DataTable(&quot;TreeView&quot;);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
public CreateTreeNode(DataTable dataTable, string NodeColumn, string DisplayNodeColumn, string ParentNodeColumn)&lt;/div&gt;
&lt;div&gt;
: base()&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
this._dataTable = dataTable;&lt;/div&gt;
&lt;div&gt;
this._nodeColumn = NodeColumn;&lt;/div&gt;
&lt;div&gt;
this._displayNodeColumn = DisplayNodeColumn;&lt;/div&gt;
&lt;div&gt;
this._parentNodeColumn = ParentNodeColumn;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
this._nodeList = CreateTreeView(0);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
int i = 0;&lt;/div&gt;
&lt;div&gt;
i++;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
List&lt;treenode&gt; CreateTreeView(int parentNodeId)&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
List&lt;treenode&gt; nodeList;&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
DataRow[] SelectedRow = this._dataTable.Select(string.Format(&quot;{0}={1}&quot;, this._parentNodeColumn, parentNodeId));&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
TreeNode currentNode;&lt;/div&gt;
&lt;div&gt;
if (SelectedRow.Length &amp;lt;= 0)&lt;/div&gt;
&lt;div&gt;
return new List&lt;treenode&gt;();&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
else&lt;/div&gt;
&lt;div&gt;
nodeList = new List&lt;treenode&gt;();&lt;/treenode&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
foreach (DataRow currentRow in SelectedRow)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
currentNode = new TreeNode();&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
currentNode.Id = Convert.ToInt32(currentRow[this._nodeColumn].ToString());&lt;/div&gt;
&lt;div&gt;
currentNode.Name = currentRow[this._displayNodeColumn].ToString();&lt;/div&gt;
&lt;div&gt;
currentNode.ParentId = Convert.ToInt32(currentRow[this._parentNodeColumn].ToString());&lt;/div&gt;
&lt;div&gt;
currentNode.ChildeNodes = CreateTreeView(currentNode.Id);&lt;/div&gt;
&lt;div&gt;
nodeList.Add(currentNode);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
return nodeList;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-16856508-5&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/5607723857960989541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/create-tree-structure-from-data-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5607723857960989541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/5607723857960989541'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/create-tree-structure-from-data-table.html' title='Create TreeView  Structure From Data Table in ASP.Net'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-7704146043354285800</id><published>2011-07-27T16:04:00.000+05:30</published><updated>2013-06-14T15:34:00.042+05:30</updated><title type='text'>Are you making these 3 common ASP.NET AJAX mistakes?</title><content type='html'>&lt;div&gt;I found the very usefull link for those who working with AJAX Controls in ASP.Net&lt;/div&gt;&lt;a href=&quot;http://encosia.com/are-you-making-these-3-common-aspnet-ajax-mistakes/&quot;&gt;http://encosia.com/are-you-making-these-3-common-aspnet-ajax-mistakes/&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/7704146043354285800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/are-you-making-these-3-common-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7704146043354285800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7704146043354285800'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/are-you-making-these-3-common-aspnet.html' title='Are you making these 3 common ASP.NET AJAX mistakes?'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-9171958275796079392</id><published>2011-07-26T13:13:00.000+05:30</published><updated>2013-06-14T15:34:00.046+05:30</updated><title type='text'>How to disable multiple upload button for Document List in Sharepoint 2010</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol&gt;
&lt;li&gt;Open upload.aspx file in Visual Studio, upload.aspx file found this file in &quot;14\TEMPLATE\LAYOUTS&quot; folder.&lt;/li&gt;
&lt;li&gt;Search for &quot;if (hideLink)&quot; statement , you have to set hideLink variable to true for hiding the multiple upload button.&lt;/li&gt;
&lt;/ol&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; hideLink =yourJavaScriptFunction();&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; if ( hideLink) &lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;...&lt;br /&gt;
3. replace yourJavaScriptFunction with your javascript function which returns bool value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;ca-pub-0291472184655218&quot;;
/* Blog Default */
google_ad_slot = &quot;7607808011&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/9171958275796079392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/how-to-disable-multiple-upload-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/9171958275796079392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/9171958275796079392'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/how-to-disable-multiple-upload-button.html' title='How to disable multiple upload button for Document List in Sharepoint 2010'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054235627030826300.post-7064502057591475456</id><published>2011-07-21T14:27:00.000+05:30</published><updated>2013-06-14T15:34:00.033+05:30</updated><title type='text'>How to Create Event Handler In Sharepoint ?</title><content type='html'>&lt;ol&gt;&lt;li&gt;Open Visual Studio 2010.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu -&amp;gt; New and then click on Project.&lt;/li&gt;&lt;li&gt;In project type, select Event Receiver.&lt;/li&gt;&lt;li&gt;Enter Name of Event Receiver , click on Ok button.&lt;/li&gt;&lt;li&gt;Now you get Sharepoint Customization Wizard, Choose Deploy as a Sandboxed solution, click on Next.&lt;/li&gt;&lt;li&gt;In &lt;b&gt;Choose Event Receiver Settings&lt;/b&gt; window, Select &lt;b&gt;List Item Events&lt;/b&gt; from &lt;b&gt;What type of event receiver do you want? &lt;/b&gt;dropdown.&lt;/li&gt;&lt;li&gt;In &lt;b&gt;What item should be the event source ? &lt;/b&gt;dropdown, choose type of &lt;b&gt;List&lt;/b&gt; on which you want Event Receiver.&lt;/li&gt;&lt;li&gt;Next Choose event on which you want to write code and click on finish&lt;/li&gt;&lt;li&gt;Event Receiver file is created and method for selected event is appeared.&lt;/li&gt;&lt;li&gt;Press F5 for deploy this solution.&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepointdummies.blogspot.com/feeds/7064502057591475456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/event-handler-in-sharepoint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7064502057591475456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054235627030826300/posts/default/7064502057591475456'/><link rel='alternate' type='text/html' href='http://sharepointdummies.blogspot.com/2011/07/event-handler-in-sharepoint.html' title='How to Create Event Handler In Sharepoint ?'/><author><name>Kamlesh Belote</name><uri>http://www.blogger.com/profile/07639378355308008499</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>