<?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-976508730495432249</id><updated>2024-11-08T21:09:21.768+05:30</updated><category term="SharePoint Foundation 2010"/><category term="SharePoint 2010"/><category term="ASP.NET"/><category term="C#"/><category term="Angular js"/><category term="Downloads"/><category term="jQuery"/><category term="AD-LDS"/><category term="Business Connectivity Services"/><category term="Forms Based Authentication"/><category term="User Profile Synchronization"/><category term="Active Directory"/><category term="JavaScript"/><category term="ADAM"/><category term="Authentication"/><category term="Claims based authentication"/><category term="Client Object Model"/><category term="Content Query Web Part"/><category term="Cross-Domain data access"/><category term="Editions"/><category term="Events enhancements"/><category term="External Contenttypes"/><category term="Forefront Identity Manager"/><category term="Health Analyzer"/><category term="Language Packs"/><category term="License"/><category term="List enhancements"/><category term="Microsoft Sync Framework"/><category term="Powershell"/><category term="Pre-Requisites for sharepoint 2013"/><category term="Query enhancements"/><category term="SDK"/><category term="Sandboxed Solution"/><category term="Search Server 2010 Express"/><category term="SharePoint Designer 2010"/><category term="SharePoint Ribbon"/><category term="Sharepoint 2013"/><category term="Sharepoint2013"/><category term="Silverlight integration"/><category term="Sql Membership Provider"/><category term="ULS Logging"/><category term="WCF"/><category term="Windows7"/><category term="Workflow Enhancements"/><title type='text'>Share Point 2010 | Angular Js | ASP.NET | C# | jQuery</title><subtitle type='html'>I Eat, Drink SharePoint. Everything about SharePoint 2010. From what is sharepoint to custom development.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><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>67</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-7008400067527789620</id><published>2013-11-13T11:25:00.000+05:30</published><updated>2013-11-13T11:31:16.924+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>Validate DropdownList using jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;blockquote&gt;
&lt;b&gt;&lt;i&gt;&quot;This post is all about how to validate DropdownList using jQuery&quot;&lt;/i&gt;&lt;/b&gt;.&lt;/blockquote&gt;
DropdownList is one of the common fields we use in all kind of web forms in almost every web application. It is common to apply validations on certain fields in all web forms. 
Here in this post we are going to see how to validate DropdownList using &lt;a href=&quot;http://sharepoint-2010-world.blogspot.in/search/label/jQuery&quot;&gt;jQuery&lt;/a&gt;.&lt;br /&gt;
Here in our case, I am using a simple Webform with a DropdownList and a button. The DropdownList has a collection of categories, if the user doesn’t select a category an alert event fires up saying the user to choose a category.&lt;br /&gt;
&lt;br /&gt;

&lt;div style=&quot;border:1px solid grey; width:500px;height:100px;background-color:#d4ffd4;padding-left:10px&quot;&gt;Also look in to these posts:&lt;br/&gt;
&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/11/bind-dropdownlist-with-database-values.html&quot;&gt;Bind a DropdownList with Database Values &lt;/a&gt;&lt;br/&gt;
&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/11/how-to-refresh-or-reload-webpage.html&quot;&gt;How to Refresh a Webpage dynamically using jQuery&lt;/a&gt;&lt;br/&gt;&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/10/merging-tables-using-jquery.html&quot;&gt;How to merge two tables into one table using jQuery&lt;/a&gt;&lt;/br&gt;

 &lt;/div&gt;&lt;br/&gt;
In order to do this the following code is to be followed.
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 10;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://www.w3.org/1999/xhtml&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;  &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(document).ready(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&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;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;#btnCheck&#39;&lt;/span&gt;).click(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;($(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#ddlCategory&quot;&lt;/span&gt;).val()&amp;nbsp;&amp;gt;&amp;nbsp;0)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&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;span style=&quot;color: blue;&quot;&gt;else&lt;/span&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;alert(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;Please&amp;nbsp;choose&amp;nbsp;a&amp;nbsp;category&#39;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&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;&amp;nbsp;});
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;myForm&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Selected&amp;nbsp;Category:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;DropDownList&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;ddlCategory&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ListItem&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;--Choose--&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;0&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ListItem&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Education&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ListItem&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Sports&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;2&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ListItem&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Entertainment&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;3&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ListItem&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Business&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ListItem&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Trading&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;5&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;DropDownList&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;btnCheck&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Check&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
This is how you validate a DropdowlList using jQuery.Hope this post helps you and feel free to post your suggestions and comments on it.
&lt;br /&gt;
For more posts on jQuery click &lt;span&gt;&lt;a  style=&quot;font-size=14;color:purple&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/search/label/jQuery&quot;&gt;jquery tricks&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/7008400067527789620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/validate-dropdownlist-using-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/7008400067527789620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/7008400067527789620'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/validate-dropdownlist-using-jquery.html' title='Validate DropdownList using jQuery'/><author><name>Unknown</name><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-976508730495432249.post-3539870314652946323</id><published>2013-11-12T18:33:00.000+05:30</published><updated>2013-11-12T18:45:18.030+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Bind a DropdownList with Database Values</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;i&gt;&lt;b&gt;&quot;In this post I am going to explain you how to bind the drop-down list items with the values present in your database table&quot;.&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
Generally for static pages we add the drop-down list items manually. But what if the application is dynamic. We need to fetch the dropdown list items from the database accordingly.&lt;br /&gt;
So here i am 
going to explain how to bind the drop-down list with database values with a simple example&lt;br /&gt;
First create a table with name as Contacts in your database as 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/AVvXsEgY_M9MsRkHJCwkV-KNmygd-rUWaG4cJNz8tjRYg7Bv1n8qhRKNw2XE3DmehEBjCCSK_kzTzz_Hik7VUL9C_qBDFaNeXRMeACQRgXA9hcWOVwdSkRW0-Ct6FzFMNEHiAYPlsHMoBDuN2c0/s1600/table.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/AVvXsEgY_M9MsRkHJCwkV-KNmygd-rUWaG4cJNz8tjRYg7Bv1n8qhRKNw2XE3DmehEBjCCSK_kzTzz_Hik7VUL9C_qBDFaNeXRMeACQRgXA9hcWOVwdSkRW0-Ct6FzFMNEHiAYPlsHMoBDuN2c0/s640/table.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
‘UserId’ should be the primary key and set its column property ‘Identity Specification’ to yes.&lt;br /&gt;
The following should be the code in your .aspx page:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 11;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://www.w3.org/1999/xhtml&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;form1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Selected&amp;nbsp;UserName:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;DropDownList&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;ddlCountry&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;

&lt;div style=&quot;border:1px solid grey; width:450px;height:100px;background-color:#d4ffd4;padding-left:10px&quot;&gt;Also look in to these posts:&lt;br/&gt;&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/10/populating-grid-with-form-values.html&quot;&gt;Populating GridView with Textbox values &lt;/a&gt;&lt;br/&gt;&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/10/value-types-and-reference-types-in-net.html&quot;&gt;Value Types and Reference Types in .Net &lt;/a&gt;&lt;/br&gt;&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/11/boxing-and-unboxing.html&quot;&gt;Boxing and UnBoxing in c# with Examples&lt;/a&gt;  &lt;/div&gt;&lt;br/&gt;
&amp;nbsp;And here is the code behind:&lt;br /&gt;
&lt;br /&gt;

