<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.NET_Tutorial%2FAuthentication_Authorization%2FForm_Based</id>
		<title>ASP.NET Tutorial/Authentication Authorization/Form Based - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.NET_Tutorial%2FAuthentication_Authorization%2FForm_Based"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/Authentication_Authorization/Form_Based&amp;action=history"/>
		<updated>2026-04-30T02:52:19Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.NET_Tutorial/Authentication_Authorization/Form_Based&amp;diff=2861&amp;oldid=prev</id>
		<title> в 15:30, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/Authentication_Authorization/Form_Based&amp;diff=2861&amp;oldid=prev"/>
				<updated>2010-05-26T15:30:57Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:30, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.NET_Tutorial/Authentication_Authorization/Form_Based&amp;diff=2862&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.NET_Tutorial/Authentication_Authorization/Form_Based&amp;diff=2862&amp;oldid=prev"/>
				<updated>2010-05-26T11:57:18Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Automatically Redirecting a User to the Referring Page==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
If you request the Login.aspx page directly, after you successfully log in, you are redirected to the Default.aspx page.&lt;br /&gt;
If you add the Login control to a page other than the Login.aspx page, you need to set the Login control&amp;quot;s DestinationPageUrl property. &lt;br /&gt;
When you successfully log in, you are redirected to the URL represented by this property. &lt;br /&gt;
If you don&amp;quot;t supply a value for the DestinationPageUrl property, the same page is reloaded.&lt;br /&gt;
Automatically Hiding the Login Control from Authenticated Users&lt;br /&gt;
The easiest way to add a Login control to all the pages in an application is to take advantage of Master Pages. &lt;br /&gt;
You can change the layout of the Login control by modifying the Login control&amp;quot;s Orientation property. &lt;br /&gt;
If you set this property to the value Horizontal, then the Username and Password text boxes are rendered in the same row.&lt;br /&gt;
If you include a Login control in all your pages, you should also modify the Login control&amp;quot;s VisibleWhenLoggedIn property. &lt;br /&gt;
If you set this property to the value False, then the Login control is not displayed when a user has already authenticated.&lt;br /&gt;
File: LoginMaster.master&lt;br /&gt;
&amp;lt;%@ Master Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;My Website&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div class=&amp;quot;content&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Login&lt;br /&gt;
        id=&amp;quot;Login1&amp;quot;&lt;br /&gt;
        Orientation=&amp;quot;Horizontal&amp;quot;&lt;br /&gt;
        VisibleWhenLoggedIn=&amp;quot;false&amp;quot;&lt;br /&gt;
        DisplayRememberMe=&amp;quot;false&amp;quot;&lt;br /&gt;
        TitleText=&amp;quot;&amp;quot;&lt;br /&gt;
        CssClass=&amp;quot;login&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;hr /&amp;gt;&lt;br /&gt;
        &amp;lt;asp:contentplaceholder&lt;br /&gt;
            id=&amp;quot;ContentPlaceHolder1&amp;quot;&lt;br /&gt;
            runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;/asp:contentplaceholder&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
File: LoginContent.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; MasterPageFile=&amp;quot;~/LoginMaster.master&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;asp:Content&lt;br /&gt;
    ID=&amp;quot;Content1&amp;quot;&lt;br /&gt;
    ContentPlaceHolderID=&amp;quot;ContentPlaceHolder1&amp;quot;&lt;br /&gt;
    Runat=&amp;quot;Server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Welcome to our Website!&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;/asp:Content&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Create a new folder in your application named SecretFiles==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
Add the page, File: SecretFiles\Secret.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Secret&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;This Page is Secret!&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, Windows authentication is enabled. &lt;br /&gt;
To use the Login controls, you need enable Forms authentication&lt;br /&gt;
File: Web.Config&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
  &amp;lt;system.web&amp;gt;&lt;br /&gt;
    &amp;lt;authentication mode=&amp;quot;Forms&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, all users have access to all pages in an application. &lt;br /&gt;
