<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9163776378155726278</id><updated>2011-12-05T02:49:55.035-08:00</updated><category term='OOP'/><category term='Master Page'/><category term='LINQ'/><category term='Life'/><category term='Cursor'/><category term='ASP.Net'/><category term='Sinhala Songs'/><category term='Ajax Controls'/><category term='Design Principles'/><category term='Love'/><category term='SQL Server'/><title type='text'>Oshadha's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-1845467473818418163</id><published>2011-06-08T20:33:00.000-07:00</published><updated>2011-06-08T22:26:53.861-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Design Principles'/><title type='text'>Common Design Principles</title><content type='html'>There are number of common design principles that, like design patterns, best practice over the years to build maintainable software.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'm up to describe some widely used design principles though out the post.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Following common principle are extracted by the same book that I mentioned before (&lt;b&gt;Professional ASP.Net Design Patterns - Scott Millet&lt;/b&gt;).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Principles are as follows:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Keep It Simple Stupid (KISS)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;One common issue in software programming is  over-complicating a solution. So main concern of this principle is keep the code simple but not simplistic. Eventually this will avoid unnecessary complexities.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Don't Repeat yourself (DRY)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Main concern of this principle is to avoid the repetition. In other words this is all about abstracting out the common functionalities into a single place. &lt;/div&gt;&lt;div&gt;Ex: If there is a price calculation method in a system. It should lay in a single place there. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Tell Don't Ask&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;The Tell, Don’t Ask principle is closely aligned with encapsulation and the assigning &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;of responsibilities&lt;/span&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; to their correct classes.&lt;/span&gt; This principle state that you should tell the &lt;/div&gt;&lt;/div&gt;&lt;div&gt;object to what actions that you want to perform instead of checking the state of an object and performing the action by yourself. This avoids the tight coupling between classes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;You Ain’t Gonna Need It (YAGNI)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;This is about putting of any features that are going to add having the idea in mind, that you gonna need this later. A design methodology that adheres to YAGNI is test-driven development (TDD). In brief TDD is all about righting the code only to pass the test.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Separation of Concerns (SoC)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;SoC is the process of dissecting a piece of software into distinct features that encapsulate unique behavior and data that can be used by other classes. Generally, a concern represents a feature or behavior of&lt;b&gt; &lt;/b&gt;a class. The act of separating a program into discrete responsibilities significantly increases code reuse, maintenance, and testability.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So this is it.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-1845467473818418163?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/1845467473818418163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=1845467473818418163' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/1845467473818418163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/1845467473818418163'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2011/06/common-design-principles.html' title='Common Design Principles'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-4972070563226418019</id><published>2011-03-08T06:33:00.000-08:00</published><updated>2011-06-08T22:29:40.127-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Design Principles'/><category scheme='http://www.blogger.com/atom/ns#' term='OOP'/><title type='text'>S.O.L.I.D Design Principles</title><content type='html'>&lt;div&gt;Hold on!!! Before this please read the &lt;a href="http://oshadhaj.blogspot.com/2011/06/common-design-principles.html"&gt;common design principle&lt;/a&gt; post.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;After a long time thought of writing a post. Actually these days I'm reading a book which is written by Scott Millet and the name of the book is "Professional ASP.Net Design Patterns". I can guarantee that this book give you a great knowledge on design stuffs.&lt;br /&gt;&lt;br /&gt;Most of us are bit lazy to read things, so I thought of posting the things that I got form it. This is like the cream of what I got.&lt;br /&gt;&lt;br /&gt;I'll start it with the S.O.L.I.D design principles:&lt;br /&gt;&lt;br /&gt;The term S.O.L.I.D. comes from the initial letter of each of the five principles that were collected in the book Agile Principles, Patterns, and Practices in C# by Robert C. Martin, or Uncle Bob to his friends. Simply this is a collection of best practices for object-oriented design.&lt;br /&gt;&lt;br /&gt;Following will explain all the principles:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Single Responsibility Principle&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;(SRP)&lt;/span&gt;&lt;br /&gt;This principle is closely aligned with a common design principle called Separation of Concerns. It says that every object should have one reason to change and single focus of responsibility. By applying this principle, you avoid the problem of monolithic class design. At the same time this principle gives readability and maintenance for a system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Open-Closed Principle (OCP)&lt;/span&gt;&lt;br /&gt;This principle says that classes should be open for extension and closed for modification, in that you should be able to add features and extend a class without it changing its internal behavior. In  other words it avoids the possibilities of braking the system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Liskov Substitution Principe (LSP)&lt;/span&gt;&lt;br /&gt;The LSP says that you should be able to use any derived class in place of a base class and have it behave in the same manner without modification. In other words derived classes must be substitutable for their base classes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Interface Segregation Principle (ISP)&lt;/span&gt;&lt;br /&gt;The ISP is all about splitting the methods of a contract into groups of responsibility and assigning&lt;br /&gt;interfaces to these groups to prevent a client from needing to implement one large interface and a host of methods that they do not use. The purpose behind this is so that classes wanting to use the same interfaces only need to implement a specific set of methods as opposed to a monolithic interface of methods.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Dependency Inversion Principle (DIP)&lt;/span&gt;&lt;br /&gt;The DIP is all about isolating your classes from concrete implementations and having them depend on abstract classes or interfaces. It promotes the mantra of coding to an interface rather than an implementation, which increases flexibility within a system by ensuring you are not tightly coupled to one implementation.&lt;br /&gt;&lt;br /&gt;This is about the S.O.L.I.D design principles. I hope this will you guys on the long way of design someday.&lt;br /&gt;&lt;br /&gt;This is the first one of a series of articles. I'll be back with design patterns.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-4972070563226418019?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/4972070563226418019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=4972070563226418019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/4972070563226418019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/4972070563226418019'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2011/03/solid-design-principles.html' title='S.O.L.I.D Design Principles'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-4129862481279290610</id><published>2010-02-02T02:28:00.001-08:00</published><updated>2010-02-15T21:22:46.598-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINQ'/><title type='text'>LINQ : Query expression vs Lambda Expression</title><content type='html'>&lt;p&gt;All the time I was using LINQ on projects I was wondering whether there is a performance difference between query expression and lambda expression.&lt;/p&gt;  &lt;p&gt;So I decided to dig into it. I wanted to examine MSIL for both of these situations. I wrote small class which has two methods. One is using query expression and the other one is using lambda.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_2RfqIi-lwVI/S2f-RqtuVTI/AAAAAAAAAJc/tRPN4uxOmxw/s1600-h/code%5B3%5D.jpg"&gt;&lt;img title="code" style="border: 0px none ; display: block; float: none; margin-left: auto; margin-right: auto;" alt="code" src="http://lh4.ggpht.com/_2RfqIi-lwVI/S2f-SOFA2qI/AAAAAAAAAJg/1NEszalyJio/code_thumb%5B1%5D.jpg?imgmax=800" border="0" height="213" width="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;I complied this code and got the dll and view the MSIL using ildasm.exe. This following picture will show you the MSIL of GetFirst() method.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_2RfqIi-lwVI/S2f-SsEO71I/AAAAAAAAAJk/LzEh163oqvs/s1600-h/m1%5B5%5D.jpg"&gt;&lt;img title="m1" style="border: 0px none ; display: inline;" alt="m1" src="http://lh3.ggpht.com/_2RfqIi-lwVI/S2f-TVwWwCI/AAAAAAAAAJo/OBsRl4Bomgw/m1_thumb%5B3%5D.jpg?imgmax=800" border="0" height="106" width="421" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;And this following picture will show you the MSIL of the GetSecond() method.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_2RfqIi-lwVI/S2f-T2H3ErI/AAAAAAAAAJs/tc4jyvnDL1Q/s1600-h/m2%5B6%5D.jpg"&gt;&lt;img title="m2" style="border: 0px none ; display: inline;" alt="m2" src="http://lh3.ggpht.com/_2RfqIi-lwVI/S2f-Us5lFHI/AAAAAAAAAJw/SRHD5MoAxkk/m2_thumb%5B4%5D.jpg?imgmax=800" border="0" height="112" width="419" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Yes!!! you can see that there is no different between these 2 MSIL. Will there be a performance difference???&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-4129862481279290610?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/4129862481279290610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=4129862481279290610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/4129862481279290610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/4129862481279290610'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2010/02/linq-query-expression-vs-lamda.html' title='LINQ : Query expression vs Lambda Expression'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_2RfqIi-lwVI/S2f-SOFA2qI/AAAAAAAAAJg/1NEszalyJio/s72-c/code_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-6386052148311116555</id><published>2009-10-16T01:25:00.000-07:00</published><updated>2009-10-16T02:38:21.890-07:00</updated><title type='text'>reCAPTCHA for ASP.NET</title><content type='html'>I was looking for this reCAPTCHA recently and this is what I found on my way. Hope this will help you in someway. To get an idea about reCAPTCHA watch the following video&lt;br /&gt;&lt;br /&gt;&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:9d907133-593e-4a90-9577-6300f2983e86" class="wlWriterEditableSmartContent"&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Aszl5avDtek&amp;hl=en&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Aszl5avDtek&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and the following link will explain you how to implement it in your ASP.net web site.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://recaptcha.net/plugins/aspnet/"&gt;reCAPTCHA for ASP.NET&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-6386052148311116555?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/6386052148311116555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=6386052148311116555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/6386052148311116555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/6386052148311116555'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/10/recaptcha-for-aspnet.html' title='reCAPTCHA for ASP.NET'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-8942625663240904456</id><published>2009-07-06T22:43:00.000-07:00</published><updated>2009-07-06T22:52:44.901-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sinhala Songs'/><title type='text'>Mihidum Dumaraye ( Kolapata helunu etha nimnaye) -  Kasun Kalhara</title><content type='html'>You can find this song on this link &lt;br /&gt;http://www.elakiri.com/forum/showpost.php?p=3006516&amp;postcount=18&lt;br /&gt;&lt;br /&gt;I was trying to find this and I finally found it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-8942625663240904456?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/8942625663240904456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=8942625663240904456' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/8942625663240904456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/8942625663240904456'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/07/mihidum-dumaraye-kolapata-helunu-etha.html' title='Mihidum Dumaraye ( Kolapata helunu etha nimnaye) -  Kasun Kalhara'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-7633135091833617526</id><published>2009-06-17T03:03:00.000-07:00</published><updated>2009-06-18T00:24:23.041-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><category scheme='http://www.blogger.com/atom/ns#' term='Love'/><title type='text'>You and Me..</title><content type='html'>Cool breeze wraps around…….&lt;br /&gt;Slight showers of tiny drops&lt;br /&gt;Eager to kiss the rosy petals……&lt;br /&gt;Green smiles at the drizzle…….&lt;br /&gt;And the golden beams illuminated…&lt;br /&gt;Craft a gorgeous little world&lt;br /&gt;Of hopes and dreams…..&lt;br /&gt;It’s &lt;strong&gt;You &lt;/strong&gt;and &lt;strong&gt;Me&lt;/strong&gt;………..&lt;br /&gt;Only both of us play the adoring role&lt;br /&gt;In our devoted&lt;br /&gt;Story of &lt;strong&gt;Love&lt;/strong&gt;…………&lt;br /&gt;&lt;br /&gt;By Thilini©&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-7633135091833617526?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/7633135091833617526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=7633135091833617526' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/7633135091833617526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/7633135091833617526'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/06/cool-breeze-wraps-around.html' title='You and Me..'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-5210791038644670311</id><published>2009-06-17T02:54:00.000-07:00</published><updated>2009-06-18T00:24:12.759-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>Dream</title><content type='html'>Red and blue green and yellow,&lt;br /&gt;Gorgeous picture was painted,&lt;br /&gt;In the vast sky of thoughts,&lt;br /&gt;Hills and Dews, Wings and hopes,&lt;br /&gt;Added extra brightness,&lt;br /&gt;To the beautiful scenery of thoughts.&lt;br /&gt;Buds and flowers, Mist and breeze,&lt;br /&gt;Brought cool fresh intimacy.&lt;br /&gt;Fairy queen was lost in,&lt;br /&gt;One big dream.&lt;br /&gt;Fresh and sweet, pretty and cool,&lt;br /&gt;Little world of dreams,&lt;br /&gt;Could never call Her out.&lt;br /&gt;She was enjoying,&lt;br /&gt;The beautiful dream,&lt;br /&gt;For years……………….&lt;br /&gt;And years………………&lt;br /&gt;Smiles and laughter; &lt;br /&gt;The bosom friends,&lt;br /&gt;Who shared Her joys,&lt;br /&gt;Never let the Fairy Queen,&lt;br /&gt;See no tears or sorrows.&lt;br /&gt;She was totally lost in &lt;br /&gt;The dream fairy world, &lt;br /&gt;Of which She couldn’t  &lt;br /&gt;See the harsh reality. &lt;br /&gt;But, revealing the truth of Life, &lt;br /&gt;Gloomy shadows started,&lt;br /&gt;Palling on the sweet little painting.&lt;br /&gt;Red, blue colors were fading,&lt;br /&gt;Dark shadows were capturing,&lt;br /&gt;The gorgeous dream of the fairy queen,&lt;br /&gt;Bright shiny dream was leaving,&lt;br /&gt;Wet little drops of tears,&lt;br /&gt;Started shining at the edge &lt;br /&gt;Of Her little eye lids.&lt;br /&gt;But still, She is struggling,&lt;br /&gt;To survive in Her cute pretty dream,&lt;br /&gt;Of which She never wants to come out.&lt;br /&gt;No matter what sort of a dream it is,&lt;br /&gt;Be with innocent hearts forever, &lt;br /&gt;Whose only happiness is a dream. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;By THILINI©&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-5210791038644670311?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/5210791038644670311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=5210791038644670311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/5210791038644670311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/5210791038644670311'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/06/dream.html' title='Dream'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-2313868624446402830</id><published>2009-06-16T22:06:00.000-07:00</published><updated>2009-06-18T00:23:57.779-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><category scheme='http://www.blogger.com/atom/ns#' term='Love'/><title type='text'>Not for you</title><content type='html'>Golden Beams of ruthless radiance&lt;br /&gt;Calling out a drop less drought&lt;br /&gt;No damp neither live adjoining&lt;br /&gt;Magical spell of kismet&lt;br /&gt;Looking upon the rainbow lights&lt;br /&gt;It was the same ruthless radiance&lt;br /&gt;But comes up with rainbow shadows&lt;br /&gt;That is for your name……………&lt;br /&gt;Tiny tear droplets Shower cool smiles&lt;br /&gt;That is for your name……………&lt;br /&gt;Each second and each minute&lt;br /&gt;Live and full to the utmost ecstasy&lt;br /&gt;That is for your name……………&lt;br /&gt;Sky catching castles of dreams &lt;br /&gt;And floating clouds to put your name on it&lt;br /&gt;The magical world of ecstasy&lt;br /&gt;Live and true to the fullest&lt;br /&gt;That is coz of you and only you&lt;br /&gt;But……………………………&lt;br /&gt;At the end of the day&lt;br /&gt;Waken up but shattered dreams&lt;br /&gt;Realization but broken promises&lt;br /&gt;Soothing comfort but endless pain&lt;br /&gt;Thousand words but trapped up voice&lt;br /&gt;Tiny droplets but awful warmth&lt;br /&gt;Sleepless dream but a dreadful nightmare&lt;br /&gt;&lt;br /&gt;By Thilini©&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-2313868624446402830?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/2313868624446402830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=2313868624446402830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/2313868624446402830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/2313868624446402830'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/06/ruthless-radiance.html' title='Not for you'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-7379946170837687463</id><published>2009-03-26T03:35:00.000-07:00</published><updated>2009-06-26T20:11:05.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cursor'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Exit a T-SQL Cursor When Condition is met</title><content type='html'>Have you ever wanted to exit from a cursor when a condition is met? I wanted to do it. So this is how I did it.&lt;br /&gt;&lt;br /&gt;DECLARE @Field1 AS INT&lt;br /&gt;DECLARE @Field2 AS INT&lt;br /&gt;&lt;br /&gt;DECLARE CursorName CURSOR READ_ONLY&lt;br /&gt;FOR&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;Field1,&lt;br /&gt;Field2&lt;br /&gt;FROM TableName&lt;br /&gt;&lt;br /&gt;OPEN CursorName&lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM CursorName&lt;br /&gt;INTO @Field1, @Field2&lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;IF @Field1 = 1&lt;br /&gt;BEGIN&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;GOTO ENDCURSOR&lt;/span&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM CursorName&lt;br /&gt;INTO @Field1, @Field2&lt;br /&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ENDCURSOR:&lt;/span&gt;&lt;br /&gt;CLOSE CursorName&lt;br /&gt;DEALLOCATE CursorName&lt;br /&gt;&lt;br /&gt;I have set my fonts to bold where you want to notice.&lt;br /&gt;&lt;br /&gt;So that's all I hope you will get something out of it and it is true that this is not a big deal. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-7379946170837687463?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/7379946170837687463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=7379946170837687463' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/7379946170837687463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/7379946170837687463'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/03/exit-cursor-when-condition-is-met.html' title='Exit a T-SQL Cursor When Condition is met'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-5774542348161347496</id><published>2009-02-05T20:30:00.000-08:00</published><updated>2009-08-04T02:06:46.316-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax Controls'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>Populate Modal popup data which is bind to a link button - ASP.net</title><content type='html'>I wanted to do a POC to my client to show modal popup functionality. So I did a simple page with one Button and a TextBox. That Button is responsible to popup the modal window. On that ModalPopup I implemented a search mechanism. I used Girdview control to show the search result.&lt;br /&gt;&lt;br /&gt;I wanted to populate the id value of that search result which was binded to a link button. This gridview and the text box and button was in a AJAX update panel control. I did this because I wanted to have the smothness of the UI.&lt;br /&gt;&lt;br /&gt;Now I met a new problem. Because I wanted to get that value out of that LinkButton control and show it in a TextBox control which was out of the  ModalPopup.&lt;br /&gt;&lt;br /&gt;So what I did was, I  just assign that LinkButton's text property to a HiddenField and I used a JavaScript function to populate that HiddenField value the TextBox.&lt;br /&gt;&lt;br /&gt;As you all know we need a Panel control to show our ModalPopup. This is gonna be a &amp;lt;div&amp;gt; on the HTML. So I used the &lt;em&gt;onblur &lt;/em&gt;event to call my JavaScript function.&lt;br /&gt;&lt;br /&gt;So my problem is solved. :D&lt;br /&gt;&lt;br /&gt;I think this will help you all one day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-5774542348161347496?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/5774542348161347496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=5774542348161347496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/5774542348161347496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/5774542348161347496'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2009/02/populate-model-popup-data-which-is-bind.html' title='Populate Modal popup data which is bind to a link button - ASP.net'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-4235098704536844451</id><published>2008-11-16T01:36:00.000-08:00</published><updated>2009-06-26T20:15:32.201-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>Programmatically add the META tags to an ASP.NET page</title><content type='html'>&lt;p&gt;Do you want to programmatically add the META tags to an ASP.NET page? You can try to the below code:&lt;/p&gt;&lt;pre class="csharpcode"&gt;HtmlMeta metaDesc = &lt;span class="kwrd"&gt;new&lt;/span&gt; HtmlMeta();&lt;br /&gt;metaDesc.Name = &lt;span class="str"&gt;"description"&lt;/span&gt;;&lt;br /&gt;metaDesc.Content = &lt;span class="str"&gt;"Your Description goes here"&lt;/span&gt;;&lt;br /&gt;Page.Header.Controls.Add(metaDesc);&lt;br /&gt;&lt;br /&gt;HtmlMeta metaKey = &lt;span class="kwrd"&gt;new&lt;/span&gt; HtmlMeta();&lt;br /&gt;metaKey.Name = &lt;span class="str"&gt;"keywords"&lt;/span&gt;;&lt;br /&gt;metaKey.Content = &lt;span class="str"&gt;"Your keywords here"&lt;/span&gt;;&lt;br /&gt;Page.Header.Controls.Add(metaKey);&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-4235098704536844451?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/4235098704536844451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=4235098704536844451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/4235098704536844451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/4235098704536844451'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/11/programmatically-add-meta-tags-to.html' title='Programmatically add the META tags to an ASP.NET page'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-7869976678237423524</id><published>2008-11-06T20:17:00.000-08:00</published><updated>2009-06-26T20:16:57.329-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>Adding a separator image to ASP.Net Menu Control</title><content type='html'>This what I did to add a separator to ASP.Net menu. I used Web.sitemap to bind the data to menu control. This how Web.sitemap looks like.&lt;br /&gt;&lt;br /&gt;&amp;lt;sitemap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"&gt;&lt;br /&gt;&amp;lt;sitemapnode&gt;&lt;br /&gt;    &amp;lt;sitemapnode url="~/Pages/DatingHome.aspx" title="Home" description=""              separatorImageUrl="../../Images/but_blueSlice.jpg"&gt;&lt;br /&gt;&amp;lt;sitemapnode url="~/Pages/Inbox.aspx" title="Inbox" description=""      separatorImageUrl="../../Images/but_blueSlice.jpg"&gt;&lt;br /&gt;&amp;lt;/sitemapnode&gt;&lt;br /&gt;&amp;lt;/sitemapnode&gt;&lt;br /&gt;&lt;br /&gt;This &lt;span style="font-weight: bold;"&gt;separatorImageUrl &lt;/span&gt;will tell you the image path of the separator. This event handler will do the rest of it.&lt;br /&gt;&lt;br /&gt;protected void Menu2_MenuItemDataBound(object sender, System.Web.UI.WebControls.MenuEventArgs e)&lt;br /&gt;{&lt;br /&gt;SiteMapNode smNode = (SiteMapNode)e.Item.DataItem;&lt;br /&gt;&lt;br /&gt;if (smNode["seperatorImageUrl"] != null)&lt;br /&gt;    e.Item.SeparatorImageUrl = smNode["seperatorImageUrl"];&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This is it. Hope you all have something to get from it. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-7869976678237423524?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/7869976678237423524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=7869976678237423524' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/7869976678237423524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/7869976678237423524'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/11/adding-sparator-image-to-aspnet-menu.html' title='Adding a separator image to ASP.Net Menu Control'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-1995931778626300419</id><published>2008-10-20T05:28:00.000-07:00</published><updated>2009-08-04T02:07:11.271-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Master Page'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>Dynamically Setting Master Page Body OnLoad Event script from a Child Page - ASP.net</title><content type='html'>I wanted to dynamically set master page body &lt;span style="font-weight: bold;"&gt;onLoad &lt;/span&gt;event and I was searching the web for a solution. This link helped to find me the solution. :)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://forums.asp.net/p/1310519/2584110.aspx"&gt;http://forums.asp.net/p/1310519/2584110.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-1995931778626300419?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/1995931778626300419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=1995931778626300419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/1995931778626300419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/1995931778626300419'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/10/dynamically-setting-master-page-body.html' title='Dynamically Setting Master Page Body OnLoad Event script from a Child Page - ASP.net'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-8744374052322085754</id><published>2008-10-09T09:16:00.000-07:00</published><updated>2011-06-13T22:27:03.301-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>How to configure SQL Server Session State with Custom Database</title><content type='html'>&lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span lang="EN-GB" &gt;There are two steps got to follow to enable the SQL Server Session state to work&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span lang="EN-GB" &gt;&lt;br /&gt;1. Configuring the database to support the SQL Server Session state.&lt;br /&gt;2. Configuring your application to use SQL Server Session state.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span lang="EN-GB"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-weight: bold;" &gt;1. Configuring the database to support the SQL Server Session state.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;b style=""&gt;&lt;span lang="EN-GB" &gt;&lt;o:p&gt; &lt;span class="Apple-style-span" style="font-weight: normal;"&gt;.Net framework has a tool aspnet_regsql which you can use to add the table and stored procedure to support SQL Server Session state. You can find this tool in the following folder.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span lang="EN-GB" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;b style=""&gt;&lt;span lang="EN-GB" &gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ aspnet_regsql.exe&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span class="Apple-style-span" &gt;You can run this exe from window command prompt or you can directly run from SDK Command prompt.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span lang="EN-GB" &gt; Executing the following command enables SQL Server Session state for a database server named local and store it in a custom database called CustomSessionDB.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;aspnet_regsql -C "Data Source=local;User Id=sa; Password=Sql2005" -ssadd -sstype c -d CustomSessionDB&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;b style=""&gt;&lt;span lang="EN-GB"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-weight: normal;" &gt;Executing this command creates a new database named CustomSessionDB that contains both the tables and stored procedures for storing Session state.&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;b style=""&gt;&lt;span lang="EN-GB"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;" &gt;2. Configuring your application to use SQL Server Session state.&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;b style=""&gt;&lt;span lang="EN-GB"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;" &gt;To Configuring your application to use SQL Server Session state change the session state session as follows:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;span class="Apple-style-span" &gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"&gt;&amp;lt;&lt;span&gt;sessionState&lt;/span&gt; &lt;span&gt;mode&lt;/span&gt;="&lt;/span&gt;&lt;span style="font-size:12;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"&gt;SQLServer" &lt;span style="color:red;"&gt;sqlConnectionString&lt;/span&gt;="data source=local;user id=sa;password=Sql2005;database=CustomSessionDB&lt;strongpassword&gt;" &lt;span style="color:red;"&gt;timeout&lt;/span&gt;="30" &lt;span style="color:red;"&gt;allowCustomSqlDatabase&lt;/span&gt; &lt;/strongpassword&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;" lang="EN-GB"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"&gt;"true"&lt;/span&gt;&lt;span style="font-size:12;"&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="Instructions" style="margin-left: 0.5in; text-align: left;" align="left"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-8744374052322085754?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/8744374052322085754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=8744374052322085754' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/8744374052322085754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/8744374052322085754'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/10/how-to-configure-sql-server-session.html' title='How to configure SQL Server Session State with Custom Database'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-6143946812237461028</id><published>2008-08-15T04:05:00.000-07:00</published><updated>2009-06-26T20:18:25.534-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Simulate Table Lock situation using a Select statement - SQL Server 2005</title><content type='html'>Today I wanted simulate a table lock situation in my database using a select statement. It was bit hard for me to do it. I was searching it in web, but couldn't find useful thing. May be I didn't do it in right way. ;)&lt;br /&gt;&lt;br /&gt;Anyway I could do it. This is how I did it.&lt;br /&gt;&lt;br /&gt;You can write your SQL statement with &lt;span style="font-style: italic; font-weight: bold;"&gt;(TABLOCKX)&lt;/span&gt; at the end of SQL statement.&lt;br /&gt;&lt;br /&gt;ex: &lt;span style="font-style: italic; font-weight: bold;"&gt;Select * From table_name (TABLOCKX)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I assume you all know how to do the rest of it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-6143946812237461028?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/6143946812237461028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=6143946812237461028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/6143946812237461028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/6143946812237461028'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/08/simulate-table-lock-using-select.html' title='Simulate Table Lock situation using a Select statement - SQL Server 2005'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-1574781348386906720</id><published>2008-07-22T03:01:00.000-07:00</published><updated>2009-06-26T20:18:39.470-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>How to use DataBinder.Eval in HyperLink NavigationUrl - ASP.net</title><content type='html'>I wanted to append page Url with DataBinder.Eval value in ASP.NET hyperlink control on ASP.NET HTML source. I was trying it using many ways and also search for resources on web but I could not find any useful thing.&lt;br /&gt;&lt;br /&gt;I thought this will help u guys to get an idea about appending two strings. Solution as follows.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span&gt;&amp;lt;asp:HyperLink ID="customerHyperLink" runat="server" &lt;/span&gt;&lt;br /&gt;&lt;span&gt;                                          Text= '&lt;%# DataBinder.Eval(Container.DataItem, "Name") %&gt;' &lt;span style="font-weight: bold;"&gt;NavigateUrl='&lt;%# "~/Pages/YourPage.aspx?id=" + DataBinder.Eval(Container.DataItem, "id") %&gt;'&lt;/span&gt;&gt;&amp;lt;/asp:HyperLink&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;                                   You can see how I have appended these two value in  &lt;span style="font-weight: bold;"&gt;NavigateUrl &lt;/span&gt;property.&lt;br /&gt;&lt;br /&gt;Hope some one will get the advantage of this post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-1574781348386906720?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/1574781348386906720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=1574781348386906720' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/1574781348386906720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/1574781348386906720'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/07/how-to-use-databindereval-in-hyperlink.html' title='How to use DataBinder.Eval in HyperLink NavigationUrl - ASP.net'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-8860087836951828273</id><published>2008-07-17T21:32:00.000-07:00</published><updated>2009-06-26T20:18:57.260-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C# .NET</title><content type='html'>These days I was so busy to find how to Implement form based authentication in my ASP.net application. I was looking for a resource that I can use on web. I found some and most of them are not that easy to understand. So I though to write an article so then any one can read and get the basic idea from it.&lt;br /&gt;&lt;br /&gt;I will first explain what is my scenario. I have my own database table to keep user credentials. So I wanted to use it to authenticate the users who are trying to log in.&lt;br /&gt;&lt;br /&gt;This has nothing more than configuring your Web.config and writing few codes authenticate the user.&lt;br /&gt;&lt;br /&gt;If you have your own database table to keep user credential, obviously you have a method written to authenticate. We can use this method to validate user and based on the results of this method you can do the authentication part.&lt;br /&gt;&lt;br /&gt;These are the configuration lines that you have to put in to our Web.config.&lt;br /&gt;&lt;blockquote&gt;&amp;lt;authentication mode="Forms"&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;authentication mode="Forms"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;       &amp;lt;forms loginurl="Login.aspx"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&amp;lt;/authentication&gt;&lt;br /&gt;&lt;/blockquote&gt;This part in the Web.config will help you to say that you are going to use form authentication and go to the URL in &lt;span style="font-weight: bold;"&gt;loginUrl &lt;/span&gt;attribute if the user not authenticated.&lt;br /&gt;&lt;br /&gt;If you want to check this authentication part for all the pages except Login.aspx. You can simply add following part to the Web.config and it will do the job.&lt;br /&gt;&lt;blockquote style="font-weight: bold;"&gt;&amp;lt;authorization&gt;&lt;br /&gt;&amp;lt;deny users="?"&gt;&lt;br /&gt;&amp;lt;allow users="*"&gt;&lt;br /&gt;&amp;lt;/allow&gt;&amp;lt;/deny&gt;&amp;lt;/authorization&gt;&lt;/blockquote&gt;This &lt;span style="font-weight: bold;"&gt;&lt;allow users="*"&gt; &lt;/allow&gt;&lt;/span&gt;tells to allow all users who are authenticated and &lt;span style="font-weight: bold;"&gt;&lt;deny users="?"&gt; &lt;/deny&gt;&lt;/span&gt;will tell to deny those who are not authenticated. Simple as that.&lt;br /&gt;&lt;br /&gt;I know what you are thinking now. What if i don't  wanna check authentication for all pages. It is also simple.  You have to tell Web.config that these are pages that I want to authenticate. You can ignore the Web.config part I explained you just now and this following part for each page that you want to authenticate.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;location path="Default.aspx"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    &amp;lt;system.web&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;      &amp;lt;authorization&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;        &amp;lt;deny users="?"&gt;&amp;lt;/deny&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;/authorization&gt;&lt;br /&gt;&amp;lt;/system.web&gt;&lt;br /&gt;                                    &amp;lt;/location&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;      &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/blockquote&gt;So know you know what is happening here. It will not allow any unauthenticated users to access this page. Like wise you have to add this part for the all pages you want to authenticate.&lt;br /&gt;&lt;br /&gt;Now time has come to do coding.&lt;br /&gt;&lt;br /&gt;Choose the place that you going to authenticate your users. Think you have method called &lt;span style="font-weight: bold;"&gt;ValidateUser(string userName, string password)&lt;/span&gt; which returns a boolean value as result.&lt;br /&gt;&lt;br /&gt;If you get this result as true that mean user is authenticated and it is good to go. Before we proceed to other pages we have do some stuffs to let the application know that this user has authenticated.&lt;br /&gt;&lt;br /&gt;This can be done in 2 ways. First one will do the job through one line of code. Second will do the job with few lines of code but it give you more control than the first one.&lt;br /&gt;&lt;br /&gt;First way:&lt;br /&gt;&lt;blockquote&gt;&lt;pre class="code"&gt;if (ValidateUser(txtUserName.Value,txtUserPass.Value))&lt;br /&gt;FormsAuthentication.RedirectFromLoginPage(txtUserName.Value, chkPersistCookie.Checked);&lt;br /&gt;else&lt;br /&gt;Response.Redirect("logon.aspx", true);&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;Do not get confused with these names I have given. You can use your control names here.&lt;br /&gt;and this &lt;span style="font-weight: bold;"&gt;chkPersistCookie.Checked&lt;/span&gt; part will tell whether you want to remember this user and log him/her directly without asking anything next time.&lt;br /&gt;&lt;br /&gt;Second way:&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;blockquote&gt;if (ValidateUser(txtUserName.Value,txtUserPass.Value) )&lt;br /&gt;{&lt;br /&gt;FormsAuthenticationTicket tkt;&lt;br /&gt;string cookiestr;&lt;br /&gt;HttpCookie ck;&lt;br /&gt;&lt;br /&gt;tkt = new FormsAuthenticationTicket(1, txtUserName.Value, DateTime.Now,&lt;br /&gt;DateTime.Now.AddMinutes(30), chkPersistCookie.Checked, "your custom data");&lt;br /&gt;cookiestr = FormsAuthentication.Encrypt(tkt);&lt;br /&gt;&lt;br /&gt;ck = new HttpCookie(FormsAuthentication.FormsCookieName, cookiestr);&lt;br /&gt;&lt;br /&gt;if (chkPersistCookie.Checked)&lt;br /&gt; ck.Expires=tkt.Expiration;&lt;br /&gt;&lt;br /&gt;ck.Path = FormsAuthentication.FormsCookiePath;&lt;br /&gt;Response.Cookies.Add(ck);&lt;br /&gt;&lt;br /&gt;string strRedirect;&lt;br /&gt;strRedirect = Request["ReturnUrl"];&lt;br /&gt;if (strRedirect==null)&lt;br /&gt;      strRedirect = "default.aspx";&lt;br /&gt;   Response.Redirect(strRedirect, true);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;Response.Redirect("logon.aspx", true);&lt;/blockquote&gt;&lt;br /&gt;&lt;/pre&gt;That's all. Now you are good to go. Your site if fully authenticated now.&lt;br /&gt;&lt;br /&gt;I think you got some thing out of this. Please let me know if you want to know something  more.(Comments)&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-8860087836951828273?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/8860087836951828273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=8860087836951828273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/8860087836951828273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/8860087836951828273'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/07/how-to-implement-forms-based.html' title='How To Implement Forms-Based Authentication in Your ASP.NET Application by Using C# .NET'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-2941637730663844265</id><published>2008-07-12T01:17:00.000-07:00</published><updated>2009-06-26T20:20:51.323-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><title type='text'>How To: Use Forms Authentication with Active Directory in ASP.NET 2.0</title><content type='html'>This post will show you how to use forms authentication with Microsoft Active Directory directory service by using the &lt;b&gt;ActiveDirectoryMembershipProvider&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;To create a Web application with a logon page&lt;/b&gt; &lt;/p&gt;&lt;ol type="1"&gt;&lt;li&gt;Start Microsoft Visual Studio® .NET development system, and then create a new ASP.NET Web site called FormsAuthAD.&lt;/li&gt;&lt;li&gt;Use Solution Explorer to add a new Web form to the site called Login.aspx.&lt;/li&gt;&lt;li&gt;Add a &lt;b&gt;Login&lt;/b&gt; control to Login.aspx. &lt;p&gt;By default, this control displays a user name field, a password field, and a &lt;b&gt;Remember me next time&lt;/b&gt; checkbox. If the user selects this checkbox, a persistent authentication cookie is created and the user's browser stores the cookie on the user's computer. &lt;/p&gt;&lt;p&gt;For security reasons, you should avoid creating persistent authentication cookies; therefore, disable this feature by setting the &lt;b&gt;DisplayRememberMe&lt;/b&gt; property of the &lt;b&gt;Login&lt;/b&gt; control to &lt;b&gt;false&lt;/b&gt;.  &lt;/p&gt;&lt;p&gt;Note that when a user clicks &lt;b&gt;Login&lt;/b&gt; on the &lt;b&gt;Login&lt;/b&gt; control, it automatically validates the user by calling the configured membership provider, creates a forms authentication ticket, and then redirects the user back to the page he or she originally requested. &lt;/p&gt;&lt;/li&gt;&lt;li&gt;If you are working in a test environment and have a service account with permissions to create new user accounts in Active Directory, add a &lt;b&gt;CreateUserWizard&lt;/b&gt; control beneath the &lt;b&gt;Login&lt;/b&gt; control so that users can register with your site and create new accounts. &lt;blockquote class="dtBlock"&gt; &lt;b class="le"&gt;Note&lt;/b&gt;   If you do not have the permissions to create new users, you will need to test authentication with an existing account.&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;You have to config your Web.Config with following settings&lt;br /&gt;&lt;br /&gt;Locate the &lt;&lt;b&gt;authentication&lt;/b&gt;&gt; element, and then change the &lt;b&gt;mode&lt;/b&gt; attribute to &lt;b&gt;Forms&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Add the following &lt;&lt;b&gt;forms&lt;/b&gt;&gt; element as a child of the &lt;&lt;b&gt;authentication&lt;/b&gt;&gt; element, and then set the &lt;b&gt;name&lt;/b&gt; and &lt;b&gt;timeout&lt;/b&gt; attributes as shown in the following example&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C02%5Cclip_filelist.xml"&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authentication&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;mode&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;Forms&lt;/span&gt;"&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;forms&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;.ADAuthCookie&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;timeout&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;10&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authentication&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authorization&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;Add the following &lt;&lt;b&gt;authorization&lt;/b&gt;&gt; element beneath the &lt;&lt;b&gt;authentication&lt;/b&gt;&gt; element in your Web.config file.&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C04%5Cclip_filelist.xml"&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;    &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authorization&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;deny&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;users&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;?&lt;/span&gt;"&lt;span style="color:blue;"&gt; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt; &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;allow&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;users&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;*&lt;/span&gt;"&lt;span style="color:blue;"&gt; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;&lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authorization&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;Add   configure ASP.Net for membership&lt;br /&gt;&lt;br /&gt;In the Web.config file, add a connection string similar to the following, and modify it so that it points to your Active Directory users container.&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C06%5Cclip_filelist.xml"&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;connectionStrings&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;add&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;ADConnectionString&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;connectionString&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;LDAP://domainname&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;&lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;connectionStrings&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;b style="font-weight: bold;" class="le"&gt;&lt;/b&gt;&lt;span style="font-weight: bold;"&gt;Note   &lt;/span&gt;The connection string shown above connects to the user's container within a domain called &lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style="color:blue;"&gt;domainname&lt;/span&gt;&lt;/span&gt;. Update this string to point to the relevant users container within your domain.&lt;br /&gt;&lt;br /&gt;Add a &lt;&lt;b&gt;membership&lt;/b&gt;&gt; element after your &lt;&lt;b&gt;authorization&lt;/b&gt;&gt; element, as shown in the following example.&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C08%5Cclip_filelist.xml"&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;    &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml"&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;membership&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;defaultProvider&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;MyADMembershipProvider&lt;/span&gt;"&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;providers&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;add&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;MyADMembershipProvider&lt;/span&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;type&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&lt;/span&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;connectionStringName&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;ADConnectionString&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;attributeMapUsername&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;sAMAccountName&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;providers&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;membership&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;&lt;br /&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 class="dtH1"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-weight: bold;"&gt;Test Forms Authentication&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Add a Page_Load Event Handler&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add the following code to the Page_Load event handler of your Default.aspx page. This page should be displayed only to authenticated users. To prove that this is the case, the code displays information obtained from the forms authentication ticket that is issued to authenticated users.&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C11%5Cclip_filelist.xml"&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;protected&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color:teal;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"Hello, "&lt;/span&gt; + Server.HtmlEncode(User.Identity.Name));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;FormsIdentity&lt;/span&gt; id = (&lt;span style="color:teal;"&gt;FormsIdentity&lt;/span&gt;)User.Identity;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;span style="color:teal;"&gt;FormsAuthenticationTicket&lt;/span&gt; ticket = id.Ticket;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;p&gt;TicketName: "&lt;/p&gt;&lt;/span&gt; + ticket.Name);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;Cookie Path: "&lt;/span&gt; + ticket.CookiePath);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;Ticket Expiration: "&lt;/span&gt; +&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;                        &lt;/span&gt;ticket.Expiration.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;Expired: "&lt;/span&gt; + ticket.Expired.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;Persistent: "&lt;/span&gt; + ticket.IsPersistent.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;IssueDate: "&lt;/span&gt; + ticket.IssueDate.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;UserData: "&lt;/span&gt; + ticket.UserData);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;        &lt;/span&gt;Response.Write(&lt;span style="color:maroon;"&gt;"&lt;br /&gt;Version: "&lt;/span&gt; + ticket.Version.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style=""&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;To logon as an existing user&lt;/b&gt; &lt;/p&gt;&lt;ol type="1"&gt;&lt;li&gt;Browse to your application's Default.aspx page.  &lt;p&gt;The earlier configuration of the &lt;&lt;b&gt;authorization&lt;/b&gt;&gt; element prevents unauthenticated users from accessing any pages in your application. They are redirected to your Login.aspx page. &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Enter valid credentials for an account in your domain, and then click &lt;b&gt;Login&lt;/b&gt;. &lt;p&gt;The format of the user name depends on the &lt;b&gt;attributeMapUsername&lt;/b&gt; attribute of the &lt;&lt;b&gt;membership&lt;/b&gt;&gt; element. The default configuration for the &lt;b&gt;ActiveDirectoryMembershipProvider&lt;/b&gt; uses User Principal Names (UPNs) for name mapping as shown in the following example.  &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;attributeMapUsername="userPrincipalName"&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Because of this, all user names must have the format &lt;b&gt;UserName@DomainName&lt;/b&gt;; for example: mary@testdomain.com or steve@testdomain.com.  &lt;/p&gt;&lt;p&gt;You can change the name mapping so that it uses simple user name format by setting the following attribute in the Membership Provider configuration in the Web.config file.&lt;/p&gt;&lt;p&gt;attributeMapUsername="sAMAccountName"&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;This is how it is look like when you done with Web.Config.&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Coshadhaj%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C12%5Cclip_filelist.xml"&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;&lt;xml&gt;&lt;/xml&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;&lt;xml&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;span style="color:blue;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/xml&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;!--&lt;/span&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;    &lt;/span&gt;Note: As an alternative to hand editing this file you can use the &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;    &lt;/span&gt;web admin tool to configure settings for your application. Use&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;    &lt;/span&gt;the Website-&gt;Asp.Net Configuration option in Visual Studio.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;    &lt;/span&gt;A full list of settings and comments can be found in &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;    &lt;/span&gt;machine.config.comments usually located in &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;    &lt;/span&gt;\Windows\Microsoft.Net\Framework\v2.x\Config &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:blue;"&gt;--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;configuration&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;appSettings&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;connectionStrings&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;add&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;ADConnectionString&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;connectionString&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;LDAP://domainname&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;connectionStrings&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;system.web&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;/span&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;Set compilation debug="true" to insert debugging &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;symbols into the compiled page. Because this &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;affects performance, set this value to true only &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;during development.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:blue;"&gt;--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;compilation&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;debug&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;true&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;The &lt;authentication&gt; section enables configuration &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;of the security authentication mode used by &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;ASP.NET to identify an incoming user. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:blue;"&gt;--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authentication&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;mode&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;Forms&lt;/span&gt;"&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;forms&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;.ADAuthCookie&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;timeout&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;10&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authentication&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authorization&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;deny&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;users&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;?&lt;/span&gt;"&lt;span style="color:blue;"&gt; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;allow&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;users&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;*&lt;/span&gt;"&lt;span style="color:blue;"&gt; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;authorization&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;membership&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;defaultProvider&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;MyADMembershipProvider&lt;/span&gt;"&lt;span style="color:blue;"&gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;                  &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;providers&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;add&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;name&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;MyADMembershipProvider&lt;/span&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;type&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&lt;/span&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:red;"   &gt;connectionStringName&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;"&lt;span style="color:blue;"&gt;ADConnectionString&lt;/span&gt;"&lt;span style="color:blue;"&gt; &lt;/span&gt;&lt;span style="color:red;"&gt;attributeMapUsername&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;"&lt;span style="color:blue;"&gt;sAMAccountName&lt;/span&gt;"&lt;span style="color:blue;"&gt;/&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;providers&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;membership&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;!--&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;The &lt;customerrors&gt; section enables configuration &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;of what to do if/when an unhandled error occurs &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;during the execution of a request. Specifically, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;it enables developers to configure html error pages &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;to be displayed in place of a error stack trace.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;customerrors mode="RemoteOnly" defaultredirect="GenericErrorPage.htm"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;error statuscode="403" redirect="NoAccess.htm"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;error statuscode="404" redirect="FileNotFound.htm"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;/customerrors&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:green;"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=" Courier New&amp;quot;; font-family:&amp;quot;font-size:10pt;color:blue;"&gt;--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;system.web&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&lt;!--&lt;/span--&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:maroon;"   &gt;configuration&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:blue;"   &gt;&gt;&lt;/span&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;    &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-2941637730663844265?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/2941637730663844265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=2941637730663844265' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/2941637730663844265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/2941637730663844265'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/07/how-to-use-forms-authentication-with.html' title='How To: Use Forms Authentication with Active Directory in ASP.NET 2.0'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9163776378155726278.post-6741319184619048207</id><published>2008-07-04T03:42:00.000-07:00</published><updated>2009-06-26T20:21:08.745-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Life'/><title type='text'>What is life</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Do we know what is it really?&lt;br /&gt;&lt;br /&gt;Most of the ppl don't know... We all think that we understand it and also think that we know the truth.. Do we? Are u sure ur feelings telling u the truth? No it is not.&lt;br /&gt;&lt;br /&gt;Real truth is not at anywhere else. It's inside u. If some have the courage to start to find it and keep that courage until u find it.. That person is a winner.. All others are losers, no matter what ever they have achieved in their so called &lt;span style="font-weight: bold;"&gt;life&lt;/span&gt;.....&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9163776378155726278-6741319184619048207?l=oshadhaj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oshadhaj.blogspot.com/feeds/6741319184619048207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9163776378155726278&amp;postID=6741319184619048207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/6741319184619048207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9163776378155726278/posts/default/6741319184619048207'/><link rel='alternate' type='text/html' href='http://oshadhaj.blogspot.com/2008/07/what-is-life.html' title='What is life'/><author><name>Oshadha</name><uri>http://www.blogger.com/profile/17103190853426951768</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://3.bp.blogspot.com/-C1SQBCrKeSY/TrdX47ZS7mI/AAAAAAAAAPI/Po6WJPU-CHw/s220/me.png'/></author><thr:total>0</thr:total></entry></feed>