&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 11;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;BindLocation()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SqlConnection&lt;/span&gt;&amp;nbsp;cn&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SqlConnection&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Data&amp;nbsp;Source=localhost;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;              Integrated&amp;nbsp;Security=true;Initial&amp;nbsp;Catalog=Your&amp;nbsp;Database&amp;nbsp;Name&quot;&lt;/span&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;cn.Open();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SqlCommand&lt;/span&gt;&amp;nbsp;cmd&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SqlCommand&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Select&amp;nbsp;UserId,Location FROM&amp;nbsp;Contacts&quot;&lt;/span&gt;,cn);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SqlDataAdapter&lt;/span&gt;&amp;nbsp;da&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SqlDataAdapter&lt;/span&gt;(cmd);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataSet&lt;/span&gt;&amp;nbsp;ds&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataSet&lt;/span&gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;da.Fill(ds);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ddlLocation.DataSource&amp;nbsp;=&amp;nbsp;ds;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ddlLocation.DataTextField&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Location&quot;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ddlLocation.DataValueField&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;UserId&quot;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ddlLocation.DataBind();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ddlLocation.Items.Insert(0,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;ListItem&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;—Select&amp;nbsp;Location--&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;0&quot;&lt;/span&gt;));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cn.Close();
&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;/pre&gt;
&lt;br /&gt;
That’s all. Your location from the database gets bound to the location dropdown list of your web page.
This is how you bind a dropdown list with database values. &lt;br /&gt;Hope it helps you and feel free to post and suggest me with your valuable comments.
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/3539870314652946323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/bind-dropdownlist-with-database-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3539870314652946323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3539870314652946323'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/bind-dropdownlist-with-database-values.html' title='Bind a DropdownList with Database Values'/><author><name>Unknown</name><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/AVvXsEgY_M9MsRkHJCwkV-KNmygd-rUWaG4cJNz8tjRYg7Bv1n8qhRKNw2XE3DmehEBjCCSK_kzTzz_Hik7VUL9C_qBDFaNeXRMeACQRgXA9hcWOVwdSkRW0-Ct6FzFMNEHiAYPlsHMoBDuN2c0/s72-c/table.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-5360338189738692257</id><published>2013-11-12T10:24:00.000+05:30</published><updated>2013-11-13T11:18:21.678+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>How to redirect user to a new page using jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is one of very frequent functions we see in every web application. Here in this post we will see how to redirect the user from the current location to another webpage using simple jQuery.
In order to redirect user to another webpage we use the ‘location’ object available in JavaScript.&lt;br /&gt;
Below is the method in jQuery on how to redirect user to another webpage.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;url&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;http://jquerybyexample.blogspot.com&quot;&lt;/span&gt;;
$(location).attr(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;href&#39;&lt;/span&gt;,&amp;nbsp;url);&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;border:1px solid grey; width:450px;height:75px;background-color:#d4ffd4;padding-left:10px&quot;&gt;Also look in to these posts:&lt;br/&gt;&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/11/how-to-refresh-or-reload-webpage.html&quot;&gt;How to Refresh a Webpage dynamically using jQuery&lt;/a&gt;&lt;br/&gt;&lt;a style=&quot;color:purple; text-decoration:underline&quot; href=&quot;http://sharepoint-2010-world.blogspot.in/2013/10/merging-tables-using-jquery.html&quot;&gt;How to merge two tables into one table using jQuery&lt;/a&gt;&lt;/br&gt; &lt;/div&gt;&lt;br/&gt;
So whenever you like to redirect user to another webpage just use the location object as shown in the above code.&lt;br /&gt;
If you like to redirect user to a new webpage using JavaScript, follow the below lines of code.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;window.location.replace(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;http://jquerybyexample.blogspot.com&quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;or&lt;/pre&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;window.location.href&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;http://jquerybyexample.blogspot.com&quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;br /&gt;
Both the above methods redirect the user to a new webpage in the same way, but the only difference is when you use replace() the user gets redirected but the page will not be added in the browser history. So you cannot access the back button.&lt;br /&gt;
So it is recommended to use the second method to redirect user to a new webpage as it maintains the browser history too.&lt;br /&gt;
Hope you like this post and feel free to suggest and post your valuable comments.

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/5360338189738692257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/redirect-user-to-another-webpage-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5360338189738692257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5360338189738692257'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/redirect-user-to-another-webpage-using.html' title='How to redirect user to a new page using jquery'/><author><name>Unknown</name><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-976508730495432249.post-5793344977132113638</id><published>2013-11-11T22:53:00.002+05:30</published><updated>2013-11-11T22:53:58.957+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>How to Refresh or Reload a Webpage Automatically jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It is quite a common thing for all of us to refresh or reload our webpages in our daily life. But generally we do refresh or reload our pages manually. Sometimes it is required for the page to get refreshed or reloaded automatically by itself. 
In case you have some live updates to be projected on your page it is required for that page to get reloaded automatically. For example the cricket scores get refreshed for every 10-15 seconds even if there is no change in the scoreboard.&lt;br /&gt;
To achieve this we can simply implement this in two ways.
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Using HTML&lt;/li&gt;
&lt;li&gt;Using jQuery&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h2&gt;
&lt;u&gt;
Using HTML:&lt;/u&gt;&lt;/h2&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;meta&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;http-equiv&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;refresh&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;content&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;10&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;
&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;The attribute http-equiv=”refresh” despite being a normal standard meta tag sends an HTTP command, which helps the page to get refreshed.&lt;/li&gt;
&lt;li&gt;The content attribute holds a value in seconds which means that the page will be refreshed for every 20 seconds.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
&lt;u&gt;Using jQuery:&lt;/u&gt;&lt;/h2&gt;
The following jQuery code reloads or refreshes the webpage automatically.&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;reloadPage()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location.reload();
};
$(document).ready(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;setTimeout(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;reloadPage()&quot;&lt;/span&gt;,&amp;nbsp;20000);&amp;nbsp;
});&lt;/pre&gt;
location.reload() here refreshes&amp;nbsp;the page for every 20000 ms.The main advantage of using location.reload() is it works for all major browsers.
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;u&gt;Refresh page on button click:&lt;/u&gt;&lt;/h2&gt;
If required you can also place a button to refresh the page on clicking.
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 13px;&quot;&gt;$(document).ready(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;#btn_Reload&#39;&lt;/span&gt;).click(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location.reload();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});
});&lt;/pre&gt;
&lt;p&gt;Hence these are some of the many ways on how to refresh or reload a webpage automatically.&lt;br/&gt;Hope this post helps you and
please feel free to suggest and post your valuable comments.&lt;/p&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/5793344977132113638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/how-to-refresh-or-reload-webpage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5793344977132113638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5793344977132113638'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/how-to-refresh-or-reload-webpage.html' title='How to Refresh or Reload a Webpage Automatically jQuery'/><author><name>Unknown</name><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-976508730495432249.post-5589238769185483801</id><published>2013-11-11T17:03:00.002+05:30</published><updated>2013-11-11T17:04:17.358+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How To Apply Themes Dynamically To Master Page?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We all use the concept of Master Pages which sets a defined style pattern to all the pages which included it. The question here is &lt;b&gt;Can we dynamically change the css content in the master page?&lt;/b&gt;
The answer is yes. You should have already known the concept of themes in which we define any number of custom styles.
We actually set some default theme to our site. But what if the user likes to &lt;b&gt;change the theme of the page dynamically ?&lt;/b&gt;&lt;br /&gt;
The solution is taking a dropdown list in your page and then populating them with the themes available in your application and rendering them into your master page in the Page_PreInit stage of the page life cycle.&lt;br /&gt;
Here is the step by step process:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Build as many themes you like under the App_Themes folder of your project&lt;/li&gt;
&lt;li&gt;Place the corresponding css styles in your themes.&lt;/li&gt;
&lt;li&gt;Add a dropdown list in your master page.&lt;/li&gt;
&lt;li&gt;Bind the dropdown list items with the themes.&lt;/li&gt;
&lt;li&gt;
Select the theme you like.&lt;/li&gt;
&lt;/ul&gt;
.
Now on changing the dropdown value the code behind should trigger like this.&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;Page_PreInit(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;&amp;nbsp;e)
&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;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;myTheme;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myTheme&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;)Session[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;selectedTheme&quot;&lt;/span&gt;];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(thm&amp;nbsp;!=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&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;Page.Theme&amp;nbsp;=&amp;nbsp;myTheme;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ddlThemes.Text&amp;nbsp;=&amp;nbsp;myTheme;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;span style=&quot;color: blue;&quot;&gt;else&lt;/span&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;Session[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;selectedTheme&quot;&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;ddlThemes.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Page.Theme&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Blue&quot;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;ddlThemes_SelectedIndexChanged(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;&amp;nbsp;e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Session[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;selectedTheme&quot;&lt;/span&gt;]&amp;nbsp;=&amp;nbsp;ddlThemes.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Server.Transfer(Request.FilePath);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;
&lt;p&gt;This is the way how you apply the themes dynamically to your master page.Hope it helps you and feel free to suggest and post your valuable comments.&lt;/p&gt;
For more information ,explore  &lt;a href=&quot;http://sharepoint-2010-world.blogspot.in/search/label/ASP.NET&quot;&gt;ASP.NET/C#&lt;/a&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/5589238769185483801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/how-to-apply-themes-dynamically-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5589238769185483801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5589238769185483801'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/how-to-apply-themes-dynamically-to.html' title='How To Apply Themes Dynamically To Master Page?'/><author><name>Unknown</name><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-976508730495432249.post-320987313762400229</id><published>2013-11-11T10:48:00.000+05:30</published><updated>2013-11-12T10:53:58.884+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>How to check date is greater or lesser than Current Date using javascript / jQuery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;i&gt;&quot;This post is all about to check whether the entered date is less than or greater than the current date using jquery/javascript&quot;&lt;/i&gt;&lt;/b&gt;&lt;br/&gt;
This is one of the most common scenarios we come across in most of the applications in our daily life. Selecting a date is quite a common thing or most of the times a mandatory field in our applications. The date field is used in all utilities starting from a simple application form for a school child to transactions form of a bank.
But sometimes we are asked to set some validations on the date field, say to &lt;b&gt;check whether the entered date is greater or lesser than the current date.&lt;/b&gt;&lt;br /&gt;
So in this post we implement a very useful validation on date field.
Generally we use a date-picker to help user to select a date.But in our case we just use a textbox and enter the date in a particular format. Sometimes we come across a requirement to &lt;b&gt;check&lt;/b&gt; that the date entered by the user &lt;b&gt;should not be greater than the current date&lt;/b&gt; or sometimes &lt;b&gt;greater than the current date&lt;/b&gt;.&lt;br /&gt;
So let us move further on how to implement this using a bit of JavaScript or jQuery.
Suppose we have a couple of fields with a submit button in our page.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&amp;nbsp;&amp;nbsp;      Name:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;input&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;txtName&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DOB:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;input&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;txtDateEntered&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;input&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Text1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;compareDate();&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;b&gt;Note:&lt;/b&gt;Date should be entered in this format [dd-mm-yyyy].

Now here goes the JavaScript code on &lt;b&gt;how to check whether the entered date is greater or lesser than the current date&lt;/b&gt;.

In my JavaScripr file:&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;compareDate()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//In&amp;nbsp;javascript&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;dateEntered&amp;nbsp;=&amp;nbsp;document.getElementById(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;txtDateEntered&quot;&lt;/span&gt;).value;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;In&amp;nbsp;JQuery&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;dateEntered&amp;nbsp;=&amp;nbsp;$(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;#txtDateEntered&quot;&lt;/span&gt;).val();
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;date&amp;nbsp;=&amp;nbsp;dateEntered.substring(0,&amp;nbsp;2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;month&amp;nbsp;=&amp;nbsp;dateEntered.substring(3,&amp;nbsp;5);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;year&amp;nbsp;=&amp;nbsp;dateEntered.substring(6,&amp;nbsp;10);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;dateToCompare&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date(year,&amp;nbsp;month&amp;nbsp;-&amp;nbsp;1,&amp;nbsp;date);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;currentDate&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date();
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(dateToCompare&amp;nbsp;&amp;gt;&amp;nbsp;currentDate)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Date&amp;nbsp;Entered&amp;nbsp;is&amp;nbsp;greater&amp;nbsp;than&amp;nbsp;Current&amp;nbsp;Date&amp;nbsp;&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Date&amp;nbsp;Entered&amp;nbsp;is&amp;nbsp;lesser&amp;nbsp;than&amp;nbsp;Current&amp;nbsp;Date&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;br /&gt;
This is how you check whether the entered date is greater or lesser than the current date.
That’s all the simple script above does the trick for you. So try to follow the code given above and implement wherever you require.&lt;br /&gt;
Hope it helps you and feel free to suggest or post comments.&lt;br /&gt;
For more knowledge on jQuery/JavaScript ,you can explore &lt;a href=&quot;http://sharepoint-2010-world.blogspot.in/search/label/jQuery&quot;&gt;Tricks in jQuery/JavaScript.&lt;/a&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/320987313762400229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/how-to-compare-dates-with-current-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/320987313762400229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/320987313762400229'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/how-to-compare-dates-with-current-date.html' title='How to check date is greater or lesser than Current Date using javascript / jQuery'/><author><name>Unknown</name><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-976508730495432249.post-6082075643299170471</id><published>2013-11-08T16:02:00.000+05:30</published><updated>2013-11-08T16:21:09.148+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Cookies 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;h3&gt;What is a Cookie?&lt;/h3&gt;
&lt;b&gt;Cookies&lt;/b&gt; in .Net are mainly used for &lt;i&gt;state management&lt;/i&gt;. Cookies are simple files of plain text which are stored on the client’s hard disk or on browser memory. These files hold the information of the user and uses whenever required.&lt;br /&gt;
We all know that HTTP protocols are stateless, In order to achieve state management cookies are used to store small pieces of information on client&#39;s system which the webpage is able to read when the user visits that site.Let us see about cookies in detail.&lt;br/&gt;
&lt;br /&gt;
&lt;h3&gt;
How are Cookies originated?&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;When the client requests for a page to the server for the first time, the server serves the client along with a &lt;b&gt;cookie&lt;/b&gt;. The server generates a session id and sends it to the client as a cookie.&lt;/li&gt;
&lt;li&gt;The cookie with the session id is stored on client’s machine or in the browser memory.&lt;/li&gt;
&lt;li&gt;Now whenever the same client requests the server, it uses the session id to recognize the client and serves it.&lt;/li&gt;
&lt;li&gt;Only the browser and the server are involved in exchanging the cookies.&lt;/li&gt;
&lt;li&gt;When you hit an URL to the server, it first checks across the cookies for any information related to it and if present, it is moved to the server with that information.&lt;/li&gt;
&lt;/ol&gt;
Simply to tell, &lt;b&gt;Cookies&lt;/b&gt; are used to store the information on the client’s system. It contains the information which can be read by the webpage requested whenever the user visits the site.&lt;br /&gt;&lt;br/&gt;
&lt;h3&gt;
Types of Cookies:&lt;/h3&gt;
Cookies are classifies into two types. They are,
&lt;ol&gt;
&lt;li&gt; &lt;b&gt;Persistent cookies&lt;/b&gt;.&lt;br /&gt;Persistent cookies are also called permanent cookies. These are stored on the client’s hard disk. But it is mandatory to define an expiry date for persistent cookies. Sometimes they live till the user deletes them.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Non-Persistent cookies.&lt;/b&gt;&lt;br /&gt;Non-Persistent cookies can be called as temporary cookies. These reside on the browser memory. No expiry date is defined for these type of &lt;b&gt;cookies&lt;/b&gt;.
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
Creating a Cookie:&lt;/h3&gt;
&lt;pre style=&quot;background: #1e1e1e; color: gainsboro; font-family: Consolas; font-size: 14;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #608b4e;&quot;&gt;//Create&amp;nbsp;a&amp;nbsp;cookie&amp;nbsp;object&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;HttpCookie&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;HttpCookie&lt;/span&gt;(&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;User_Details&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #608b4e;&quot;&gt;//Set&amp;nbsp;values&amp;nbsp;inside&amp;nbsp;the&amp;nbsp;cookie&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;[&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;UserName&quot;&lt;/span&gt;]&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;Jimmy&quot;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;[&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;Location&quot;&lt;/span&gt;]&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;Texas&quot;&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #608b4e;&quot;&gt;//Add&amp;nbsp;the&amp;nbsp;cookie&amp;nbsp;to&amp;nbsp;the&amp;nbsp;curent&amp;nbsp;web&amp;nbsp;response&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;Response&lt;/span&gt;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;Cookies&lt;/span&gt;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;Add&lt;/span&gt;(&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;);&lt;/pre&gt;
&lt;h3&gt;
Reading values from a Cookie:&lt;/h3&gt;
&lt;pre style=&quot;background: #1e1e1e; color: gainsboro; font-family: Consolas; font-size: 14;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #608b4e;&quot;&gt;//Retrieving&amp;nbsp;cookies&amp;nbsp;across&amp;nbsp;the&amp;nbsp;cookie&amp;nbsp;name&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;HttpCookie&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;Request&lt;/span&gt;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;Cookies&lt;/span&gt;[&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;User_Details&quot;&lt;/span&gt;];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;string&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;username&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;location&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #608b4e;&quot;&gt;//Checking&amp;nbsp;whether&amp;nbsp;the&amp;nbsp;cookie&amp;nbsp;existed&amp;nbsp;or&amp;nbsp;not&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;!=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #569cd6;&quot;&gt;null&lt;/span&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;&lt;span style=&quot;color: white;&quot;&gt;username&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;[&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;UserName&quot;&lt;/span&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;&lt;span style=&quot;color: white;&quot;&gt;location&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #b4b4b4;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: white;&quot;&gt;userDetails_Cookie&lt;/span&gt;[&lt;span style=&quot;color: #d69d85;&quot;&gt;&quot;Location&quot;&lt;/span&gt;];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;

Hence here we came to know &lt;b&gt;what exactly a cookie is&lt;/b&gt;? And an idea on how do we a cookie is generated and how to write and read values from the cookie.&lt;br/&gt;
Hope it helps you and feel free to suggest and post comments if you have any doubts regarding.
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/6082075643299170471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/cookies-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/6082075643299170471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/6082075643299170471'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/cookies-in-aspnet.html' title='Cookies in ASP.NET'/><author><name>Unknown</name><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-976508730495432249.post-2600252447834588253</id><published>2013-11-01T12:14:00.000+05:30</published><updated>2013-11-08T16:18:19.456+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Boxing and UnBoxing in c# with Examples</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In order to understand what &lt;b&gt;Boxing&lt;/b&gt; and &lt;b&gt;Un-Boxing&lt;/b&gt; are, initially one need to understand what are &lt;a href=&quot;http://sharepoint-2010-world.blogspot.in/2013/10/value-types-and-reference-types-in-net.html&quot;&gt;&lt;i&gt;Value Types and Reference Types.&lt;/i&gt;&lt;/a&gt;.

Boxing and Un-Boxing are just the technical terms to typecast  either value types to reference types or reference types to value types.
&lt;br /&gt;
&lt;h3&gt;
Boxing&lt;/h3&gt;
Converting value type to reference type is called as &lt;b&gt;Boxing&lt;/b&gt;.&lt;br /&gt;
Example:&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;x&amp;nbsp;=&amp;nbsp;100;
&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;&amp;nbsp;obj&amp;nbsp;= i;&lt;/pre&gt;


Here ‘x’ is of type int which is a value type which is taken as reference by an object ‘o’ which is a reference type.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
UnBoxing&lt;/h3&gt;
Converting a Reference type to a value type is known as &lt;b&gt;UnBoxing&lt;/b&gt;.&lt;br /&gt;
Example:&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;&amp;nbsp;obj&amp;nbsp;=&amp;nbsp;100;
&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;)obj&lt;/pre&gt;
Here just the reverse happened, object type is type-casted to integer, so its &lt;b&gt;UnBoxing&lt;/b&gt;.
&lt;br /&gt;
&lt;h3&gt;&lt;br/&gt;
Perfomance:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Value Types will be accessed faster compared to Reference Types as they have their value directly in their own memory allocation.&lt;/li&gt;
&lt;li&gt;Reference Types will be accessed a bit slower compared to the Value Types because they it has to refer another memory location to get the value which costs one more transaction.&lt;/li &gt;
&lt;li&gt;But it is always recommended not to use &lt;b&gt;Boxing and UnBoxing&lt;/b&gt; everywhere except the situation demands. Because these operations cost some additional time to execute and may show impact on the overall performance of your program if used frequently.&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/2600252447834588253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/boxing-and-unboxing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/2600252447834588253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/2600252447834588253'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/11/boxing-and-unboxing.html' title='Boxing and UnBoxing in c# with Examples'/><author><name>Unknown</name><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-976508730495432249.post-4151591870687252388</id><published>2013-10-31T22:37:00.000+05:30</published><updated>2013-10-31T22:38:39.167+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Value Types and Reference Types in .Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;What is a Data Type?&lt;/b&gt;
&lt;p&gt;&lt;b&gt;Data Types&lt;/b&gt; in the programming scenario are the categorized sections,which are based on the type of data stored in them.Generally different types of data are stored in different memory with different structures such as stack or heap memories.&lt;br/&gt;
Some data types holds its data within its own memory allocation and some store only the address of the data[Data is present at some other location].So Data Types are categorized based on the way how they store their values .&lt;/p&gt;
Categories of Data Types&lt;br/&gt;
Generally we come across many data types in our programming journey like int, char, float,object etc. But to be clear  all the Data Types are classified into two sections , they are:
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Value Type&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Reference Type&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
Let us discuss them in detail:&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Value Type:&lt;/b&gt;&lt;br/&gt;
&lt;ul&gt;
&lt;li&gt;The Data Types which store their values directly in their stack memory are known as &lt;b&gt;Value Types&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Among the built-in Data Types ,except &#39;String&#39; and &#39;Object&#39; all other data types are considered value types &lt;/li&gt;
&lt;li&gt;Among user defined data types &#39;structure&#39; and &#39;enum&#39; are taken as value types.&lt;/li&gt;
&lt;li&gt;Examples: All numeric  data types, char bool, date, structures and enum etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;br/&gt;
&lt;b&gt;Reference Type&lt;/b&gt;&lt;br/&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Reference Types&lt;/b&gt; are those which store their values in heap memory and the address of those values are stored in stack memory as variables.&lt;/li&gt;
&lt;li&gt;Among the built-in data types &#39;string&#39; and &#39;object&#39; are taken as &lt;b&gt;Reference Types&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Among user defined data types Arrays, Class, Interface, and Delegate etc are taken as reference types.&lt;/li&gt;
&lt;li&gt;Examples:string, object, arrays, delegates, interface etc.&lt;/li&gt;
&lt;/ul&gt;&lt;br/&gt;

Hope it helps you, Please feel free to suggest and post your valuable comments.


&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/4151591870687252388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/value-types-and-reference-types-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/4151591870687252388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/4151591870687252388'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/value-types-and-reference-types-in-net.html' title='Value Types and Reference Types in .Net'/><author><name>Unknown</name><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-976508730495432249.post-5298528226257378951</id><published>2013-10-31T16:56:00.002+05:30</published><updated>2013-11-01T13:16:30.741+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>How to merge or combine two tables into one?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this post I am going to explain how to &lt;b&gt;merge&lt;/b&gt; two tables of your web page into a single table using jQuery. This may not be a frequent practice in our daily applications but let us make use of our programming skills to meet each and every requirement according to the situation.&lt;br /&gt;
What we need to do here is,&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Create two tables in your Webform.&lt;/li&gt;
&lt;li&gt; Output is shortened to a single table with the two &lt;b&gt;tables merged&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;
Let the following be your HTML code:&lt;br /&gt;
&lt;b&gt;merge.aspx:&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Form1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onsubmit&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;return&amp;nbsp;merge();&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;primaryTable&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;border&lt;/span&gt;:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;1px&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;solid&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;grey&lt;/span&gt;;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;thead&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Name&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Age&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;thead&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T1-ROW1-Name&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T1-ROW1-Age&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T1-ROW2-Name&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T1-ROW2-Age&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;secondaryTable&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T2-ROW1-Name&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T2-ROW1-Age&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T2-ROW2-Name&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;T2-ROW2-Age&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;

&lt;br /&gt;
The above code just creates two tables with the first table having id=’primaryTable’.
And the second table with id=’secondaryTable’.&lt;br /&gt;
Now we will use simple jQuery to &lt;b&gt;merge&lt;/b&gt; these two tables in to one.The logic we implement 
here is we merge the first table’s last child of its parent element with the body of the 
second table.&lt;br /&gt;
Following is my JavaScript file.&lt;br /&gt;
&lt;b&gt;merge.js&lt;/b&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:RelyOnVML/&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;&amp;#45;-&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;false&quot;
  DefSemiHidden=&quot;false&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;371&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footnote text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;header&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footer&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;table of figures&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;envelope address&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;envelope return&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footnote reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;line number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;page number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;endnote reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;endnote text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;table of authorities&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;macro&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;toa heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Closing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Signature&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Message Header&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Salutation&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Date&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text First Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text First Indent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Note Heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Block Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Hyperlink&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;FollowedHyperlink&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Document Map&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Plain Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;E-mail Signature&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Top of Form&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Bottom of Form&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal (Web)&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Acronym&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Address&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Cite&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Code&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Definition&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Keyboard&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Preformatted&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Sample&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Typewriter&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Variable&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal Table&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation subject&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;No List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Contemporary&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Elegant&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Professional&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Subtle 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Subtle 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Balloon Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Theme&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; QFormat=&quot;true&quot;
   Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; QFormat=&quot;true&quot;
   Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; QFormat=&quot;true&quot;
   Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;41&quot; Name=&quot;Plain Table 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;42&quot; Name=&quot;Plain Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;43&quot; Name=&quot;Plain Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;44&quot; Name=&quot;Plain Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;45&quot; Name=&quot;Plain Table 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;40&quot; Name=&quot;Grid Table Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot; Name=&quot;Grid Table 1 Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot; Name=&quot;Grid Table 6 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot; Name=&quot;Grid Table 7 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot; Name=&quot;List Table 1 Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot; Name=&quot;List Table 6 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot; Name=&quot;List Table 7 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 6&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:8.0pt;
 mso-para-margin-left:0in;
 line-height:107%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;$(document).ready(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;()&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background: white;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas;&quot;&gt;&quot;.primaryTable&amp;nbsp;&amp;gt;&amp;nbsp;tbody:last&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;).append($(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas;&quot;&gt;&quot;.secondaryTable&amp;nbsp;&amp;gt;&amp;nbsp;tbody&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;).html());&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;$(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&quot;.secondaryTable&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;).remove();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;});&lt;/span&gt;&lt;/div&gt;
&amp;nbsp;

&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;That’s all ,the two tables will be merged to a single table with small piece of &lt;b&gt;jQuery&lt;/b&gt; code.
Hope it helps you. Feel free to suggest and post your valuable comments.

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/5298528226257378951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/merging-tables-using-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5298528226257378951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5298528226257378951'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/merging-tables-using-jquery.html' title='How to merge or combine two tables into one?'/><author><name>Unknown</name><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-976508730495432249.post-795554807015260710</id><published>2013-10-29T12:39:00.000+05:30</published><updated>2013-11-01T13:22:39.322+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><title type='text'>Populating GridView with Textbox values</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Many times in our applications we come across storing values, Names, and some other details and display them static or dynamically.
We generally use a &lt;b&gt;Gridview &lt;/b&gt;to &lt;b&gt;populate &lt;/b&gt;them with our values entered in our form.&lt;br /&gt;
In this post I will explain you with a simple example on how to populate or store values in a&lt;b&gt; grid view&lt;/b&gt; which displays the details statically in our webpage.&lt;br /&gt;
Let this be my &lt;b&gt;HTML Code&lt;/b&gt;:&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Populating&amp;nbsp;Grid&amp;nbsp;with&amp;nbsp;Form&amp;nbsp;Values&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;myForm&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;My&amp;nbsp;Value&amp;nbsp;1:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;textbox&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;txtVal1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;textbox&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;br&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;My&amp;nbsp;Value&amp;nbsp;2:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;textbox&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;txtVal2&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;textbox&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;br&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;My&amp;nbsp;Value&amp;nbsp;3:&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;textbox&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;txtVal3&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;textbox&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;gridview&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;myGrid&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;gridview&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;br&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;button&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;btnSave&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;onclick&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;btnSubmit_Click&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
The above html generates a form with three textboxes and a submit button and a &lt;b&gt;Gridview&lt;/b&gt;.
When I enter some values in the &lt;b&gt;textboxes&lt;/b&gt; and click the submit button the values get populated in the grid and displayed statically.&lt;br /&gt;
The logic behind generating a pattern for the grid and populating the details in it goes here:&lt;br /&gt;
&lt;b&gt;Code Behind:&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;btnSubmit_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;&amp;nbsp;e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&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;span style=&quot;color: #2b91af;&quot;&gt;DataTable&lt;/span&gt;&amp;nbsp;dt&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataTable&lt;/span&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;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(myGrid.Rows.Count&amp;nbsp;==&amp;nbsp;0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dt&amp;nbsp;=&amp;nbsp;MakeTable();
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&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;span style=&quot;color: blue;&quot;&gt;else&lt;/span&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;dt&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;DataTable&lt;/span&gt;)ViewState[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;dt&quot;&lt;/span&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;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataRow&lt;/span&gt;&amp;nbsp;dr&amp;nbsp;=&amp;nbsp;dt.NewRow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dr[0]&amp;nbsp;=&amp;nbsp;txtVal1.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dr[1]&amp;nbsp;=&amp;nbsp;txtVal2.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dr[2]&amp;nbsp;=&amp;nbsp;txtVal3.Text;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dt.Rows.Add(dr);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myGrid.DataSource&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&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;myGrid.DataSource&amp;nbsp;=&amp;nbsp;dt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myGrid.DataBind();
&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.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;dt&quot;&lt;/span&gt;,&amp;nbsp;dt);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;span style=&quot;color: #2b91af;&quot;&gt;DataTable&lt;/span&gt;&amp;nbsp;MakeTable()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&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;span style=&quot;color: #2b91af;&quot;&gt;DataTable&lt;/span&gt;&amp;nbsp;Mydt&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataTable&lt;/span&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;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataColumn&lt;/span&gt;&amp;nbsp;column1&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataColumn&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;column1&quot;&lt;/span&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;column1.DataType&amp;nbsp;=&amp;nbsp;System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Type&lt;/span&gt;.GetType(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;System.String&quot;&lt;/span&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;Mydt.Columns.Add(column1);
 
