Saturday, May 31, 2014

Configuration Setting For Form Authentication In web.config file In Asp.net

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>

    <add name="ConnStr" connectionString="Data Source = inayat; Initial Catalog = HR; User ID=sa; Password=jan5562"/>
    <add name="xyz" connectionString="xyz"/>
  </connectionStrings>

 
<system.web>
<compilation debug="true" targetFramework="4.0"/>
    <authentication mode="Forms">
      <forms defaultUrl="AddEmployee.aspx" loginUrl="login.aspx">
        <credentials passwordFormat="Clear">
          <!--<user name="Admin" password="test"/>-->
       
        </credentials>
     
      </forms>
   
    </authentication>
</system.web>
</configuration>

0 comments:

Post a Comment