If you want to restrict access to the pages in a folder, then you need to configure authorization for the folder.&lt;br /&gt;
Add the following web configuration file to the SecretFiles folder.&lt;br /&gt;
Then anonymous users are prevented from accessing any pages in the folder.&lt;br /&gt;
The single authorization rule here prevents anonymous users from accessing pages in the folder. &lt;br /&gt;
The ? represents anonymous users.&lt;br /&gt;
File: SecretFiles\Web.Config&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
  &amp;lt;system.web&amp;gt;&lt;br /&gt;
    &amp;lt;authorization&amp;gt;&lt;br /&gt;
      &amp;lt;deny users=&amp;quot;?&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/authorization&amp;gt;&lt;br /&gt;
  &amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you attempt to request the Secret.aspx page, then you are redirected to a page named Login.aspx automatically. &lt;br /&gt;
By default, this page must be located in the root of your application.&lt;br /&gt;
The Login.aspx page contains a Login control. &lt;br /&gt;
The Login control automatically generates a login form.&lt;br /&gt;
File: Login.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Login&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Login&lt;br /&gt;
        id=&amp;quot;Login1&amp;quot;&lt;br /&gt;
        CreateUserText=&amp;quot;Register&amp;quot;&lt;br /&gt;
        CreateUserUrl=&amp;quot;~/Register.aspx&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login control includes a CreateUserText and CreateUserUrl property. &lt;br /&gt;
Adding these properties to the Login control causes the control to display a link to a page that enables a new user to register for your application. &lt;br /&gt;
The Login control links to a page named Register.aspx. &lt;br /&gt;
File: Register.aspx&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Register&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:CreateUserWizard&lt;br /&gt;
        id=&amp;quot;CreateUserWizard1&amp;quot;&lt;br /&gt;
        ContinueDestinationPageUrl=&amp;quot;~/SecretFiles/Secret.aspx&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Register.aspx page contains a CreateUserWizard control. &lt;br /&gt;