&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;span style=&quot;color: #2b91af;&quot;&gt;DataColumn&lt;/span&gt;&amp;nbsp;column2&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataColumn&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;column2&quot;&lt;/span&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;column2.DataType&amp;nbsp;=&amp;nbsp;System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Type&lt;/span&gt;.GetType(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;System.String&quot;&lt;/span&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;Mydt.Columns.Add(column2);
 
 
&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;span style=&quot;color: #2b91af;&quot;&gt;DataColumn&lt;/span&gt;&amp;nbsp;column3&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DataColumn&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;column3&quot;&lt;/span&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;column3.DataType&amp;nbsp;=&amp;nbsp;System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Type&lt;/span&gt;.GetType(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;System.String&quot;&lt;/span&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;Mydt.Columns.Add(column3);
&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;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;Mydt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;
&lt;/pre&gt;
On running this code we can see that the details from the &lt;b&gt;textboxes&lt;/b&gt; get &lt;b&gt;populated &lt;/b&gt;in the &lt;b&gt;gridview&lt;/b&gt; and displayed on our web page.&lt;br /&gt;
Hope it helps you and especially for those who are fresh developers.
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/795554807015260710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/populating-grid-with-form-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/795554807015260710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/795554807015260710'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/populating-grid-with-form-values.html' title='Populating GridView with Textbox values'/><author><name>Unknown</name><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-976508730495432249.post-3242608325456474159</id><published>2013-10-17T21:21:00.000+05:30</published><updated>2013-10-29T22:42:31.627+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular js"/><title type='text'>$broadcast (), $emit() and $on() in Angular Js</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In order to understand how the events are propagated along the html DOM we use few functions that raise the events and others which behave as their listeners. Sometimes we require to enable only the parent scope elements get affected from the current scope and sometimes vice-versa.&lt;br /&gt;
In order to meet these two situations angular provides some event raisers and event listeners.
&lt;br /&gt;
&lt;h3&gt;
Event Raisers:&lt;/h3&gt;
&lt;pre class=&quot;jscript&quot; name=&quot;code&quot;&gt;$broadcast(eventName, arguments) and
$emit(eventName, arguments)
//Both these functions can raise an event and can send arguments too.
&lt;/pre&gt;
&lt;h3&gt;
Event Listener:&lt;/h3&gt;
&lt;pre class=&quot;jscript&quot; name=&quot;code&quot;&gt;$on(eventName, listener)
&lt;/pre&gt;
This function gets executed whenever the respective ‘eventName’ is raised and the ‘listener’ is a function that gets executed whenever it listens to an event from the event raisers. 
&lt;br /&gt;
&lt;b&gt;Now let us know about them in detail:&lt;/b&gt;&lt;br /&gt;
&lt;strong&gt;$broadcast():&lt;/strong&gt; It dispatches the event name to the registered listeners of scope downwards the current scope and their child scopes i.e. the event propagates or traverses from the scope where the event is raised to all the child scopes with valid listeners on it.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;$emit():&lt;/strong&gt; It dispatches the event name to the registered listeners of the scope upwards from the current scope along the way to the root scope .The event traverses through all the listeners from the current scope to the parent scopes on its way to the root scope. &lt;br /&gt;
&lt;strong&gt;Let us check with an example:&lt;/strong&gt;&lt;br /&gt;
Here is my html page:
&lt;br /&gt;
&lt;pre class=&quot;xml&quot; name=&quot;code&quot;&gt;&lt;div ng-controller=&quot;myController&quot;&gt;
&lt;label&gt;Parent scope: {{count}}&lt;/label&gt;
        &lt;br /&gt;
&lt;ul&gt;
&lt;li ng-controller=&quot;myController&quot;&gt;
                &lt;button ng-click=&quot;$emit(&#39;MyEvent&#39;)&quot;&gt;Emit-Event&lt;/button&gt;
                &lt;button ng-click=&quot;$broadcast(&#39;MyEvent&#39;)&quot;&gt;Broadcast-event&lt;/button&gt;
                &lt;label&gt;Middle scope:{{count}}&lt;/label&gt;
                &lt;ul&gt;
&lt;li ng-controller=&quot;myController&quot;&gt;
                        &lt;label&gt;Leaf scope: {{count}}&lt;/label&gt;
                    &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/pre&gt;
Here is my javascript:
&lt;br /&gt;
&lt;pre class=&quot;jscript&quot; name=&quot;code&quot;&gt;function myController($scope) {
    $scope.count = 0;
    $scope.$on(&#39;MyEvent&#39;, function () {
        $scope.count++;
    });
}
&lt;/pre&gt;
Just replicate the above code in your visual studio.Once you run it it looks like this:&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/AVvXsEguhTnJl7Xb5BRtFD-Ev2puyeDkLLXz7Nx5kAmqE3DQZx_aDbmzPYLp7gcbcmpQK03xwC1tMdUnL8BpAmhzVDLBD8ZvW8SBsMY_xOdc82hyIfbgNG1wZj-cUWlDvBV627o9uL5Y7hTvHQQ/s1600/Capture.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/AVvXsEguhTnJl7Xb5BRtFD-Ev2puyeDkLLXz7Nx5kAmqE3DQZx_aDbmzPYLp7gcbcmpQK03xwC1tMdUnL8BpAmhzVDLBD8ZvW8SBsMY_xOdc82hyIfbgNG1wZj-cUWlDvBV627o9uL5Y7hTvHQQ/s400/Capture.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Click on the &lt;strong&gt;Emit-Event&lt;/strong&gt; button, it means that we are generating an event using $emit() in the middle scope i.e the current scope from where the event is originated.
&lt;br /&gt;Now the output looks like this:&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/AVvXsEhLQhXu7iLyZmDWwaqr3zO5n-ElazhGGUoLus25yb5GOYNtLagYQcrAjAeTNFmRf08EXOK3ieVK5UJk6khd9FJ1MHWQash9tx6-LSkahr5l58HZRI4t7wf3CrASLolN5-bgbfQdfr3JcwA/s1600/Capture2.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/AVvXsEhLQhXu7iLyZmDWwaqr3zO5n-ElazhGGUoLus25yb5GOYNtLagYQcrAjAeTNFmRf08EXOK3ieVK5UJk6khd9FJ1MHWQash9tx6-LSkahr5l58HZRI4t7wf3CrASLolN5-bgbfQdfr3JcwA/s400/Capture2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;strong&gt;Observation:&lt;/strong&gt;The count in the current scope and the parent scope are incremented to 1.&lt;br /&gt;
As discussed earlier the $emit() dispatched the event name to the listeners in the scope upwards the current scope .So the parent scope is incremented.
&lt;/li&gt;
&lt;li&gt;Now click  on the &lt;strong&gt;Broadcast-Event&lt;/strong&gt; button, it means that we are raising an event using $broadcast() in the mid scope ie in the current scope.&lt;br /&gt;Now the output looks like:&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/AVvXsEgtDNyKbn4GNlQQb6DjGfHx3Whg0ZGix4-9Woz0w-0lP7qdRgwMZaUZBSDZ6hT06ChWeVKLoDuwyT2Q7uM3mzv8kAmUBQaY3QPVLAQJyG56T1SrF6hYaugyQ7crnJkv31N-j21sOTq9rUQ/s1600/Capture3.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/AVvXsEgtDNyKbn4GNlQQb6DjGfHx3Whg0ZGix4-9Woz0w-0lP7qdRgwMZaUZBSDZ6hT06ChWeVKLoDuwyT2Q7uM3mzv8kAmUBQaY3QPVLAQJyG56T1SrF6hYaugyQ7crnJkv31N-j21sOTq9rUQ/s400/Capture3.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;strong&gt;Observation:&lt;/strong&gt; The current scope and the leaf scopes are incremented whereas the parent scope remains unchanged.
&lt;br /&gt;Here , $broadcast() dispatched an event which traverses to the listener downwards the current scope.
&lt;/li&gt;
&lt;/ul&gt;
Hope this helps you to understand the very basic actions of $broadcast,$emit and $on.Please feel free to comment and your valuable suggestions are always welcome. 
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/3242608325456474159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/broadcast-emit-and-on-in-angular-js.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3242608325456474159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3242608325456474159'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/broadcast-emit-and-on-in-angular-js.html' title='$broadcast (), $emit() and $on() in Angular Js'/><author><name>Unknown</name><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/AVvXsEguhTnJl7Xb5BRtFD-Ev2puyeDkLLXz7Nx5kAmqE3DQZx_aDbmzPYLp7gcbcmpQK03xwC1tMdUnL8BpAmhzVDLBD8ZvW8SBsMY_xOdc82hyIfbgNG1wZj-cUWlDvBV627o9uL5Y7hTvHQQ/s72-c/Capture.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-6427435224286930576</id><published>2013-10-16T14:32:00.000+05:30</published><updated>2013-10-16T15:37:23.243+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular js"/><title type='text'>$watch  in Angular Js</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

&lt;p&gt;Angular Js has a concept called &lt;b&gt;digest cycle&lt;/b&gt;, which is nothing but a loop of code during which angular checks throughout the scope to determine any changes to the variables within the scope. So, if you have any variables or objects defined under the $scope, then they are subject to undergo digest cycle.
&lt;/p&gt;
Example:&lt;/br&gt;
$scope.myVariable&lt;/br&gt;
$scope.myObject etc.
&lt;p&gt;&lt;b&gt;But what really keeps track on these variables inside the digest cycle?&lt;/b&gt;&lt;/p&gt;
The digest cycle internally calls $watch() function which actually takes care on the changes that occur on the variables under the $scope.&lt;br/&gt;
Now if you like your custom code to be run every time a change is occurred on your variables under $scope, you can call $watch() on the variable.&lt;br/&gt;
Let us see a small example.&lt;br/&gt;
Let my variables under the scope be,&lt;br/&gt;
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
$scope.myName=”Steve”;
//defining watch on my variable
$scope.$watch(“myName”,function(){ 
Alert(“My name is changed”);
//you can add the custom functionality as per your requirement
//I gave just an alert for you to understand at the moment
}
&lt;/pre&gt;
&lt;p&gt;Now when an event is triggered in your page  in which your variable (“myName”) is changed,&lt;br/&gt;
Consider a button click event,
&lt;/p&gt;
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
$scope.btnclick=function(){
$scope.myName=”Albert”; // this change will trigger $scope.$watch() into action
}
&lt;/pre&gt;
Whenever the value of the variable &quot;myName&quot; under the scope changes the alert defined in the $watch() function gets called.&lt;br/&gt;Like this you can define your custom code as per your requirement 
that should be triggered onchange of your desired variable.
&lt;p&gt;In this way you can set $watch() on any variable you want and define the custom functionality whenever there is a change on any variable on which $watch is called on.&lt;br/&gt;
Hope this helps.&lt;/p&gt;



&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/6427435224286930576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/watch-in-angular-js.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/6427435224286930576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/6427435224286930576'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/watch-in-angular-js.html' title='$watch  in Angular Js'/><author><name>Unknown</name><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-976508730495432249.post-3943560322845287657</id><published>2013-10-10T22:44:00.000+05:30</published><updated>2013-10-17T12:32:36.085+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular js"/><title type='text'>Using common directive across multiple modules in Angular Js</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;p&gt;
Angular Js has many inbuilt directives which we very often use in our html pages.
Even though we are facilitated will a wide kind of directives some times we come across situations where we should
design our own directives.While creating our own directive keep in mind that it should be reusable across all modules of
your project.
&lt;/p&gt;
&lt;h3&gt;Sharing directive among modules:&lt;/h3&gt;
&lt;p&gt;

That&#39;s cool,now many fresh devolopers may find it hard to know how to make the custom directive file shared across 
multiple modules they build in their project.&lt;br/&gt;
Let us make it declarative using a simple example ,so that you would get a better figure.&lt;/p&gt;
First we shall create a couple of modules belonging to your project.
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
var myApp = angular.module(&#39;module-one&#39;,[])

var myApp = angular.module(&#39;module-two&#39;,[])
&lt;/pre&gt;
&lt;br/&gt;
Now let us append a directive to one of the modules
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;

var myFirstApp = angular.module(&#39;module-one&#39;,[]).

directive(&#39;myCustomDirective&#39;,function(){

// implement your custom behaviour

}
&lt;/pre&gt;
&lt;br/&gt;
Now you need the same directive to be used in your module-two.What will you do?will you create a new directive for it.&lt;br/&gt;
No !you should&#39;nt ,you have to make the directive defined in module-one reusable in the current module.&lt;br/&gt;
It can be done very easily,
see the following piece of code below,,&lt;br/&gt;
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
var myApp = angular.module(&#39;module-two&#39;,[module-one])
&lt;/pre&gt;
That&#39;s all ,i just added module -one to the dependancies array of module-two.Now module-one&#39;s total belongings could 
be exposed in module-two.It can use the directive of module-one,thus avoided duplication achieved reusability.&lt;br/&gt;
In this way you can just add as dependancies to any number of modules and use the common functionality across multiple
modules.&lt;br/&gt;
&lt;h3&gt;Sharing common directive between applications:&lt;/h3&gt;
&lt;p&gt;In the same way if two different files are present for directives in two different applications ,but belonging to the same
project,you can use the same intellegence what we have done across multiple modules.
Let the two different directive files be&lt;br/&gt;
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
// application 1
var myApp1=angular.module(&#39;myModue&#39;,[directive.one])

//directive1.js

myApp1.directives=angular.module(&#39;directiveRepositoryOne&#39;,[]).

directive(&#39;myDirective&#39;,function(){

//custom behaviour

}

//application 2

var myApp2=angular.module(&#39;myModule&#39;,[directive.two])

//directive2.js

myApp2.directives=angular.module(&#39;directiveRepositoryTwo&#39;,[]).

directive(&#39;myDirective&#39;,function(){

//custom behaviour

}
&lt;/pre&gt;

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt;
While dealing with different applications don&#39;t forget to render the script files of the application in to your native application.&lt;/p&gt;
Like this we can make simple use of the dependancy array in our angular js application module and minimize redundancy and make our application less complicated.

&lt;/p&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/3943560322845287657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/using-common-directive-across-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3943560322845287657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3943560322845287657'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/using-common-directive-across-multiple.html' title='Using common directive across multiple modules in Angular Js'/><author><name>Unknown</name><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-976508730495432249.post-8286053809380982036</id><published>2013-10-09T09:43:00.000+05:30</published><updated>2013-10-09T23:44:50.110+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular js"/><title type='text'>ng-blur in Angular JS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1&gt;ng-blur&lt;/h1&gt;
ng-blur is one of the  directives provided by the angular framework which can trigger custom behaviour on blur.
you can use it as an attribute in various html elements.&lt;/br&gt;
For example,&lt;/br&gt;
&lt;pre name=&quot;code&quot; class=&quot;xml&quot;&gt;
&lt;input type=&quot;text&quot; ng-blur={expression}/&gt;
&lt;a ng-blur={expression}&gt;Hello world!&lt;/a&gt;
&lt;/pre&gt;
&lt;p&gt;Let us see a simple example&lt;/p&gt;
Let this be my design page&lt;/br&gt;
&lt;pre name=&quot;code&quot; class=&quot;xml&quot;&gt;
&lt;label&gt;Name:&lt;/label&gt;
&lt;input type=&quot;text&quot; ng-model=&quot;model.name&quot; ng-blur=&quot;myName()&quot;/&gt;
&lt;label&gt;User Name generated :&lt;/label&gt;
&lt;input type=&quot;text&quot; ng-model=&quot;model.username&quot;/&gt;

&lt;/pre&gt;
&lt;p&gt;If yoy observe the above example ,The user simply enters his or her name.On leaving the textbox ie on blur the user
should get his username generated automatically in the next textbox.&lt;/br&gt;
ng-blur=&quot;myName()&quot; is the attribute we have used in whch we raised an event which gets triggered on blur.&lt;/p&gt;
Now i handle the event in my javascript file, and the code here is,&lt;/br&gt;
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
$scope.myName=function()
{
if($scope.username===null || $scope.username===&quot;&quot;)
$scope.model.username=$scope.model.name + &quot;someId&quot;;
//here &quot;someId&quot; can be a sequence of numbers
}
&lt;/pre&gt;
So when the user types his Name and moves to the next field his username is automatically generated,his name attached with some id.
&lt;h3&gt;ng-blur not working&lt;/h3&gt;
This is one of the major problems complained by many fresh devolopers ,that my ng-blur not working.Yes this happens,especially because of the version which you are currently using.So check out in angularjs.org official website to know perfectly which vers ions support ng-blur and then proceed.
&lt;p&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/p&gt;
Evevthough we have support for ng-blur in latest versions,but if you got already started with older versions ,still you could manually get the functionality by adding the directive code manually to your application.&gt;/br&gt;
Attach the following like this to your application:&lt;/br&gt;
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
app.directive(&#39;ngBlur&#39;, [&#39;$parse&#39;, function($parse) {
  return function(scope, element, attr) {
    var fn = $parse(attr[&#39;ngBlur&#39;]);
    element.bind(&#39;blur&#39;, function(event) {
      scope.$apply(function() {
        fn(scope, {$event:event});
      });
    });
  }
}]);
&lt;/pre&gt;
&lt;p&gt;Now your application supports ng-blur directive and you can start using this as attribute like what we have done in the example explained above.&lt;/p&gt; 
Hope this helps you and please feel free to suggest an comment.

&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/8286053809380982036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/ng-blur-in-angular-js.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/8286053809380982036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/8286053809380982036'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/ng-blur-in-angular-js.html' title='ng-blur in Angular JS'/><author><name>Unknown</name><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-976508730495432249.post-7161254197167233643</id><published>2013-10-07T19:45:00.000+05:30</published><updated>2013-10-10T00:18:57.674+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular js"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>dynamic keyword in c# ,How and where to use?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h1&gt;
Dynamic type in c#:&lt;/h1&gt;
The &#39;dynamic&#39; type in c# is quite handy in situation like where the user code doesn&#39;t know the final type of data it is going to return the client.
The data type for the variables,properties or metnods which are declared as dynamic are not checked at the compile time, but will try to detect only at the runtime.
Thus the dynamic type ,bypasses the compile time check to the runtime.This saves you a lot of effort which involves conversion of types explicitly or implicitly at 
different levels of your code execution.&lt;br /&gt;
&lt;br /&gt;
For example,i want to return an object as an acknowledgement to a function on its success, from clientside , say from a javascript file.
But my method on server side raises another function in it which inturn returns an integer.&lt;br /&gt;
Now two points you have to consider:&lt;br /&gt;


The actual method on the server should have the type int [since the method inside it returns an integer]
But the actual method should return an object to the client.

In order to overcome these conflicts, generally we have to typecast the returned variables implicitly or explicitly at every level of your functionality 
for making the final returned value valid.

Let us take an example to get better clarity:

Suppose i have the following code in my javascript file.

&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
 $scope.saveLocation = function () {       
 var orgLocationResource = $resource(&quot;api/locations&quot;);

 orgLocationResource.save($scope.model, function (data) {

 $scope.locationId=data;

 }, function (error) {

 //To display error 

        });
&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;The above code is a method in my controller which is intended to save the location details of my company.[this function get called when i click on save button 
in my locations form in the ui] &lt;/li&gt;
&lt;li&gt;
I used $resource to point the data direction to my methods present in my web api controller.&lt;/li&gt;
&lt;li&gt;
The save method has two callback functions,one of them to collect success status and the other to display error on failure.&lt;/li&gt;
&lt;li&gt;
In this scenario i want my web api method to return the location id on successfully saving a location.&lt;/li&gt;
&lt;li&gt;
Since location id is ony of my object properties i want the web api to return the location id as an object.&lt;/li&gt;
&lt;/ul&gt;
Now the following is my web api methods in my api controller:
&lt;pre name=&quot;code&quot; class=&quot;csharp&quot;&gt;
public class LocationsController : ApiController
    {
        public LocationService LocService { get; private set; }

        public LocationsController (LocationService LocService )
        {
            this.LocService  = LocService ;
        }

 [ActionName(&quot;location&quot;)]//for time being im not returning anything from here
        public void PostLocation([FromBody]Location details)
        {
            this.LocService.saveLocation(details);
        }
&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;
In my web api controller i had a service in which i have the method to save the location details into the database.&lt;/li&gt;
&lt;li&gt;
In my case i am usind petapoco as my database.Petapoco , on saving a record returns the id of the table which is an integer.&lt;/li&gt;
&lt;li&gt;


The PostLocation method calls for savelocation method present in the service [here in my code LocationService is what the service i used]&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Save Location method in my service:&lt;/b&gt;
&lt;pre name=&quot;code&quot; class=&quot;csharp&quot;&gt; public int saveLocation(Core.Model.Org org)
        {
         
            return Convert.ToInt32(this.DB.Insert(org.MapTo&lt;datamodel.org=&quot;&quot;&gt;()));
        }
&gt;&lt;/pre&gt;
Now observe carefully,
the above method in my servce returns int,so the return type for my method &#39;PostLocation&#39; should be int.But this method is actually intended to return an object.
Generally we should do like this,
&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt; public int PostLocation([FromBody]Location details)
        {
           return this.LocService.saveLocation(details);  
//this need to be converted explicitly to type object[if dynamic return type is not used for our method]
        }
&lt;/pre&gt;
Now if you dont like to do the conversions you should declare your method as dynamic like this

&lt;pre class=&quot;csharp&quot; name=&quot;code&quot;&gt; public dynamic PostLocation([FromBody]Location details)
        {
            return new { locationId=this.LocService.saveLocation(details)};
        }
&lt;/pre&gt;
Now its simple you can return it as an object.
Eventhough the method from the service returned an int the dynamic type holds it which inturn return it as an object.
&lt;b&gt;Summary&lt;/b&gt;&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;dynamic behaves as a placeholder for a type which is unknown until the runtime&lt;/li&gt;
&lt;li&gt;A variable,parameter or field declared as dynamic can hold any type.They cange their type during runtime.&lt;/li&gt;
&lt;li&gt;dynamic is more simple than types var or object as they both need implicit conversions to the return type.&lt;/li&gt;
&lt;/ul&gt;
Hope this post helps you in understanding the main theme of using &#39;dynamic&#39; keyword.If you have any queries regarding this you can leave me a comment 
and your suggestions are always welcome.&lt;br /&gt;


&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/7161254197167233643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/dynamic-keyword-in-c-how-and-where-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/7161254197167233643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/7161254197167233643'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/dynamic-keyword-in-c-how-and-where-to.html' title='dynamic keyword in c# ,How and where to use?'/><author><name>Unknown</name><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-976508730495432249.post-7363301308626417105</id><published>2013-10-05T15:11:00.001+05:30</published><updated>2013-10-10T00:11:41.300+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular js"/><title type='text'>angular.copy() in AngularJs.</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 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;h3&gt;
How to use angular.copy()&lt;/h3&gt;
We are all familiar that AngularJs is a model driven technology.Two way binding is one of the powerful techniques implemented in it.Changes done to the model are instantly reflected to its related properties on the Ui and vice-versa.Nice functionality.But it may be annoying in some exceptional scenarios.So let us see one of the scenarios in our common web applications.&lt;br /&gt;
&lt;h3&gt;
Scenario:&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
We have a section on our page showing a list of employees with minimum details provided with select functionality.&lt;/li&gt;
&lt;li&gt;
On selecting a particular employee a new section shows up displaying the total details of the corresponding employee.&lt;/li&gt;
&lt;li&gt;
The new show up also contain buttons to edit and update the details.&lt;/li&gt;
&lt;li&gt;
The normal requirement will be ,when the details of a particular employee are edited the actual list should not get updated instantly but should be done only after clicking the update button.&lt;/li&gt;
&lt;li&gt;
But in this case instant changes will take place in the actual list on editing the full detail section.This happens due to two way binding concept in angularJs.But in this case it is not needed.&lt;/li&gt;
&lt;/ol&gt;
Inorder to overcome such problems angular js is provided with an excellent method called &quot;angular.copy()&quot;.&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/AVvXsEgqZxcDs_R1jxk6p2cVrHf_uvVH9ZC_iosxnaAko4NDVkp-Qa_-vS7synQ2Upp4v8KAdesAKM5sTx4b15P8Ulwf1I4wNCFtcpN-ruoETewcdkRka0hJmhzdK2UOTnTrMAGhI6Sx-ZUSXHA/s1600/blogger.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqZxcDs_R1jxk6p2cVrHf_uvVH9ZC_iosxnaAko4NDVkp-Qa_-vS7synQ2Upp4v8KAdesAKM5sTx4b15P8Ulwf1I4wNCFtcpN-ruoETewcdkRka0hJmhzdK2UOTnTrMAGhI6Sx-ZUSXHA/s640/blogger.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Let us discuss in detail with some sample code for better clarity:

You can solve this issue by using angular.copy.  Instead of binding to a value directly , we can make a deep copy of that object and use it for editing.
&lt;br /&gt;
&lt;h4&gt;
Example:&lt;/h4&gt;
consider the following html code&lt;br /&gt;
&lt;pre class=&quot;xml&quot; name=&quot;code&quot;&gt;&lt;html ng-app=&quot;empApp&quot;&gt; 
&lt;html&gt; 
&lt;head lang=&quot;en&quot;&gt;
    &lt;title&gt;Angular copy example&lt;/title&gt;
    &lt;body ng-controller=&quot;EmpCtrl&quot;&gt;
        &lt;form&gt;
            &lt;input ng-model=&quot;selectedEmp.Name&quot; type=&quot;text&quot; /&gt;
            &lt;button ng-click=&quot;updateEmp(selectedEmp)&quot;&gt;Update&lt;/button&gt;
        &lt;/form&gt;
        &lt;table&gt;
            &lt;thead&gt;
                &lt;tr&gt;
                    &lt;td&gt;Name&lt;/td&gt;
                    &lt;td&gt;Email&lt;/td&gt;
                    &lt;td&gt;Mobile&lt;/td&gt;
                    &lt;td&gt;Address&lt;/td&gt;
                &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
                &lt;tr ng-click=&quot;selectEmp(emp)&quot; ng-repeat=&quot;emp in employees&quot;&gt;
                    &lt;td&gt;{{emp.Name}}&lt;/td&gt;
                    &lt;td&gt;{{emp.email}}&lt;/td&gt;
                &lt;/tr&gt;
            &lt;/tbody&gt;
        &lt;/table&gt;
    &lt;/body&gt;
&lt;/head&gt;
&lt;/html&gt;
&lt;/pre&gt;
And your javascript will be&lt;br /&gt;
&lt;pre class=&quot;jscript&quot; name=&quot;code&quot;&gt;var app = angular.module(&quot;app&quot;, []);  
app.controller(&quot;AppCtrl&quot;, function ($scope) {  
  $scope.employees = [  
          {&quot;Name&quot;: &quot;Sekhar&quot;, &quot;mobile&quot;: &quot;48635263469&quot;, &quot;email&quot;: &quot;sekhar@gmail.com&quot;},  
          {&quot;Name&quot;: &quot;Abhi&quot;, &quot;mobile&quot;: &quot;455624512&quot;, &quot;email&quot;: &quot;abhi@gmail.com&quot;},  
          {&quot;Name&quot;: &quot;Rani&quot;, &quot;mobile&quot;: &quot;6568568&quot;, &quot;email&quot;: &quot;rani@yahoo.com.com&quot;},   
    ];  
  $scope.selectEmp = function (emp) {  
  $scope.selectedEmp = emp; // this is the model we use in Edit Form  
      }  
      this.saveEmp = function (empToUpdate) {  
          $scope.selectedEmp.Name =   empToUpdate.Name   
      }  
  });
&lt;/pre&gt;
When you implement the above code you will find that, whenever you try to edit the employee details you notice that the changes are reflected instaltly in the main list too.Inorde to overcome this we bring angula.copy() into picture.
&lt;br /&gt;
&lt;h3&gt;
Now using angular.copy() to the rescue:&lt;/h3&gt;
Change your html and scripts to:
&lt;br /&gt;
Design Page:
&lt;pre name=&quot;code&quot; class=&quot;xml&quot;&gt;
&lt;form&gt; 
    &lt;input type=&quot;text&quot; ng-model=&quot;empCopy.firstName&quot;/&gt;  
      &lt;button ng-click=&quot;saveEmp(empCopy)&quot;&gt;Save&lt;/button&gt;  
  &lt;/form&gt;
&lt;/pre&gt;
javascript file:
&lt;pre name=&quot;code&quot; class=&quot;jscript&quot;&gt;
$scope.selectEmp = function (employee) {  
  $scope.selectedEmp = employee;  
          $scope.empCopy = angular.copy(employee);  
      }  
      this.saveEmp = function (empCopy) {  
  
        $scope.selectedEmp.Name = empCopy.Name;  
      }
&lt;/pre&gt;
Now you can find that we are taking a deep copy of the selected employee and using it as the secondary model to edit the contact without disturbing the our actual model.The edited model will be assigned to the actual model only when we press the update button.&lt;br /&gt;
In this way angular.copy() is quite handy in such situations.Hope this post helps you.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/7363301308626417105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/angularcopy-in-angularjs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/7363301308626417105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/7363301308626417105'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/10/angularcopy-in-angularjs.html' title='angular.copy() in AngularJs.'/><author><name>Unknown</name><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/AVvXsEgqZxcDs_R1jxk6p2cVrHf_uvVH9ZC_iosxnaAko4NDVkp-Qa_-vS7synQ2Upp4v8KAdesAKM5sTx4b15P8Ulwf1I4wNCFtcpN-ruoETewcdkRka0hJmhzdK2UOTnTrMAGhI6Sx-ZUSXHA/s72-c/blogger.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-9018462626812620608</id><published>2013-07-18T11:51:00.001+05:30</published><updated>2013-07-22T18:12:02.406+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Query Web Part"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Content Query Web Part ,Adding more than three filters:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Even though people use CQWP to roll up content from their
sites or subsites, they feel little awkward  noticeing that
the UI part of the tool support only three filters.&lt;br /&gt;
So i am here in this post with a simple solution.&lt;br /&gt;
One of the frequent ways to to allow filters more than three is to override the QueryOverride property of the webpart.
Inorder to achieve this follow the following four simple steps:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
Firstly,Webpart should be exported to the File system.&lt;/li&gt;
It could be done,with the page in edit mode,expand the Content Query Web Part menu and select Export and save  the web part to te local file syatem.&lt;br /&gt;
&lt;li&gt;Secondly,build the CAML required to filter the list.&lt;/li&gt;
&lt;li&gt;Now update the QueryOverride property.&lt;/li&gt;
If I need four filters (one for each custom column) I could use the following value in the QueryOverride property:&lt;br /&gt;

    &lt;div style=&quot;border: 1px solid gray; height: 600px; line-spacing: 10px; overflow: auto; width: 500px;&quot;&gt;
&lt;div class=&quot;webkit-line-content&quot; style=&quot;background-color: white; box-sizing: border-box; font-family: Consolas, &#39;Lucida Console&#39;, monospace; font-size: 12px; line-height: 14px; white-space: pre;&quot;&gt;
&lt;pre class=&quot;code&quot; style=&quot;color: #333333; line-height: 19.4375px; padding: 5px;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;property &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;QueryOverride&lt;/span&gt;&quot; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;
          &amp;lt;![CDATA[
           &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;Where&amp;gt;
              &amp;lt;And&amp;gt;
                 &amp;lt;And&amp;gt;
                    &amp;lt;BeginsWith&amp;gt;
                       &amp;lt;FieldRef Name=&#39;NewColumn1&#39; /&amp;gt;
                       &amp;lt;Value Type=&#39;Text&#39;&amp;gt;NewColumn1 Item1&amp;lt;/Value&amp;gt;
                    &amp;lt;/BeginsWith&amp;gt;
                    &amp;lt;BeginsWith&amp;gt;
                       &amp;lt;FieldRef Name=&#39;NewColumn2&#39; /&amp;gt;
                       &amp;lt;Value Type=&#39;Text&#39;&amp;gt;NewColumn2 Item1&amp;lt;/Value&amp;gt;
                    &amp;lt;/BeginsWith&amp;gt;
                 &amp;lt;/And&amp;gt;
                 &amp;lt;And&amp;gt;
                    &amp;lt;BeginsWith&amp;gt;
                       &amp;lt;FieldRef Name=&#39;NewColumn3&#39; /&amp;gt;
                       &amp;lt;Value Type=&#39;Text&#39;&amp;gt;NewColumn3 Item1&amp;lt;/Value&amp;gt;
                    &amp;lt;/BeginsWith&amp;gt;
                    &amp;lt;BeginsWith&amp;gt;
                       &amp;lt;FieldRef Name=&#39;NewColumn4&#39; /&amp;gt;
                       &amp;lt;Value Type=&#39;Text&#39;&amp;gt;NewColumn4 Item10&amp;lt;/Value&amp;gt;
                    &amp;lt;/BeginsWith&amp;gt;
                 &amp;lt;/And&amp;gt;
              &amp;lt;/And&amp;gt;
           &amp;lt;/Where&amp;gt;
          &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;]]&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;property&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;li&gt;Finally ,Import the webpart to the webpart page. &lt;/li&gt;
With the web part page in Edit Mode, click the Add a Web Part link to open the Web Part Pane.&lt;br /&gt;

Under the Upload a Web Part section select the modified web part file in the local file system and click Upload. This will load your web part under the Imported Web Parts category.
Select your web part and click Add to import the web part into the web part page.
&lt;h4 style=&quot;text-decoration: underline;&quot;&gt;
Note:&lt;/h4&gt;
There could be a chance that some of the elements in the UI getting disabled ,when we try to use the overrides property within the CQMP.In this case we cannot add more than three queries from Content Query Tool part.


&lt;/ul&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/9018462626812620608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/07/how-to-make-cqmp-allow-more-than-three.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/9018462626812620608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/9018462626812620608'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/07/how-to-make-cqmp-allow-more-than-three.html' title='Content Query Web Part ,Adding more than three filters:'/><author><name>Unknown</name><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-976508730495432249.post-2784940809388316211</id><published>2013-07-12T13:01:00.000+05:30</published><updated>2013-07-12T13:07:39.006+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pre-Requisites for sharepoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint2013"/><title type='text'>Sharepoint 2103 Software and Hardware prerequisites</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This article speaks about the software and hardware requirements for various kinds of installation scenarios supported by 
sharepoint 2013.Sharepoint 2013 provides the following installation scenarios.&lt;br /&gt;&lt;/br&gt;
&lt;span style=&quot;color: brown; font-family: verdana; text-decoration: underline;&quot;&gt;Different Installation scenarios:&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Single server with built-in database&lt;/li&gt;
&lt;li&gt;Single-server Farm and&lt;/li&gt;
&lt;li&gt;Multiple server Farm installations&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: brown; font-family: verdana; text-decoration: underline;&quot;&gt;Software Requirements:&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Windows Server 2008 R2 SP1 (KB 2759112)&lt;/li&gt;
&lt;li&gt;Windows Server 2012 (KB 2765317)&lt;/li&gt;
&lt;li&gt;Microsoft .NET Framework version 4.5&lt;/li&gt;
&lt;li&gt;Either 64-bit edition of Microsoft SQL Server 2012 or 64-bit edition of SQL Server 2008 R2 Service Pack 1 &lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: brown; display: block; font-family: verdana; text-decoration: underline;&quot;&gt;Hardware Requirements:&lt;/span&gt;&lt;/br&gt;
PROCESSOR:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;64-bit, 4 cores for small deployments (fewer than 1,000 users)&lt;/li&gt;
&lt;li&gt;64-bit, 8 cores for medium deployments (between 1,000 to 10,000 users)&lt;/li&gt;
&lt;/ul&gt;
RAM:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;8 GB for small deployments (fewer than 1,000 users)&lt;/li&gt;
&lt;li&gt;16 GB for medium deployments (between 1,000 to 10,000 users)&lt;/li&gt;
&lt;/ul&gt;
Hard Disk:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
80 GB for System Drive and it also depends upon the amount of content you have in your deployment
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/2784940809388316211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/07/sharepoint-2103-software-and-hardware.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/2784940809388316211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/2784940809388316211'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/07/sharepoint-2103-software-and-hardware.html' title='Sharepoint 2103 Software and Hardware prerequisites'/><author><name>Unknown</name><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-976508730495432249.post-1106151866694540786</id><published>2013-07-10T13:40:00.000+05:30</published><updated>2013-07-18T12:28:22.847+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2013"/><title type='text'>Sharepoint2013 vs Sharepoint2010 Features</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi everybody,it has been so long i have posted due to some unforeseen reasons.Anyway i have come back with a fresh information regarding sharepoint.
Sharepoint 2013, the latest version , and the moment it was released there are lot of queries outbursting regarding all the features compared to the
former edition ie sharepoint2010.Many users upgrading to the 2013 edition from 2010 had raised many questions in which most of thhem pointed to the 
feature  comparison.So i wolud like to make you aware of some of the features which are enhanced ,upgraded or which made ease in sharepoint 2013 compared
to thaose of sharepoint 2010 edition.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Making you very clear ,The structures of both the versions are same.So metadata architecture for documents in sharepoint2010 could definitely upgrade to
the nwewr version sharepoint2013.&lt;/li&gt;
&lt;li&gt;There are two utilities which made significant upgrades in document management which boosted the user experience
&lt;ol&gt;
&lt;li&gt;Sharepoint 2013 included a drop and drag option to upload documents.&lt;/li&gt;
&lt;li&gt;It also made able to edit managed metadata in a datasheet view.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Lot of improvement has been done in &#39;search&#39; option.&lt;/li&gt;
&lt;li&gt;One of the major differences you could notice are in the &#39;Social Experiences&#39;.The discussion boards feature in sharepoint 2013 is enabeled with 
Community features.This featues creates an engaging facebook like activity flow which made it feel more user-friendly when ccompared with the same feature 
present in sharepoint2010.&lt;/li&gt;
&lt;li&gt;Generally sharepoint 2010 hosted a bit effort and planning for the networks while using the option &quot;who you know&quot; option ,which was made  easy by the feature 
discussion boards employed in sharepoint 2013.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/1106151866694540786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/07/hi-everybodyit-has-been-so-long-i-have.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/1106151866694540786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/1106151866694540786'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2013/07/hi-everybodyit-has-been-so-long-i-have.html' title='Sharepoint2013 vs Sharepoint2010 Features'/><author><name>Unknown</name><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-976508730495432249.post-5797905878288507967</id><published>2011-03-16T14:45:00.001+05:30</published><updated>2011-03-16T14:47:47.189+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AD-LDS"/><category scheme="http://www.blogger.com/atom/ns#" term="Forms Based Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>ADLDS-Forms Based Authentication in SharePoint 2010</title><content type='html'> &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;This AD-LDS is new and comes in Windows Server 2008. This is formerly known as ADAM. In SharePoint 2010 while creating a web application we have an option to choose the application authentication mode Claims Based and Classic Mode.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;3&quot;&gt;&lt;strong&gt;Creating a web application which uses Claims Based Authentication:&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;This is pretty much straight forward,&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpFirst&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Open Central Administration&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From Application Management - &amp;gt; Manage Web Applications&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From the top ribbon bar, select New&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From the create web application page, chose the authentication mode to “Claims Based Authentication”&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Give the name of web application, chose port number, path of web application.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Chose security configuration &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From Claims Authentication Types, enable both WA and FBA. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;In FBA section we have to give ASP.NET Membership provider name. In my case I have used “ADLDSProvider” and I am not using any roles so I left it blank.&lt;/font&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Enter Sign in page url [default one], public url and other information and click OK.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Once web application is created, then create a site collection.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Now go to Manage Web application and from the list of web applications chose the option “Authentication Providers” from the ribbon.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From the dialog box you will see the Default zone set to the Claims authentication mode. Click the Default zone link where you can see the settings. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;mso-no-proof: yes&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgydEHp0DK24nERC4X85UfyHnPR9PZNl4tKpRKw0K9aUjFhcj2EFIuIe0pUTs_ffWDlWRNjhRVkBmC4zx2ZK3yWezyHQHQDSsMzi-csa_v2zPo2vrxpH48d5js05vlqkeHj-pfQCKBU_cw/s1600-h/clip_image001%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image001&quot; border=&quot;0&quot; alt=&quot;clip_image001&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO35RMldCv7EKmHT52RrvRDxUfdn5auiK2zlqMW76G0XVEjEc5EWTbVwX2OgY0t2NMg-s49yFTLaERAM-k6l4FDyUF4JnxfUGSm6RRt7tYUySL5AzEC_H1qMhSBu_-8sYrVwshINqer1U/?imgmax=800&quot; width=&quot;340&quot; height=&quot;240&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;OK, application is ready and browse the application, you will see the below screen which gives you the option to choose either Windows Authentication or Forms authentication. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;mso-no-proof: yes&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDe8WLNWl20jghW0OyHOt0g8NdUUflGsScvwwUjjLVIZToNKgH6K_NYXBcu-_WTddfFwAdtIqvbhO_4FgLk2CWJIL-9qA2lpjPxk0A46h8oFg0gJ0LDmOiSMWLPhfdm7V3BH757qukKo8/s1600-h/clip_image002%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit5u9Q8ZQfTVNjS87yf3cTtsr1a7Hkrkoe8997UivSAKug1gCRdAnT6ewGeyf7NJbSumo6_bEJYsdfpip0hAfmbLi44ut1WfxyvHJ4aLcnvBbSSd-NcC3epH2O3I7II692NqsXHcSXIZA/?imgmax=800&quot; width=&quot;347&quot; height=&quot;148&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;The remaining part is linking our application and AD-LDS.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h2 style=&quot;line-height: 15pt; text-transform: none; margin: 10pt 0in 0pt&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 13pt&quot; color=&quot;#000000&quot;&gt;Give specific permissions to the service accounts:&lt;/font&gt;&lt;/font&gt;&lt;/h2&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo4&quot; class=&quot;MsoListParagraphCxSpFirst&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;The service account or application pool user account of our FBA application, &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo4&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;application pool account [service account] of central administration and &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo4&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;security token service application pool user account &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 0pt; mso-add-space: auto&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt; mso-add-space: auto&quot; class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;should have access to the ADLDS to go and get information of the users and roles. Almost in all environments the system administrators creates the service accounts we have to use in our applications. If you are not following those base rules in using service accounts then you may use different service accounts for all the three applications. In that case you have to go through all the three application we have mentioned above and give them access to ADLDS. If you are following the rules of using service accounts then may be only one service account used for all the three applications and give the service account access to ADLDS.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h2 style=&quot;line-height: 15pt; text-transform: none; margin: 10pt 0in 0pt&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 13pt&quot; color=&quot;#000000&quot;&gt;Modify web.config files of applications to communicate with ADLDS using providers&lt;/font&gt;&lt;/font&gt;&lt;/h2&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2&quot; class=&quot;MsoListParagraphCxSpFirst&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;1.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;To get the users from ADLDS to central administration site we have to change web.config of Central Administration site.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;2.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;To get the users from ADLDS to web application which we created to work FBA, we have to change its web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l1 level1 lfo2&quot; class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;3.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;To login to the site using claims based authentication, it uses security token service application. So, we have to change its configuration file.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;So, the site we created for FBA to work using forms authentication we have to change 3 web.config files totally.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Note: &lt;/font&gt;&lt;/b&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you are making any changes to the web.config file of any application please take the backup of it.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;The main changes include connection string and providers.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h3 style=&quot;line-height: 13pt; text-indent: -0.5in; margin: 10pt 0in 0pt 0.5in; mso-list: l3 level1 lfo3; mso-text-indent-alt: -.25in&quot;&gt;&lt;font color=&quot;#4f81bd&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: cambria; mso-bidi-theme-font: major-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;i&lt;font color=&quot;#000000&quot;&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot; color=&quot;#000000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#000000&quot;&gt;Modify web.config of web application we created:&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt; &lt;h4 style=&quot;line-height: 13pt; margin: 10pt 0in 0pt 0.25in&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#4f81bd&quot;&gt;&lt;em&gt;Adding providers for membership and role [if needed]&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h4&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. By default there are providers with name “C” and “I”. So, do not touch them and add only the providers which we are adding like “SQLRoleManager” and “SqlMembershipProvider”. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;membership defaultProvider=&quot;i&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;&amp;lt;add name=&quot;ADLDSProvider&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;type=&quot;Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;PublicKeyToken=71E9BCE111E9429C&quot; server=&quot;SP2010-ADLDS&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;port=&quot;389&quot; useSSL=&quot;false&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userDNAttribute=&quot;distinguishedName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userNameAttribute=&quot;userPrincipalName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userContainer=&quot;CN=Users,CN=Customers,DC=Northwind,DC=Extranet&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userObjectClass=&quot;user&quot; userFilter=&quot;(ObjectClass=user)&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;cn&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/membership&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/roleManager&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Save all your changes and we are done with configuration changes for FBA site.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h3 style=&quot;line-height: 13pt; text-indent: -0.5in; margin: 10pt 0in 0pt 0.5in; mso-list: l3 level1 lfo3; mso-text-indent-alt: -.25in&quot;&gt;&lt;font color=&quot;#4f81bd&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: cambria; mso-bidi-theme-font: major-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;ii.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=&quot;#000000&quot;&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#000000&quot;&gt;Modify web.config of Central Administration site&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt; &lt;h4 style=&quot;line-height: 13pt; margin: 10pt 0in 0pt 0.25in&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#4f81bd&quot;&gt;&lt;em&gt;Adding providers for membership and role [if needed]&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h4&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;roleManager defaultProvider=&quot;AspNetWindowsTokenRoleProvider&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/roleManager&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;membership defaultProvider=&quot;ADLDSProvider&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;&amp;lt;add name=&quot;ADLDSProvider&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;type=&quot;Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;PublicKeyToken=71E9BCE111E9429C&quot; server=&quot;SP2010-ADLDS&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;port=&quot;389&quot; useSSL=&quot;false&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userDNAttribute=&quot;distinguishedName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userNameAttribute=&quot;userPrincipalName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userContainer=&quot;CN=Users,CN=Customers,DC=Nothwind,DC=Extranet&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userObjectClass=&quot;user&quot; userFilter=&quot;(ObjectClass=user)&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;cn&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/membership&amp;gt;Save the web.config file and we are done with configuration changes for CA.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h3 style=&quot;line-height: 13pt; text-indent: -0.5in; margin: 10pt 0in 0pt 0.5in; mso-list: l3 level1 lfo3; mso-text-indent-alt: -.25in&quot;&gt;&lt;font color=&quot;#4f81bd&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: cambria; mso-bidi-theme-font: major-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;iii.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#000000&quot;&gt;Modify web.config of Security Token Service Application&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Open inetmgr from run command and open IIS. From the list of sites available expand “SharePoint Web Services” and find SecurityTokenServiceApplication. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-no-proof: yes&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Hb-gl4wKGirO9DPYI9G2ycJ0iWjYK36z1BzrUs2JGWruymVsZiKyuMvTnD0mdanSbyUsbUCwtIGujaonfsNCtGtLKZFMaM9SHo4vGT7MLnvIQUbOME63YlVPpLp4pTV2arEfBdbg1Lk/s1600-h/clip_image004%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image004&quot; border=&quot;0&quot; alt=&quot;clip_image004&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJpsVj4E-YnkywJgQM0-_PmCzzqbooBfaHP34N0YvVEwo6hTXujNTHWCljInyX2gQzbU-abScIvUR0WMDcqyOrPsB_1ZZDTtlkVE8oePdfj5pcaVNogwrRNrPFZSGXKl7jnHrYRuQNm8Q/?imgmax=800&quot; width=&quot;261&quot; height=&quot;292&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Right click on the application and explore, which will opens the file system file location of the application. By default it will be in “%programfiles%\common files\Microsoft Shared\web server extensions\14\WebServices\SecurityToken”. Find the web.config of the application and modify it.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h4 style=&quot;line-height: 13pt; margin: 10pt 0in 0pt 0.25in&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#4f81bd&quot;&gt;&lt;em&gt;Adding providers for membership and role [if needed]&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h4&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. By default there are providers with name “C” and “I”. So, do not touch them and add only the providers which we are adding like “SQLRoleManager” and “SqlMembershipProvider”. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-tab-count: 1&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&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; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/roleManager&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;membership defaultProvider=&quot;i&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;&amp;lt;add name=&quot;ADLDSProvider&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;type=&quot;Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;PublicKeyToken=71E9BCE111E9429C&quot; server=&quot;SP2010-ADLDS&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;port=&quot;389&quot; useSSL=&quot;false&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userDNAttribute=&quot;distinguishedName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userNameAttribute=&quot;userPrincipalName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userContainer=&quot;CN=Users,CN=Customers,DC=Northwind,DC=Extranet&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userObjectClass=&quot;user&quot; userFilter=&quot;(ObjectClass=user)&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;cn&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/membership&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;If everything goes well, then in central administration site and your FBA application people picker able to find the users in the ADLDS. And you will successfully logged-in to the site without any issues. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/5797905878288507967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/adlds-forms-based-authentication-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5797905878288507967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/5797905878288507967'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/adlds-forms-based-authentication-in.html' title='ADLDS-Forms Based Authentication in SharePoint 2010'/><author><name>Unknown</name><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/AVvXsEgO35RMldCv7EKmHT52RrvRDxUfdn5auiK2zlqMW76G0XVEjEc5EWTbVwX2OgY0t2NMg-s49yFTLaERAM-k6l4FDyUF4JnxfUGSm6RRt7tYUySL5AzEC_H1qMhSBu_-8sYrVwshINqer1U/s72-c?imgmax=800" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-1633811775605414022</id><published>2011-03-16T14:38:00.001+05:30</published><updated>2011-03-16T14:38:08.319+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADAM"/><category scheme="http://www.blogger.com/atom/ns#" term="Forms Based Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>ADAM-Forms Based Authentication in SharePoint 2010</title><content type='html'> &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Basically Forms Based Authentication is a part of ASP.NET. So, it supports in all versions of SharePoint which are released after ASP.NET 2.0. In SharePoint 2010 it is the same process as what we did in earlier versions like WSS 3.0 and MOSS 2007 except one thing. In SharePoint 2010 while creating a web application we have an option to choose the application authentication mode Claims Based and Classic Mode.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;3&quot;&gt;&lt;strong&gt;Creating a web application which uses Claims Based Authentication:&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;This is pretty much straight forward,&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpFirst&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Open Central Administration&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From Application Management - &amp;gt; Manage Web Applications&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From the top ribbon bar, select New&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From the create web application page, chose the authentication mode to “Claims Based Authentication”&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Give the name of web application, chose port number, path of web application.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Chose security configuration &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From Claims Authentication Types, enable both WA and FBA. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;In FBA section we have to give ASP.NET Membership provider name. In my case I have used “ADAMProvider” and I am not using any roles so I left it blank. &lt;/font&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Enter Sign in page url [default one], public url and other information and click OK.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Once web application is created, then create a site collection.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Now go to Manage Web application and from the list of web applications chose the option “Authentication Providers” from the ribbon.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;From the dialog box you will see the Default zone set to the Claims authentication mode. Click the Default zone link where you can see the settings. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;mso-no-proof: yes&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhALH8usaALhyphenhyphen8oNamMFvIqwSTFBx-heGGJl29CZ3WgUs2rTtcw3VcxeKYwCHQR_WiyMjThB-IAtVdW-J9fHumudpAkDE4oBSPT8QfHl8k6IZapig5LzB14oqJIyAEWpAg_1cytWf2HUQw/s1600-h/clip_image001%5B4%5D%5B3%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image001[4]&quot; border=&quot;0&quot; alt=&quot;clip_image001[4]&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7-OaSZ3faFPu3Q-dd2eUZDvXEwhZXsQVU2rKwH64IxKO0NzC9gxsiOYeVRobZO14QACkBN-pIDrBHYPuKtc2eIhn_S3JBnOmaBd1H-pb6JtNOgAh0D3k-9fekVQFTeyCalXydhqTTrho/?imgmax=800&quot; width=&quot;328&quot; height=&quot;242&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;OK, application is ready and browse the application, you will see the below screen which gives you the option to choose either Windows Authentication or Forms authentication. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;mso-no-proof: yes&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijqt5otzHHLkEIi_ULk1Z3Lo7JIdUQjozXSuiliTF_cu62TXl5HBIEzbP5pKLNi31H6B-Eua-ti4s7FpEP9qqBZQB9GU3xJ8vFjt5VBYpuJN_1dvOJiqG4nh3SGWw0jrQqOiVuo7UbhnU/s1600-h/clip_image002%5B4%5D%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image002[4]&quot; border=&quot;0&quot; alt=&quot;clip_image002[4]&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPUDGblnMAJA8Ze9ujvBhdXiq6wMFsz8cKPQzBC4JG5o-L7iRkRosO5zWJAi6kQK3cDzIkXieAO3T7eZUM5scEv-im5nW-CiPIrPi6U1JwAPgyaEXbPihw_6hmHz1tRrmyyczq2xKLawU/?imgmax=800&quot; width=&quot;326&quot; height=&quot;143&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1&quot; class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;The remaining part is linking our application and ADAM.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h2 style=&quot;line-height: 15pt; text-transform: none; margin: 10pt 0in 0pt&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 13pt&quot; color=&quot;#000000&quot;&gt;Give specific permissions to the service accounts:&lt;/font&gt;&lt;/font&gt;&lt;/h2&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo4&quot; class=&quot;MsoListParagraphCxSpFirst&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;The service account or application pool user account of our FBA application, &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo4&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;application pool account [service account] of central administration and &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo4&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;font-family: ; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Symbol&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;·&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;security token service application pool user account &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 0pt; mso-add-space: auto&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt; mso-add-space: auto&quot; class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;should have access to the ADAM to go and get information of the users and roles. Almost in all environments the system administrators creates the service accounts we have to use in our applications. If you are not following those base rules in using service accounts then you may use different service accounts for all the three applications. In that case you have to go through all the three application we have mentioned above and give them access to ADAM. If you are following the rules of using service accounts then may be only one service account used for all the three applications and give the service account access to ADAM.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h2 style=&quot;line-height: 15pt; text-transform: none; margin: 10pt 0in 0pt&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 13pt&quot; color=&quot;#000000&quot;&gt;Modify web.config files of applications to communicate with ADAM using providers&lt;/font&gt;&lt;/font&gt;&lt;/h2&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2&quot; class=&quot;MsoListParagraphCxSpFirst&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;1.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;To get the users from ADAM to central administration site we have to change web.config of Central Administration site.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2&quot; class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;2.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;To get the users from ADAM to web application which we created to work FBA, we have to change its web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l1 level1 lfo2&quot; class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;span style=&quot;mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;3.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;To login to the site using claims based authentication, it uses security token service application. So, we have to change its configuration file.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;So, the site we created for FBA to work using forms authentication we have to change 3 web.config files totally.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Note: &lt;/font&gt;&lt;/b&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you are making any changes to the web.config file of any application please take the backup of it.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;The main changes include connection string and providers.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h3 style=&quot;line-height: 13pt; text-indent: -0.5in; margin: 10pt 0in 0pt 0.5in; mso-list: l3 level1 lfo3; mso-text-indent-alt: -.25in&quot;&gt;&lt;font color=&quot;#4f81bd&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: cambria; mso-bidi-theme-font: major-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;i.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#000000&quot;&gt;Modify web.config of web application we created:&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt; &lt;h4 style=&quot;line-height: 13pt; margin: 10pt 0in 0pt 0.25in&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#4f81bd&quot;&gt;&lt;em&gt;Adding providers for membership and role [if needed]&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h4&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. By default there are providers with name “C” and “I”. So, do not touch them and add only the providers which we are adding like “SQLRoleManager” and “SqlMembershipProvider”. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;membership defaultProvider=&quot;i&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;&amp;lt;add name=&quot;ADAMProvider&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;type=&quot;Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;PublicKeyToken=71E9BCE111E9429C&quot; server=&quot;SP2010-ADAM&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;port=&quot;50389&quot; useSSL=&quot;false&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userDNAttribute=&quot;distinguishedName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userNameAttribute=&quot;userPrincipalName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userContainer=&quot;DC=Northwind,DC=extranet&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userObjectClass=&quot;user&quot; userFilter=&quot;(ObjectClass=user)&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;cn&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/membership&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/roleManager&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Save all your changes and we are done with configuration changes for FBA site.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h3 style=&quot;line-height: 13pt; text-indent: -0.5in; margin: 10pt 0in 0pt 0.5in; mso-list: l3 level1 lfo3; mso-text-indent-alt: -.25in&quot;&gt;&lt;font color=&quot;#4f81bd&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: cambria; mso-bidi-theme-font: major-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;ii.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=&quot;#000000&quot;&gt;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#000000&quot;&gt;Modify web.config of Central Administration site&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt; &lt;h4 style=&quot;line-height: 13pt; margin: 10pt 0in 0pt 0.25in&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#4f81bd&quot;&gt;&lt;em&gt;Adding providers for membership and role [if needed]&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h4&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;roleManager defaultProvider=&quot;AspNetWindowsTokenRoleProvider&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/roleManager&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;membership defaultProvider=&quot;ADAMProvider&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;&amp;lt;add name=&quot;ADAMProvider&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;type=&quot;Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;PublicKeyToken=71E9BCE111E9429C&quot; server=&quot;SP2010-ADAM&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;port=&quot;50389&quot; useSSL=&quot;false&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userDNAttribute=&quot;distinguishedName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userNameAttribute=&quot;userPrincipalName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userContainer=&quot;DC=Northwind,DC=extranet&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userObjectClass=&quot;user&quot; userFilter=&quot;(ObjectClass=user)&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;cn&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/membership&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Save the web.config file and we are done with configuration changes for CA.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h3 style=&quot;line-height: 13pt; text-indent: -0.5in; margin: 10pt 0in 0pt 0.5in; mso-list: l3 level1 lfo3; mso-text-indent-alt: -.25in&quot;&gt;&lt;font color=&quot;#4f81bd&quot;&gt;&lt;span style=&quot;mso-fareast-font-family: cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: cambria; mso-bidi-theme-font: major-latin&quot;&gt;&lt;span style=&quot;mso-list: ignore&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;iii.&lt;/font&gt;&lt;/font&gt;&lt;span style=&quot;line-height: normal; font-family: &quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;&lt;font style=&quot;font-size: 7pt&quot;&gt;&lt;font style=&quot;font-weight: normal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#000000&quot;&gt;Modify web.config of Security Token Service Application&lt;/font&gt;&lt;/font&gt;&lt;/h3&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Open inetmgr from run command and open IIS. From the list of sites available expand “SharePoint Web Services” and find SecurityTokenServiceApplication. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;mso-no-proof: yes&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWZzY8MoISRzBQHFMIu6Cngjw-P8uihKM5e4jTVsyJPvfGnvIhK2X-oG-hSL6idblpDO7d8CptQiyDwuUGW4E5xLBGv8TJvT7_h3LXwebzgf2mrKD_csBzUEmkPoRw7oZGd5GRQ2rWoDY/s1600-h/clip_image004%5B4%5D%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image004[4]&quot; border=&quot;0&quot; alt=&quot;clip_image004[4]&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4rqQ8H7VDVkECaRDrKUHmtMNfZei8t3YReY2-HpSecIY8fHtZFKuHqAcMVFrV7j-ZXLtw1tMK_S7_EwBt_317biW2KQn9FR64i7NxHwqTe7TySfW5PG80qu2OTJ56W2A0TkTRtISwcY0/?imgmax=800&quot; width=&quot;312&quot; height=&quot;344&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Right click on the application and explore, which will opens the file system file location of the application. By default it will be in “%programfiles%\common files\Microsoft Shared\web server extensions\14\WebServices\SecurityToken”. Find the web.config of the application and modify it.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;h4 style=&quot;line-height: 13pt; margin: 10pt 0in 0pt 0.25in&quot;&gt;&lt;font face=&quot;Cambria&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#4f81bd&quot;&gt;&lt;em&gt;Adding providers for membership and role [if needed]&lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/h4&gt; &lt;p style=&quot;line-height: 13pt; margin: 0in 0in 10pt 0.25in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. By default there are providers with name “C” and “I”. So, do not touch them and add only the providers which we are adding like “SQLRoleManager” and “SqlMembershipProvider”. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;span style=&quot;mso-tab-count: 1&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&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; &lt;/font&gt;&lt;/span&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/roleManager&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;membership defaultProvider=&quot;i&quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;&amp;lt;add name=&quot;ADAMProvider&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;type=&quot;Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;PublicKeyToken=71E9BCE111E9429C&quot; server=&quot;SDP2010-ADAM&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;port=&quot;50389&quot; useSSL=&quot;false&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userDNAttribute=&quot;distinguishedName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userNameAttribute=&quot;userPrincipalName&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userContainer=&quot;DC=Northwind,DC=extranet&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;userObjectClass=&quot;user&quot; userFilter=&quot;(ObjectClass=user)&quot; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: &quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot; color=&quot;#ff0000&quot;&gt;scope=&quot;Subtree&quot; otherRequiredUserAttributes=&quot;cn&quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/providers&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;lt;/membership&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt 0.5in&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;line-height: normal; margin: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;font face=&quot;Calibri&quot;&gt;&lt;font style=&quot;font-size: 11pt&quot;&gt;If everything goes well, then in central administration site and your FBA application people picker able to find the users in the ADAM. And you will successfully logged-in to the site without any issues. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/1633811775605414022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/adam-forms-based-authentication-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/1633811775605414022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/1633811775605414022'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/adam-forms-based-authentication-in.html' title='ADAM-Forms Based Authentication in SharePoint 2010'/><author><name>Unknown</name><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/AVvXsEi7-OaSZ3faFPu3Q-dd2eUZDvXEwhZXsQVU2rKwH64IxKO0NzC9gxsiOYeVRobZO14QACkBN-pIDrBHYPuKtc2eIhn_S3JBnOmaBd1H-pb6JtNOgAh0D3k-9fekVQFTeyCalXydhqTTrho/s72-c?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-3998570206399751909</id><published>2011-03-16T08:06:00.001+05:30</published><updated>2011-03-16T14:41:57.932+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Forms Based Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Membership Provider"/><title type='text'>Forms Based Authentication in SharePoint 2010 using Sql Memebership Providers</title><content type='html'>&lt;p&gt;Basically Forms Based Authentication is a part of ASP.NET. So, it supports in all versions of SharePoint which are released after ASP.NET 2.0. In SharePoint 2010 it is the same process as what we did in earlier versions like WSS 3.0 and MOSS 2007 except one thing. In SharePoint 2010 while creating a web application we have an option to choose the application authentication mode Claims Based and Classic Mode. Know more about these authentication modes &lt;a href=&quot;http://sharepoint-2010-world.blogspot.com/2011/03/classic-mode-vs-claims-based.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.  &lt;h5&gt;&lt;font size=&quot;4&quot;&gt;Creating a web application which uses Claims Based Authentication:&lt;/font&gt;&lt;/h5&gt; &lt;p&gt;This is pretty much straight forward,  &lt;ul&gt; &lt;li&gt;Open Central Administration  &lt;li&gt;From Application Management - &amp;gt; Manage Web Applications  &lt;li&gt;From the top ribbon bar, select New  &lt;li&gt;From the create web application page, chose the authentication mode to “Claims Based Authentication”  &lt;li&gt;Give the name of web application, chose port number, path of web application.  &lt;li&gt;Chose security configuration  &lt;li&gt;From Claims Authentication Types, enable both WA and FBA.  &lt;li&gt;In FBA section we have to give ASP.NET Membership provider name. In my case I have used “SQLMembershipProvider” and I am not using any roles so I left it blank.  &lt;li&gt;Enter Sign in page url [default one], public url and other information and click OK.  &lt;li&gt;Once web application is created, then create a site collection.  &lt;li&gt;Now go to Manage Web application and from the list of web applications chose the option “Authentication Providers” from the ribbon.  &lt;li&gt;From the dialog box you will see the Default zone set to the Claims authentication mode. Click the Default zone link where you can see the settings. &lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxRxipNzyOOkdJDWLm18DJd3wFvqNwqC9eJHTMc5qbspq_lCRveCfTzpbBYp20XCAwocX9IQaF1Y7HeGWUD7RjPQ_fY7j7BTznT7Ww0Xtbxy1Q_v-G1MWy2GiwVJp7kLDjfVssIfjFoyI/s1600-h/clip_image002%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiE7KLRpTA8geyGFj4JOKU17xjpQxx2ugLxzYXz1c-yi9dfKkSd2gdpbg_9jM2EBXDx4ytFGU96aAoSCkPFinVgcsKlfkv0y_1cVcvxsHcSojPA-bl9K0Y4BL4qaDyVLPKUhHZT_7eVnM/?imgmax=800&quot; width=&quot;304&quot; height=&quot;256&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;OK, application is ready and browse the application, you will see the below screen which gives you the option to choose either Windows Authentication or Forms authentication. &lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQqNBzu10fIjEuTekxmyfUDhZKKT_bJMY-D0JaisbjfP2XCSxxYTPiCkHra3kYw_DH-sq55WBV0To6yMDonfIJbt3C_vCjBs_-OtP0-LVfAQHalZk2-HtimtcUInfru7k3_Jo5WAK8aks/s1600-h/clip_image003%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;clip_image003&quot; border=&quot;0&quot; alt=&quot;clip_image003&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxmtpp-KknJZ0-t3FPzUWoaidRpQBftqgwnRqlizi7IGdt2aE1uEFjwlkI7Hk7glFUkd7xTD627Wl6Ob3YDg8OXrOBS8WnskRPWdPxtbHlf4Jm-_KLTPIJr-dZ5oOfDiuK_k-N4d1He4o/?imgmax=800&quot; width=&quot;304&quot; height=&quot;136&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;The remaining part is linking our application and the Sql Server database.&lt;/li&gt;&lt;/ul&gt; &lt;h5&gt;&lt;font size=&quot;4&quot;&gt;Create ASPNETDB to configure membership and Role providers&lt;/font&gt;&lt;/h5&gt; &lt;p&gt;This process should be done on the database server. The result of the process is a database where we can save all the user and role information.  &lt;ul&gt; &lt;li&gt;Login to the server where SQL Server is installed.  &lt;li&gt;Open command prompt and navigate to location “%Sysroot%\Microsoft.NET\Framework\v2.0.50727”.  &lt;li&gt;Run the “aspnet_regsql.exe“. Which will open the ASP.NET SQL Server setup wizard?  &lt;li&gt;Click “Next” and chose the option “Configure Sql server for application services”&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNi5cpup8tanVDQNnm8Hf3nXf4xDqkSxzG8LLE3qtnV-rFDAcoXxvHV4cSJIS-0OZrjrh4yjGF3A9LxQMfa0sVsT8RzGjEkhH5FcBpYNdQr3H93kONZgKXELVOtIHglxzBU4RFSqeAvZc/s1600-h/clip_image005%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;clip_image005&quot; border=&quot;0&quot; alt=&quot;clip_image005&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQF7RvLeG_dqmAPhErYgmY0ujQXZ-2Q3Q2jFaws7BsHwtnJK3jqkFfhFuOz4BHxCtBGM6-obaK91kO0LfWPm5Yxbg56y4eLhVV36fu8_ph4BdozekrWFZRlj7gxvM8zO-lWwE6LOJUbv8/?imgmax=800&quot; width=&quot;272&quot; height=&quot;220&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;Click “Next” and give the SQL Server name and authentication information and in database by default it shows &amp;lt;default&amp;gt; means the name will be ASPNETDB, but you can change the name here if you want. &lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxijeAUwDX-BN65nNRVQ9-IbFJrK6_Lv7KZxEE3w1G21t1ZuAvg_IudXjqBsgnqYKDBcDoZZn0d7sj6SjGvbk9vkSl20Pg8ReSPHl_SfZ3PL6vTG5qJj4qVWOtflSWu18-gapjlO5Q4j8/s1600-h/clip_image007%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;clip_image007&quot; border=&quot;0&quot; alt=&quot;clip_image007&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFaBP26ltyVXMOBdVbffDdKMG_bHqY8YonnyecinbEJ54SFtgZ-PQUnWMgqjI5w9AsxUMCiUhAk46oV7uAoXkKbIVUbBQfORFeadCKvuYdAWbCR1tnzfH7JdGEwJm-uQPF9Bf9FIQEmsI/?imgmax=800&quot; width=&quot;272&quot; height=&quot;216&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;ul&gt; &lt;li&gt;Click “Next” and Finish the wizard. It will create a database for you with the entire schema required to save users and roles.  &lt;li&gt;Now, we have to enter some data to the database. For this we have some tools available from Codeplex.  &lt;li&gt;Go to this site and download “&lt;a href=&quot;http://cks.codeplex.com/releases/view/7450&quot;&gt;Membershipseeder.zip&lt;/a&gt;”  &lt;li&gt;Extract it and run it and create n number of users and roles [if you want]. Note that if you have given some name to the database other than the default name aspnetdb then in membershipseeder config file please change connection string.  &lt;li&gt;Now, we are ready with database with all some test data in it. &lt;/li&gt;&lt;/ul&gt; &lt;h4&gt;&amp;nbsp;&lt;/h4&gt; &lt;h4&gt;&lt;font size=&quot;4&quot;&gt;Give specific permissions to the service accounts:&lt;/font&gt;&lt;/h4&gt; &lt;p&gt;We have created the database successfully. Before we proceed,  &lt;ul&gt; &lt;li&gt;The service account or application pool user account of our FBA application,  &lt;li&gt;Application pool account [service account] of central administration and  &lt;li&gt;Security token service application pool user accounts &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;should have access to the database to go and get information of the users and roles. Almost in all environments the system administrators creates the service accounts we have to use in our applications. If you are not following those base rules in using service accounts then you may use different service accounts for all the three applications. In that case you have to go through all the three application we have mentioned above and give them access to database. If you are following the riles of using service accounts then may be only one service account used for all the three applications and give the service account access to database.  &lt;p&gt;&lt;font size=&quot;4&quot;&gt;&lt;strong&gt;Modify web.config files of applications to communicate with database using providers&lt;/strong&gt;&lt;/font&gt;  &lt;p&gt;1. To get the users from sql server database to central administration site we have to change web.config of Central Administration site.  &lt;p&gt;2. To get the users from Sql server database to web application which we created to work FBA, we have to change its web.config.  &lt;p&gt;3. To login to the site using claims based authentication, it uses security token service application. So, we have to change its configuration file.  &lt;p&gt;So, the site we created for FBA to work using forms authentication we have to change 3 web.config files totally.  &lt;p&gt;&lt;b&gt;Note: &lt;/b&gt;Before you are making any changes to the web.config file of any application please take the backup of it.  &lt;p&gt;The main changes include connection string and providers.  &lt;h5&gt;&lt;font size=&quot;3&quot;&gt;i. Modify web.config of web application we created:&lt;/font&gt;&lt;/h5&gt; &lt;h6&gt;&lt;font size=&quot;2&quot;&gt;Adding ConnectionString&lt;/font&gt;&lt;/h6&gt; &lt;p&gt;Add Connectionstring just above &amp;lt;System.Web&amp;gt; starts or just below &amp;lt;/Sharepoint&amp;gt; ends.  &lt;p&gt;&amp;lt;connectionStrings&amp;gt;&lt;/p&gt; &lt;p&gt;&amp;lt;add name=&quot;SQLConnectionString&quot; connectionString=&quot;data source=SP2010-DB-02;Integrated Security=SSPI;Initial Catalog=aspnetdb&quot; /&amp;gt;&lt;/p&gt; &lt;p&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/p&gt; &lt;h6&gt;&lt;font size=&quot;2&quot;&gt;Adding providers for membership and role [if needed]&lt;/font&gt;&lt;/h6&gt; &lt;p&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. By default there are providers with name “C” and “I”. So, do not touch them and add only the providers which we are adding like “SQLRoleManager” and “SqlMembershipProvider”. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.  &lt;p&gt;&amp;lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;  &lt;p&gt;&amp;lt;providers&amp;gt;  &lt;p&gt;&amp;lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;add connectionStringName=&quot;SQLConnectionString&quot; applicationName=&quot;/&quot; description=&quot;Stores and retrieves roles from SQL Server&quot; name=&quot;SQLRoleManager&quot; type=&quot;System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&amp;gt;&lt;/font&gt;  &lt;p&gt;&amp;lt;/providers&amp;gt;  &lt;p&gt;&amp;lt;/roleManager&amp;gt;  &lt;p&gt;&amp;lt;membership defaultProvider=&quot;i&quot;&amp;gt;  &lt;p&gt;&amp;lt;providers&amp;gt;  &lt;p&gt;&amp;lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;add connectionStringName=&quot;SQLConnectionString&quot; passwordAttemptWindow=&quot;5&quot; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;false&quot; requiresQuestionAndAnswer=&quot;true&quot; applicationName=&quot;/&quot; requiresUniqueEmail=&quot;true&quot; passwordFormat=&quot;Hashed&quot; description=&quot;Stores and Retrieves membership data from SQL Server&quot; name=&quot;SQLMembershipProvider&quot; type=&quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&amp;gt;&lt;/font&gt;  &lt;p&gt;&amp;lt;/providers&amp;gt;  &lt;p&gt;&amp;lt;/membership&amp;gt;  &lt;p&gt;Save all your changes and we are done with configuration changes for FBA site.  &lt;h5&gt;&lt;font size=&quot;3&quot;&gt;ii. Modify web.config of Central Administration site&lt;/font&gt;&lt;/h5&gt; &lt;h6&gt;&lt;font size=&quot;2&quot;&gt;Add Connectionstring&lt;/font&gt;&lt;/h6&gt; &lt;p&gt;Add Connectionstring just above &amp;lt;System.Web&amp;gt; starts or just below &amp;lt;/Sharepoint&amp;gt; ends.  &lt;p&gt;&amp;lt;connectionStrings&amp;gt;  &lt;p&gt;&amp;lt;add name=&quot;SQLConnectionString&quot; connectionString=&quot;data source=SP2010-DB-02;Integrated Security=SSPI;Initial Catalog=aspnetdb&quot; /&amp;gt;  &lt;p&gt;&amp;lt;/connectionStrings&amp;gt;  &lt;h6&gt;&lt;font size=&quot;2&quot;&gt;Adding providers for membership and role [if needed]&lt;/font&gt;&lt;/h6&gt; &lt;p&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.  &lt;p&gt;&amp;lt;roleManager defaultProvider=&quot;AspNetWindowsTokenRoleProvider&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;  &lt;p&gt;&amp;lt;providers&amp;gt;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;add connectionStringName=&quot;SQLConnectionString&quot; applicationName=&quot;/&quot; description=&quot;Stores and retrieves roles from SQL Server&quot; name=&quot;SQLRoleManager&quot; &lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;type=&quot;System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&amp;gt; &lt;/font&gt; &lt;p&gt;&amp;lt;/providers&amp;gt;  &lt;p&gt;&amp;lt;/roleManager&amp;gt;  &lt;p&gt;&amp;lt;membership defaultProvider=&quot;SQLMembershipProvider&quot;&amp;gt;  &lt;p&gt;&amp;lt;providers&amp;gt;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;add connectionStringName=&quot;SQLConnectionString&quot; passwordAttemptWindow=&quot;5&quot; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;false&quot; requiresQuestionAndAnswer=&quot;true&quot; applicationName=&quot;/&quot; requiresUniqueEmail=&quot;true&quot; passwordFormat=&quot;Hashed&quot; description=&quot;Stores and Retrieves membership data from SQL Server&quot; name=&quot;SQLMembershipProvider&quot; type=&quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&amp;gt;&lt;/font&gt;  &lt;p&gt;&amp;lt;/providers&amp;gt;  &lt;p&gt;&amp;lt;/membership&amp;gt;  &lt;p&gt;Save the web.config file and we are done with configuration changes for CA.  &lt;h5&gt;&lt;font size=&quot;3&quot;&gt;iii. Modify web.config of Security Token Service Application&lt;/font&gt;&lt;/h5&gt; &lt;p&gt;Open inetmgr from run command and open IIS. From the list of sites available expand “SharePoint Web Services” and find SecurityTokenServiceApplication.  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG7KSFOcfuNkkcqF4xL4Kmdz5kd0edbblONhxKDIWx0sHQV3_m6bwyBgDxdg1rA7FhMHmnHcKLi4MO-s-7diIbZF1IdZq9jZSalFpdiSEBU7k6ULLVevxUl0SD3b2_z56EmuQIFdD_-dc/s1600-h/clip_image009%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;clip_image009&quot; border=&quot;0&quot; alt=&quot;clip_image009&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3SOMSMmGW4UDH1HNlRRqOIxAe8S3tXR3vyE1v1UO7JkC2pGIzsov34Tieau5rDJZgi4fLHOkMWNZez4JCCq8SuTLrnEns7Lfto2MhPrpbzrATEj9ABYGlugZIeEz7ws-eYLNi5u4PHG4/?imgmax=800&quot; width=&quot;267&quot; height=&quot;300&quot;&gt;&lt;/a&gt;  &lt;p&gt;Right click on the application and explore, which will opens the file system file location of the application. By default it will be in “%programfiles%\common files\Microsoft Shared\web server extensions\14\WebServices\SecurityToken”. Find the web.config of the application and modify it.  &lt;h6&gt;&lt;font size=&quot;2&quot;&gt;Add connectionstring&lt;/font&gt;&lt;/h6&gt; &lt;p&gt;Just above &amp;lt;System.Web&amp;gt; starts add the connection strings tag.  &lt;p&gt;&amp;lt;connectionStrings&amp;gt;  &lt;p&gt;&amp;lt;add name=&quot;SQLConnectionString&quot; connectionString=&quot;data source=SP2010-DB-02;Integrated Security=SSPI;Initial Catalog=aspnetdb&quot; /&amp;gt;  &lt;p&gt;&amp;lt;/connectionStrings&amp;gt;  &lt;h6&gt;&lt;font size=&quot;2&quot;&gt;Adding providers for membership and role [if needed]&lt;/font&gt;&lt;/h6&gt; &lt;p&gt;Before you add any providers find are there any membership or rolemanager tags in the web.config file. And add the providers [&amp;lt;rolemanager&amp;gt; and &amp;lt;membership&amp;gt;] to the &amp;lt;System.Web&amp;gt; tag. &lt;b&gt;Make sure&lt;/b&gt; that you are not doing any changes to the existing providers. By default there are providers with name “C” and “I”. So, do not touch them and add only the providers which we are adding like “SQLRoleManager” and “SqlMembershipProvider”. Finally the &amp;lt;rolemanager&amp;gt; section and &amp;lt;membership&amp;gt; section as shown below. Highlighted in red tags are I added to web.config.  &lt;p&gt;&amp;lt;roleManager defaultProvider=&quot;c&quot; enabled=&quot;true&quot; cacheRolesInCookie=&quot;false&quot;&amp;gt;  &lt;p&gt;&amp;lt;providers&amp;gt;  &lt;p&gt;&amp;lt;add name=&quot;c&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;add connectionStringName=&quot;SQLConnectionString&quot; applicationName=&quot;/&quot; description=&quot;Stores and retrieves roles from SQL Server&quot; name=&quot;SQLRoleManager&quot; type=&quot;System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&amp;gt; &lt;/font&gt; &lt;p&gt;&amp;lt;/providers&amp;gt;  &lt;p&gt;&amp;lt;/roleManager&amp;gt;  &lt;p&gt;&amp;lt;membership defaultProvider=&quot;i&quot;&amp;gt;  &lt;p&gt;&amp;lt;providers&amp;gt;  &lt;p&gt;&amp;lt;add name=&quot;i&quot; type=&quot;Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&amp;gt;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;add connectionStringName=&quot;SQLConnectionString&quot; passwordAttemptWindow=&quot;5&quot; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;false&quot; requiresQuestionAndAnswer=&quot;true&quot; applicationName=&quot;/&quot; requiresUniqueEmail=&quot;true&quot; passwordFormat=&quot;Hashed&quot; description=&quot;Stores and Retrieves membership data from SQL Server&quot; name=&quot;SQLMembershipProvider&quot; type=&quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&amp;gt;&lt;/font&gt;  &lt;p&gt;&amp;lt;/providers&amp;gt;  &lt;p&gt;&amp;lt;/membership&amp;gt;  &lt;p&gt;If everything goes well, then in central administration site and your FBA application people picker able to find the users in the sql server aspnetdb database. And you will successfully logged-in to the site without any issues. &lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/3998570206399751909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/forms-based-authentication-in.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3998570206399751909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/3998570206399751909'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/forms-based-authentication-in.html' title='Forms Based Authentication in SharePoint 2010 using Sql Memebership Providers'/><author><name>Unknown</name><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/AVvXsEiiE7KLRpTA8geyGFj4JOKU17xjpQxx2ugLxzYXz1c-yi9dfKkSd2gdpbg_9jM2EBXDx4ytFGU96aAoSCkPFinVgcsKlfkv0y_1cVcvxsHcSojPA-bl9K0Y4BL4qaDyVLPKUhHZT_7eVnM/s72-c?imgmax=800" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-704143710078952845</id><published>2011-03-16T08:01:00.001+05:30</published><updated>2011-03-16T08:01:51.028+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Classic Mode Vs Claims Based Authentication in SharePoint 2010</title><content type='html'>&lt;p&gt;&lt;b&gt;Classic Mode:&lt;/b&gt; This is nothing but Windows Authentication. If any web application is created with Classic Mode Authentication then it cannot applicable to configure forms based authentication. But, to configure this application to use Forms Based Authentication then you can convert from Classic Mode to Claims Based. But, there is no UI exist for doing this conversion. The only way around is through PowerShell.  &lt;p&gt;$app = get-spwebapplication &quot;URL&quot; &lt;p&gt;$app.useclaimsauthentication = &quot;True&quot; &lt;p&gt;$app.Update() &lt;p&gt;But, if an application is created using Claims based and if you want to convert from Claims based to Classic Mode then it is not possible either through UI or through PowerShell. So, remember this. &lt;p&gt;&lt;b&gt;Claims Based&lt;/b&gt;: In SharePoint 2010 for a web application we can enable both windows, forms authentication. In earlier implementation to do this, we have to create two web applications which has different zones and different authentication. But, with the new claims based authentication a single application can have the capability to configure both windows and forms under single URL. All this is possible because of the authentication framework is built on Microsoft Identify Foundation. And it uses “Geneva” framework to handle this authentication.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/704143710078952845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/classic-mode-vs-claims-based.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/704143710078952845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/704143710078952845'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/classic-mode-vs-claims-based.html' title='Classic Mode Vs Claims Based Authentication in SharePoint 2010'/><author><name>Unknown</name><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>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-976508730495432249.post-4052754363891363342</id><published>2011-03-16T07:57:00.001+05:30</published><updated>2011-03-16T07:57:04.275+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Active Directory"/><category scheme="http://www.blogger.com/atom/ns#" term="AD-LDS"/><title type='text'>Installing the Active Directory Lightweight Directory Services [AD-LDS]</title><content type='html'> &lt;p&gt;This is the replacement of ADAM in previous versions.  &lt;h5&gt;Windows Server 2008 or later servers:&lt;/h5&gt; &lt;p&gt;If you are using Windows Server 2008 or later versions of the servers then this service included in the Server Roles in Server Manager. To install this service then please follow steps below. &lt;p&gt;1. Open Server Manager. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaL-WN6fqFvkUAFzTLHFaXnn_cj31dNtXP-AfUgevCMSJ0PDzDizV0HsTumeWuVWyTzOKDonKtmLgl4B-f5dE-qSOekobAymIQBxbXU_e10z3xXpXXuqlfz5dWxVHtUbCVfmW7j-LS1ng/s1600-h/clip_image002%5B6%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbhnlH6No56B3CaiQN-iwlPJx2m6MlGuP5bNyyXNmSqYnTqHyba9YspGFzuXL1cylc8TqgBo_f6CU1p1rVnMlWWutKJkJsMKT5fyjq24zRZuBijSs1N7A0Dk85nQVdJCOjn58Mv2evaS0/?imgmax=800&quot; width=&quot;329&quot; height=&quot;221&quot;&gt;&lt;/a&gt; &lt;p&gt;2. Click on Roles from the left navigation tree view. &lt;p&gt;3. On the main panel window you see all the roles installed. And on the right side, you have option to add/remove roles. &lt;p&gt;4. Click on Add Roles link. &lt;p&gt;5. A wizard opens up and in the window you will see all roles available on the server. If any role installed then it will be disabled as we have clicked on “Add Roles” option.&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQo6oiUHZ3BRp1w0EcZUpkuZp6-8lljeV8DT31MJ1lWcR_okyAFgD7AAanfjEPDX_g5kowK1gSVYfw7YnlzoAh1ASfrau2PGySJmjwEY6VM8el1St5P6nfLbVEv82rFTFTMd4Ln8iHQxo/s1600-h/clip_image004%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image004&quot; border=&quot;0&quot; alt=&quot;clip_image004&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZyTrHKB4ca7hVythyphenhyphenw_GAeP2B-qFIeenAI3G20quYjnQ4lRNBCvlaJQXrYWgDdMfNmtsKYwE7zmUtBRC3EVDdSh8yC2EEKdcuOEd-AogRF6_-Nvn0eyigUvmpbf-zssJstEGq4jts3GQ/?imgmax=800&quot; width=&quot;345&quot; height=&quot;267&quot;&gt;&lt;/a&gt; &lt;p&gt;6. From the list of roles, select “Active Directory Lightweight Directory Services”.  &lt;p&gt;7. Click “Next” button and then install. &lt;p&gt;8. It will take around a minute and completes the installation.  &lt;p&gt;Note: It will be good if you restart your server but, not mandatory.  &lt;h5&gt;Windows 7:&lt;/h5&gt; &lt;p&gt;Windows 7 is not a server and you cannot find “Server Manager” option. So, we have to download add-in from Microsoft which installs AD-LDS components.  &lt;p&gt;· Download the installer from “&lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&amp;amp;FamilyID=a45059af-47a8-4c96-afe3-93dab7b5b658&quot;&gt;AD-LDS for Windows 7&lt;/a&gt;”. &lt;p&gt;· Run the download and wait till installation complete. &lt;p&gt;&amp;nbsp; &lt;h3&gt;Configuring the AD-LDS&lt;/h3&gt; &lt;p&gt;I am assuming you are successfully installed the AD-LDS on the system you are using either WS 2008/R2 or Windows 7. If successfully installed then you will find an option named “Active Directory Lightweight Directory Services Setup Wizard” under control panel -&amp;gt; administrative tools.  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zRKg2vV_tZMrUQhyXMkC8HznK9TIOiXrK4rsDXmKhK0NCnbQmq11TPVBLZI9dF16R7gMmmmmI6rfVjiAgNOzwp9yVDwjRnhpy60lsxazKiyWyBo-s0w97MlW9lEtnPlTX9ZlCZC2ANM/s1600-h/clip_image005%5B5%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image005&quot; border=&quot;0&quot; alt=&quot;clip_image005&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpy93FGj3mupgcWnGDqIqUx5lbp2aBf2S7xX6p_e_eIAYwQzjHErKakqwUwXLlMJFqhQ8FCN_wR5Lt2UqKVIGcGZCnL6wGLGk4G7yB89BHYJIjkRrxQnUDpMj5CktRELVxRgW1YzUQIm0/?imgmax=800&quot; width=&quot;463&quot; height=&quot;142&quot;&gt;&lt;/a&gt; &lt;p&gt;As we discussed earlier, it allows multiple instances in the same server. So, you can create n number of AD-LDS instances on the server. But, when you create an instance what are actually created and what services it enables etc. in later sections. The physical location of this setup wizard is at “%SystemRoot%\ADAM\adaminstall.exe”. OK, now we have to create an instance of the AD-LDS. &lt;p&gt;· Double click on the “Active Directory Lightweight Directory Services Setup Wizard”. &lt;p&gt;· It brings up a wizard where we can create a new instance or create a copy of existing instance.  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaggUZPAlpbKPi6oUv833P7GLDwyolvbfihIdVwsr-vGP3RmypjR69zesQSklwiYiVhYrBeFAb25OuXvyx0kEdeLs4zkSuSiPwh9pT6vgmgxqEhOlFl4Bj71G1MopW2qYG7zQWImB5ePg/s1600-h/clip_image007%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image007&quot; border=&quot;0&quot; alt=&quot;clip_image007&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7xL5IDY4bC_qHWGcegXZAg7sl3lEOMXdvMuxvcvsb-1aoDendJrVjiQApJvygpGwwbwk44dMG1kn0IBBSKzN5YontWUmfAn_dEe1Ym66-9A9dUn-cn7JDwt_VCgpBzYgnAx5as0jWFc/?imgmax=800&quot; width=&quot;312&quot; height=&quot;247&quot;&gt;&lt;/a&gt; &lt;p&gt;· Chose option “A unique instance” as we are going to create a new AD-LDS instance and click “Next”. &lt;p&gt;· Give a good name in the “instance name” and type some description. The name should be good because this name will be used in some other places. So, keep giving good names everywhere. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGCz8jVe_NJIFqMKkMhyphenhyphenddCsO7LXKLT1AWZGgo69H28ha8SBa4fj2LZWCyEIN7qFx_jAeFN1o6Sue_kiVeeWW_0rWgyqahJpbX3Lbip6KWMPm-gi6qq9K74uoNKf_CoLmTOpLMfHD53OQ/s1600-h/clip_image008%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image008&quot; border=&quot;0&quot; alt=&quot;clip_image008&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIuZt3x19OfdJE199VoKVOLcabhYi6GopOP2haiFARh-LyAXeOwYZH0x-L-5jnfESmgbsc9ck5vXql9oiUnTlVru8jVEVSiI0Am6mNvZDkZIeqIRSotS55gV6j2dKHNmiBLxyL1K1KvWo/?imgmax=800&quot; width=&quot;336&quot; height=&quot;261&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and from this screen, we have to choose the port numbers. By default it will take 389 for LDAP and for SSL 636. You can change it. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW8IgHBCQizdEBb-3pZdcLhDrH3cSQzQyfIGgFGoDdaVu8DNpLXlzCZ_9yBF6mHQXfGJ9JDX0A8H8gWF7EJmkXlxDA93DSDuGuCKr4IS357yUd7H-MqsbkN3XlkNtjH1E68DhbOpK4Hyo/s1600-h/clip_image010%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image010&quot; border=&quot;0&quot; alt=&quot;clip_image010&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYjFWKRBjm70KZmvac3OkYqqUnJFGPBwF-5cPlgxyiISWqzghMtpRzGo2lmyIyDyAJyEFdFYWXL0cUccJzzssxIzuuVb9O2Nl5AqdU0AtWEVk-FGK_6ajQxJqckNvSEI01vDOX8bVLPD0/?imgmax=800&quot; width=&quot;341&quot; height=&quot;268&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and select the option “Yes, create an application directory partition” and enter the partition name. I have used “CN=Customers,DC=Northwind,DC=Extranet”. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwv-mbthuKNg4a8RuNpjbe_PdCk2jfpNmtAcu84aXv7LMxp_rWw6CK_BqdKVODIlBQ1onfLtHPyiohs1PEMITCegk5sOtWkxrsmPrB7BPc1ppNPaNWec1wao-5TWB0cNAoQgTwzI6jU6k/s1600-h/clip_image012%5B5%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image012&quot; border=&quot;0&quot; alt=&quot;clip_image012&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPO3acP9PgGj3uZtNpguOqwCqQkIEiJB-Tc0TsNY2FFu-PrGtAuu_RxdDkxIMYTJq6c476QUX63HyE3YojOgalC-aZ3egyuHztndmycTUUeWZc44MHUIAT6C_9cNs1_zEn0ZyIZAfzp9E/?imgmax=800&quot; width=&quot;354&quot; height=&quot;285&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and from this screen, we have to give the file locations of where the files will be saved. I left to the default path, but you can give any safe location other than “C:\” &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO51yn-BxQsuNY9kUtUTSVXM_eAt7BonJCXqD7ZGVvjenrqggrTEpznn7cH5Yplyp493QzFtoU_hicWprJZ7vNPmfO8Pe7qC7oix4k49pe2UoGItHlGSj_Uu3f4uSd6uVcDHLZTOQHr0U/s1600-h/clip_image014%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image014&quot; border=&quot;0&quot; alt=&quot;clip_image014&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3EHZGhgS8G5O9b98lKKWiQkJ3kL3AtJneAJWz0vm-_cbL4xfIkbAF2cVyXcGJbO0b7-h3diPIxPK4hiA00-7trduptkmppo1f__3FQcNdiLeQrzrOlL3YhCf_8J7ovPCtP1MVppUF6kc/?imgmax=800&quot; width=&quot;353&quot; height=&quot;276&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and chose the service account you want to use. [Under which account the AD-LDS should run.] For testing purpose chose N/S otherwise go for your domain service accounts. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3AHQocwFmrMwS2czTFaLnPSSk3Mt6Km7Mqm8WVeE3bdz_dQ7LHn6Oy4XjQ7y3o-c-_ZDt0wI_Ms3varWEdUoX-34CPnsZNEM7u_JkeKKhx18Fg80tk2_o_KT-tBnLb-7PsXCZXgZYhbs/s1600-h/clip_image016%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image016&quot; border=&quot;0&quot; alt=&quot;clip_image016&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicA6C747L-800k-SLZsOJamrGvi4YEXvB6dAjVdS3KqhjmRz1MItsg4wuf9vT3PYDD942PzvD2iR-MGeZOAXqQP6gEwwduQJkLoBrinqKXxovOG525miVxKiTKwbd9STsYNmwRUheD4WE/?imgmax=800&quot; width=&quot;359&quot; height=&quot;281&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and select the AD-LDS administrators. If you logged into the server who is an administrator then leave as is, otherwise chose an account. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCpDeiiudCv7lab5-SmLtIm7DuSwvFZb2rK2NI79ZGPsV0ooe6P-ntssAmoSZ4F8JZraMiyLj6lsSPk_cpyBULPkCGEKfh8OHqNGoRKlQ1rh2Kk3zQh5LAELkL9bgcfNb622iGFRQKSRo/s1600-h/clip_image018%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image018&quot; border=&quot;0&quot; alt=&quot;clip_image018&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhve_qOVZF3ghawE8sxDra07AXM1xpgrQrG-ufY9VwMe8IMtTv5hAkKYIn9It_i976fWEmX2mOMyb929qQ0n7xPHAd7ESfBASlCa4wWyl0XzBTUyies6WuRWm5QLPy7K3csQ3T7hXG0m9U/?imgmax=800&quot; width=&quot;353&quot; height=&quot;274&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and here is the interesting part. What LDIF [Lightweight Directory Interchange Format] files you want to import into this AD-LDS. The physical location of all these LDF files is at “%SystemRoot%\ADAM”. [You can see *.ldf files from Command Prompt]. Select all 4 I selected. It is not mandatory to select all. But, MS-User.LDF is mandatory. All other for adding external properties to user or related classes. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglrKZWy7dwrk31_E4_-E9mZQBW7NqSp7qzjsLxFuAhMsh6nU2rfCmbFl1qubkJ6VWDWGDx2Q7LjqX0Mndikg3sxvhzzc5L5vb5wO8vUmkBAATTNJXtwu6XkE2pr1FzbAn42HdsnqYIQe0/s1600-h/clip_image020%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image020&quot; border=&quot;0&quot; alt=&quot;clip_image020&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUzW4qecfSI986K8JrEDpcec7NTR-0_TtXYG8yd-Aj01t3XxqB2pPwVnbS9ewVYq7i9ieM4F1EodTQ8Osu0Tghi5JjjGZwp2KQfH5Ji8GdrEWIzviAO5nn28EuLAPj7lLAC0gNYbQ9RIM/?imgmax=800&quot; width=&quot;361&quot; height=&quot;279&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” and this screen gives the complete summary of what we have selected “Ready to install”. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdaEuw3t6hvOCUR-VSWP3v6EJdMRLRB8enRVVA0fjjWniyfgBbU7yLcCsAnTxOw64wqGozZOagInHe0Re8Q-9mht8G5xwLDYNt4FOhNF0g-6t4NwRBg93ugZ_KcPQX48zBSfCuA953am8/s1600-h/clip_image022%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image022&quot; border=&quot;0&quot; alt=&quot;clip_image022&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5xctrsrmSGbCsZBO7mguqUsMjheVASPGlt-E2cYua6VajOKEtA_hKMvIHHRd74VHF7sOo1H8RUl_wrLL_ywnEiqoE-LWY9P2tb2BPZAzy13jWvQDzPb5Kna1f6SeQZSAs1tNOCwgl6CI/?imgmax=800&quot; width=&quot;371&quot; height=&quot;287&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click “Next” to install. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxsaYHSJwJA4NCacgUgI_axEa6lNT8EtaDQfZxXeiXYX_hfUSWhQ_Z-ITClsJmz3vq5UNjEK1G9FBLCJkkZKfMH3DC-vbx8az_WqC-bqCcSBzoMOZoXPIf0ckxjRra2_Q_i1yxBfX9L_g/s1600-h/clip_image024%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image024&quot; border=&quot;0&quot; alt=&quot;clip_image024&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvEM0lPYfM9sezeH21Z6wDQ0uH7x2w2JBvJGGneGmFhH5ji67tnFKE3ErGZtPzjTavc-iMHUC1M0yYdAGiDLY53Gmgj5YKLbPJCRt1jNZCt9gCsDyZyclytFHRrC8pAG9neq5ZjF9ouNo/?imgmax=800&quot; width=&quot;373&quot; height=&quot;295&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click Finish. We are completed with installation process. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHlw55eSUPCmu4wPGmPCr-hofcVKjN72WFj8qOV8Ke-PPS4TppkjcPAcQqRisOKVfVUuTtk7qHnqowxd4TKTCTe1l4ahB5Uh0r3WuJtqEC149oFq6kNbi4ubYJ1GKSMhzKNTXYbwWBcZE/s1600-h/clip_image026%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image026&quot; border=&quot;0&quot; alt=&quot;clip_image026&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsgypo1pU9Lki2idKN3_jLUXoUnutt0zKLikilGTKd680CnT0wuFR1RONJ4G8kM63hmOFKEC7LZmQqDX3jmg4Rx7jvk6APyDAIYWO5ugyjLPcIDU7zbm5kXhO8B56h8rX1MnZCwLIkDaQ/?imgmax=800&quot; width=&quot;369&quot; height=&quot;291&quot;&gt;&lt;/a&gt; &lt;h4&gt;&amp;nbsp;&lt;/h4&gt; &lt;h4&gt;Validate AD-LDS:&lt;/h4&gt; &lt;p&gt;· If everything configured correct then you will see the service running under Administrative Tools -&amp;gt; Services. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL6KQ0R3I7hC4P38smiGIdJx1b3NL-zQyf-HeKLBcjil7Niea64XcA1FHAUNfzOY87Gw5c1KAbcTNS_zMUI-j4wb0GlQtrBEwdy0z5w396RCSPO2I4pE7-v5JuTJjCJrWukzKslG9oZcI/s1600-h/clip_image028%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image028&quot; border=&quot;0&quot; alt=&quot;clip_image028&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQTFMFgBm8k67z6pJALwYWNs_dYrQWjR0vxDgzc5gibCEvhL0s-3QYwcjxCBrkU1ID7jqUOM0gT6hJd5lPp4o0yXWUd8jeajaaoAR2zqPoqQRHU76yndsQEQTAp5C-O1gY9RkMeCbR6hw/?imgmax=800&quot; width=&quot;367&quot; height=&quot;130&quot;&gt;&lt;/a&gt; &lt;p&gt;· Go to Control Panel -&amp;gt; Programs and Features -&amp;gt; you will see the AD-LDS instance installed. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5lsYFnc_vqIEqZtj5VedeYvTWctGcSP_hR-42Uz3qyu4FP18_rELemt1wIBG2kHPQ7GZkguGaVDWexgwIG_3nC0tToiUIW9x8RepxWSFW0wYwDq67W2hUuIN2uEpOpUQqHsv1N4_APKk/s1600-h/clip_image030%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image030&quot; border=&quot;0&quot; alt=&quot;clip_image030&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggdsiHSw3i5t4oE-FiHGviFnlPjgQfQLICOGuETWs3qET2-HblNUk8TBU2-tp7rzK7FYUxyguFSr_mU5Bsm5tiBpzJwqNPRdoV6DOMRcX6ZBFUEI-bcd3MEYB3La9QlMUlI29Dx8E2ylo/?imgmax=800&quot; width=&quot;390&quot; height=&quot;99&quot;&gt;&lt;/a&gt; &lt;h4&gt;&amp;nbsp;&lt;/h4&gt; &lt;h4&gt;Connect to the AD-LDS&lt;/h4&gt; &lt;p&gt;OK, we successfully created and validated everything is successful. Now, we have to see the created instances and do some stuff with it. For this we need some sort of tool to connect to the instance and browse through. The familiar tool what we use regularly is “ADSI Edit”. Go to Control Panel -&amp;gt; Administrative Tools and open ADSI Edit. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaoHEuj2CFi7C0sHwwQQPTWqILQ-poSvVIP16SsTFJNRHfq9F3bN69Y6896If1tvl_DUPqUf3Bw-0wzdW7V5zjfgnNfMIM6u8jAfCuQZ3K12WlE5JWiHNGB-xTv82-9lX7OubwoHrG8_4/s1600-h/clip_image032%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image032&quot; border=&quot;0&quot; alt=&quot;clip_image032&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZbMcA3a0u-s3QWfE4IcGXigaMBCG29S5QtDy04uNB4kj54COUZSzlT8AmPTz-sBIX72VqK9BA5HF8AjtOXZC1bQNX5uPThqXaqzmu0vsfQOczuGeiRNwdB0RmSS_eiNXBAyePlemYxcU/?imgmax=800&quot; width=&quot;385&quot; height=&quot;133&quot;&gt;&lt;/a&gt; &lt;p&gt;· Now connect to the AD-LDS instance from the option Actions -&amp;gt; Connect to. Give some name to the connection. And from the Connection point, we will check the schema first. So, select Schema. And from the Computer setting, give your server name. And click OK. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIvWwKnUv95RH7V1rCLyA_E1SWMdF-X2dZWtdgCiaorNQJ00HFCGxXfEG2-dRs0jBeSs8WGr9QXIpYtx497Tp11pvx1-HV5XP-cWnAqkefnRSviU5ODre2T8Aamg6qmiXR6XmguUOsAUY/s1600-h/clip_image034%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image034&quot; border=&quot;0&quot; alt=&quot;clip_image034&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHWYakuvJhn71nDqM98v54vRdMl1-k1ohpwMAMOmhkBK7mwD1C99jzLjimAZd36SU7zqkmMF48cx2Vl1UdkdgioA8rb6TsTFXf_8d32Y-Q_IMd1g2vaGx599z2WQKeFTtHSF_RRhMwHfU/?imgmax=800&quot; width=&quot;336&quot; height=&quot;342&quot;&gt;&lt;/a&gt; &lt;p&gt;· Now, you will see the complete schema of the available objects. See the schema for user etc... &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm3vDmTSEeHW9X41sFZ8p5-TevCKjAdLBxgeiBJp06s2JGsyS7NpgX2MGK16lrp8z1qPqoatT4IZfTSHXuYg-O6IzlFff83Ns6rK5_fr_9VBPUBz63fWJ78kQ6_WqkVgsu3KPYXmC7gm0/s1600-h/clip_image036%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image036&quot; border=&quot;0&quot; alt=&quot;clip_image036&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmuDTBe96x2k3LHWVjkAYvT9vsraGwaIGXzRJJSGcxCtBtky8dlxK8dIW2U_MHf0MZ3wHsM057FUViptXK5fcYSS_Gqf9P8M1tCPEBrUuLVj0l9lBJqhbmunG18mobviggAwH9_W1sqwU/?imgmax=800&quot; width=&quot;328&quot; height=&quot;317&quot;&gt;&lt;/a&gt; &lt;p&gt;· Now, we actually need to see data other than schema of the AD-LDS instance. For this we have to connect to the partition of what we have created. &lt;p&gt;o From Actions -&amp;gt; Connect To. Give some name to the connection and from Connection Point, chose the distinguished name and give the name we have given while creating the instance. And enter the server name and click OK. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivHb_5cAILNo5gUJXZaVe_3Zye202K39mqzSe3e3FH-8qDOx7F0yl4_ftlV2IIjCYMg0FFZwqoN5rmKQ1bu2UmD0gF_ixhGGL2pk21_QdASST-1LnyaamhTWURhOsl8XiOTxZDA971kPo/s1600-h/clip_image037%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image037&quot; border=&quot;0&quot; alt=&quot;clip_image037&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE2uChQDPcPYvh8zgZ8oh6CFSZMMCoSaAjEhGcpIfBhCPruQha4hnAT6m50cZ4RJMSJGfIxmM1V2gxhETzURQygHDVXYheJYm-ltWZEdTUSw9wmfRRJ-UO0vnG9Afp4AgBVjUfz0-rsJE/?imgmax=800&quot; width=&quot;275&quot; height=&quot;280&quot;&gt;&lt;/a&gt; &lt;p&gt;o By default only 4 objects. We have to create an object[Container] named Users to place all the users in it. For that right click on the surface and from the menu, chose new and then object.  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6zAURPWCPQfxNZup_9xUdC-1w5y70uX7tkKAIFwSINsQVAuNFSy_862SAhL8wi533Ybuj9eh5LnH-SfUujyE6tt0vvb3yuGrvgLyZqkHVFkarAHbbRanWeBB-4Q9z7D9SR-_yyFWkxXs/s1600-h/clip_image039%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image039&quot; border=&quot;0&quot; alt=&quot;clip_image039&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig7XwxdZSiWydte98D0HYvhttfV9ddhE5x0NP7dO8tWUWCxsQesnzCiz9wNiqNg8W5S9CJDFjcrgaIO-e69sP-_YNe-jgQljA-SNuIA5aRrC08k6S0mRwsIhZ2UjGT9Lav-DForR28yRE/?imgmax=800&quot; width=&quot;315&quot; height=&quot;163&quot;&gt;&lt;/a&gt; &lt;p&gt;o Select “Container” from the list of options. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2NkmA2upqNMzrw6Cpbm8W2qOxhzq3XEeqw3CppCwZtd1CS0FJSXABe3STGFNwZ-D_qn8eZ7iWL7SULHZ4dL1jPdJ7d0nya_AnTpIlNUHsvMfeobRLsoC7pK4Z2F5wn-Kay8MekT-dduk/s1600-h/clip_image041%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image041&quot; border=&quot;0&quot; alt=&quot;clip_image041&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQmYDOYbqdesKCiRxMofAwWE1crpEyQ-Nz-DMpejqDPsvzjMdNKRbxHNdBCut-tJoTGVfotGRKBI7bJJnOyKgZ6QPI1ea6PF6W2HbeI0WDK-Bbb4x0XCrlYTAfK7wNKAr9Cd_qeXUa9S4/?imgmax=800&quot; width=&quot;313&quot; height=&quot;269&quot;&gt;&lt;/a&gt; &lt;p&gt;o Enter “Users” in value box. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNObYWzOmx2d_rsXvb2mFPW1CBQhHgerv00ti5Cg4C_HXg77b0m1VuXgahj0vtkHUpo-xaoPaBIPbTgNNHNVBzM-b7xfw2gYgX7xGD2Ih0PBhoSGSxy17b9nLxcZensusz2YX13jIbaaI/s1600-h/clip_image043%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image043&quot; border=&quot;0&quot; alt=&quot;clip_image043&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSJxU0S_EIsBWqA9hMmG_dST0SFbv4QiJ9d2JU2yWCR5ZOTcD2e8tP8GyFuyyZT3K5VrD4oVBcIuxO_y1PGJvuBoMRzrAb1tPUIV7oo6NrMYMpuTbmQtSGiXDNCFwpiEVRIN9x_xueEcc/?imgmax=800&quot; width=&quot;321&quot; height=&quot;275&quot;&gt;&lt;/a&gt; &lt;p&gt;o Click Finish. Now you see “Users” container. &lt;p&gt;o Now, expand the “Users” container from left navigation tree and you will see it is empty.  &lt;p&gt;o Create a user in that “Users” container by right clicking on the surface, from Menu, select New -&amp;gt; Object. &lt;p&gt;o From the “create new object” window select “User”. &lt;p&gt;o In next screen, give the name of the user. &lt;p&gt;o Click Finish. User is created in the “Users” container.  &lt;p&gt;o Before use this user we have to set some properties. &lt;p&gt;§ Right click on user and select “Reset Password”. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFF2NuxcYuordHAhYY0ISbhgdoeGtFQgmh1mgMVB1PK-Sr0vZtzShVH2ELiY62UWvof1N493b80j7fQ-hZ-HPUQUJNny6MmEBGtLk5SUWaNp8Qffx1kpVWAMjBdklrr3P1sYGLODC8qDM/s1600-h/clip_image044%5B4%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image044&quot; border=&quot;0&quot; alt=&quot;clip_image044&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyNIqMuU_TNSjpIdGzEBU-TlSCWfc99eSIhETcu5cxNgFpg1KHm_mLeRGoC8TF1HckngTsKIWv95h6_L6LpWipITrOEOP1QIMIITUL0R3KSBcRVeLpHKHYVsMOS7BAUpBAp-by2KtS2Ng/?imgmax=800&quot; width=&quot;344&quot; height=&quot;154&quot;&gt;&lt;/a&gt; &lt;p&gt;§ After than right click on the user and select “Properties”. &lt;p&gt;§ From the list of properties available to the user, set the property “msDS- UserAccountDisabled” to false. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC36Bj7cXztUUJ6YcESRJOSF_ZB9uAg63wlZcYeE89vcA1nJORxN-JhLH8vcmVM6kT3mkWYRBScCuTnPtRG9YqKewmeM3vV3GNcqIgs_jcE_vkBEt1e_NZ4i8vrN9wEmZ5X-rBIAzVbk4/s1600-h/clip_image046%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image046&quot; border=&quot;0&quot; alt=&quot;clip_image046&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibtzI3-jjrg0hUHsWmDIGb2klG3Kub8-Qbrir_OL1D0td-kDs-VlyMTh-VAkAmCR2rJsJd3QWXBlyxPDLjKTROSkuMP64uvbXpF2FX0O74nvNYHAOKp-q9ZQPnHJYEowYYYdczNzQUS4w/?imgmax=800&quot; width=&quot;312&quot; height=&quot;229&quot;&gt;&lt;/a&gt; &lt;h4&gt;&amp;nbsp;&lt;/h4&gt; &lt;h4&gt;Giving permissions to the service account:&lt;/h4&gt; &lt;p&gt;This is again what we have to consider and never forget. Against any data source whether it could be database, Active Directory, AD-LDS or any, the application in which we tried to connect to these data sources we should allow the service account to grant read access to the data source. So, here also the same thing, we should grant read permissions to the service account of our application where we are using these AD-LDS. For grating permissions, &lt;p&gt;· From the partition, expand find Roles, and then Readers. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3pYELhCsdvzQ-zk-P7E3XPHIJDl0liQIopdnM4X8CEkiMtvEssxd2f6wf1my1dLScPATfqhCPEmJwHhn3teZuCtybZMEnNphnSo5aNPqZfeOpmPiMcBczaGgR6XHDOOhPaGNA9M29wpY/s1600-h/clip_image048%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image048&quot; border=&quot;0&quot; alt=&quot;clip_image048&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkKuS9Y0NpR5BSYs2-pUAgeidIkgtKknKdwHdPxLrU9aa8x897XX_rI5DktWZ0JIm5c0P7VaBqFAOI4svQlWXVWer7gvBajy7tV6hE6wJGuObWfnIqeES-7TBdwGUqfEWxqc_Q0INuyAE/?imgmax=800&quot; width=&quot;329&quot; height=&quot;154&quot;&gt;&lt;/a&gt; &lt;p&gt;· From properties, you will find a property named “member”. &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9QsfItXVx9aCxgHP3M8ZUUVXkG26uWg69FPqQtcF4E-qY0UahNNT7uwGzimTcZwL4PGi7YW_OInwB2mjYjGoCvTKlGPm_IIyG-Ce-_79qi060SYtSHVdCWZx8mNviNVH8fKxJ_NsvvPM/s1600-h/clip_image050%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image050&quot; border=&quot;0&quot; alt=&quot;clip_image050&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjDB-XXo-t1hBScDEMUJW9FKax1c6nKli-HofNSKzxX76Ut5-EEL7dwpJOa7zTcnup15uW0Ek-qepN8EiNzV5MBDj-69yayN95CuAQok6U-uSSMllCHEr6ATzL5WVR274UM_OQAXPvzU8/?imgmax=800&quot; width=&quot;122&quot; height=&quot;290&quot;&gt;&lt;/a&gt; &lt;p&gt;· Click on “Member” and select “Edit”.  &lt;p&gt;· Add users from this window. If user is windows account user then select the option “Add Windows Account” and choose user and save your changes. &lt;p&gt;OK. We have completed successfully installing, configuring and creating users in the AD-LDS instance. Now, we can use this AD-LDS in our applications to access user information or authentication. It is very to manage, create or replicate the instances in AD-LDS as like ADAM.  &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; For the AD-LDS the path we have to use in our applications to connect to a specific instance is, &lt;a href=&quot;ldap://server-name/partition-name&quot;&gt;LDAP://server-name/partition-name&lt;/a&gt; &lt;p&gt;In our example, if we assume the server name is SP2010-AD then it will be &lt;p&gt;LDAP://SP2010-AD/CN=Customers,DC=Northwind,DC=Extranet   </content><link rel='replies' type='application/atom+xml' href='http://sharepoint-2010-world.blogspot.com/feeds/4052754363891363342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/installing-active-directory-lightweight.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/4052754363891363342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/976508730495432249/posts/default/4052754363891363342'/><link rel='alternate' type='text/html' href='http://sharepoint-2010-world.blogspot.com/2011/03/installing-active-directory-lightweight.html' title='Installing the Active Directory Lightweight Directory Services [AD-LDS]'/><author><name>Unknown</name><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/AVvXsEjbhnlH6No56B3CaiQN-iwlPJx2m6MlGuP5bNyyXNmSqYnTqHyba9YspGFzuXL1cylc8TqgBo_f6CU1p1rVnMlWWutKJkJsMKT5fyjq24zRZuBijSs1N7A0Dk85nQVdJCOjn58Mv2evaS0/s72-c?imgmax=800" height="72" width="72"/><thr:total>3</thr:total></entry></feed>