This control automatically generates a user registration form. &lt;br /&gt;
After you submit the form, a new user is created, and you are redirected back to the Secret.aspx page.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Customizing the Login form==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;head id=&amp;quot;Head1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
        .login&lt;br /&gt;
        {&lt;br /&gt;
            width:250px;&lt;br /&gt;
            font:14px Verdana,Sans-Serif;&lt;br /&gt;
            background-color:lightblue;&lt;br /&gt;
            border:solid 3px black;&lt;br /&gt;
            padding:4px;&lt;br /&gt;
        }&lt;br /&gt;
        .login_title&lt;br /&gt;
        {&lt;br /&gt;
            background-color:darkblue;&lt;br /&gt;
            color:white;&lt;br /&gt;
            font-weight:bold;&lt;br /&gt;
        }&lt;br /&gt;
        .login_instructions&lt;br /&gt;
        {&lt;br /&gt;
            font-size:12px;&lt;br /&gt;
            text-align:left;&lt;br /&gt;
            padding:10px;&lt;br /&gt;
        }&lt;br /&gt;
        .login_button&lt;br /&gt;
        {&lt;br /&gt;
            border:solid 1px black;&lt;br /&gt;
            padding:3px;&lt;br /&gt;
        }&lt;br /&gt;
    &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Show Login&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;asp:Login&lt;br /&gt;
        id=&amp;quot;Login1&amp;quot;&lt;br /&gt;
        InstructionText=&amp;quot;Please log in before&lt;br /&gt;
            accessing the premium section of our Website.&amp;quot;&lt;br /&gt;
        TitleText=&amp;quot;Log In&amp;quot;&lt;br /&gt;
        TextLayout=&amp;quot;TextOnTop&amp;quot;&lt;br /&gt;
        LoginButtonText=&amp;quot;Log In&amp;quot;&lt;br /&gt;
        DisplayRememberMe=&amp;quot;false&amp;quot;&lt;br /&gt;
        CssClass=&amp;quot;login&amp;quot;&lt;br /&gt;
        TitleTextStyle-CssClass=&amp;quot;login_title&amp;quot;&lt;br /&gt;
        InstructionTextStyle-CssClass=&amp;quot;login_instructions&amp;quot;&lt;br /&gt;
        LoginButtonStyle-CssClass=&amp;quot;login_button&amp;quot;&lt;br /&gt;
        Runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Form authentication with backend database==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=&amp;quot;VB&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ Import Namespace=&amp;quot;System.Data&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ Import Namespace=&amp;quot;System.Data.OleDb&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;VB&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
   sub Login(Sender as Object, e as EventArgs) &lt;br /&gt;
      dim intID as integer = 0&lt;br /&gt;
      dim Conn as new OleDbConnection(&amp;quot;Provider=&amp;quot; &amp;amp; _&lt;br /&gt;
            &amp;quot;Microsoft.Jet.OLEDB.4.0;&amp;quot; &amp;amp; _&lt;br /&gt;
            &amp;quot;Data Source=userTable.mdb&amp;quot;)&lt;br /&gt;
      dim objCmd as OleDbCommand = new OleDbCommand _&lt;br /&gt;
         (&amp;quot;SELECT UserID FROM tblUsers WHERE &amp;quot; &amp;amp; _&lt;br /&gt;
         &amp;quot;Username = &amp;quot;&amp;quot; &amp;amp; tbUserName.Text &amp;amp; &amp;quot;&amp;quot; &amp;quot; &amp;amp; _&lt;br /&gt;
         &amp;quot;AND Password = &amp;quot;&amp;quot; &amp;amp; tbPassword.Text &amp;amp; &amp;quot;&amp;quot;&amp;quot;, Conn)&lt;br /&gt;
      dim objReader as OleDbDataReader&lt;br /&gt;
      try&lt;br /&gt;
         objCmd.Connection.Open()&lt;br /&gt;
         objReader = objCmd.ExecuteReader()&lt;br /&gt;
         do while objReader.Read&lt;br /&gt;
            intId = objReader.GetInt32(0).ToString()&lt;br /&gt;
         loop&lt;br /&gt;
      catch ex as OleDbException&lt;br /&gt;
         lblMessage.Text = ex.Message&lt;br /&gt;
      finally&lt;br /&gt;
         objReader.Close()&lt;br /&gt;
         objCmd.Connection.Close()&lt;br /&gt;
      end try&lt;br /&gt;
      if intID &amp;lt;&amp;gt; 0 then&lt;br /&gt;
         FormsAuthentication.SetAuthCookie(intID, false)&lt;br /&gt;
         lblMessage.Text = &amp;quot;Success!&amp;quot;&lt;br /&gt;
      else&lt;br /&gt;
         lblMessage.Text = &amp;quot;Invalid username or password!&amp;quot;&lt;br /&gt;
      end if&lt;br /&gt;
   end sub      &lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&lt;br /&gt;
   &amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;asp:Label id=&amp;quot;lblMessage&amp;quot; runat=&amp;quot;server&amp;quot;/&amp;gt;&lt;br /&gt;
      Username:&lt;br /&gt;
      &amp;lt;asp:Textbox id=&amp;quot;tbUsername&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
      Password:&lt;br /&gt;
      &amp;lt;asp:Textbox id=&amp;quot;tbPassword&amp;quot; TextMode=&amp;quot;password&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;asp:Button id=&amp;quot;Submit&amp;quot; runat=&amp;quot;server&amp;quot; onClick=&amp;quot;Login&amp;quot; text=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
File: Web.Config&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
   &amp;lt;system.web&amp;gt;&lt;br /&gt;
      &amp;lt;authentication mode=&amp;quot;Forms&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;forms name=&amp;quot;AuthCookie&amp;quot; loginUrl=&amp;quot;login.aspx&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/authentication&amp;gt;&lt;br /&gt;
      &amp;lt;authorization&amp;gt; &lt;br /&gt;
         &amp;lt;deny users=&amp;quot;?&amp;quot;/&amp;gt; &lt;br /&gt;
      &amp;lt;/authorization&amp;gt; &lt;br /&gt;
   &amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>