Thursday, 19 December 2013

Web config file

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
    <appSettings/>
    <connectionStrings>
        <add name="dreamprojectConnectionString" connectionString="Data Source=SANYOG-PC;Initial Catalog=dreamproject;Integrated Security=True" providerName="System.Data.SqlClient"/>
        <!--<add name="dreamprojectConnectionString" connectionString="Data Source=STUDENT-4730FA6;Initial Catalog=dreamproject;Integrated Security=True"
   providerName="System.Data.SqlClient" />-->
        <!--<add name="dreamprojectConnectionString" connectionString="Data Source=KUMAR-476B1ED82;Initial Catalog=dreamproject;Integrated Security=True"
     providerName="System.Data.SqlClient" />-->
        <!--<add name="dreamprojectConnectionString" connectionString="Data Source=PL11\SQLEXPRESS;Initial Catalog=dreamproject;Integrated Security=True"
  providerName="System.Data.SqlClient" />-->
    </connectionStrings>
    <system.web>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
            <controls>
                <add src="~/UserControl/usr_ctl_footer.ascx" tagName="Foot" tagPrefix="ctl"/>
                <add src="~/UserControl/usr_ctl_header.ascx" tagName="Head" tagPrefix="ctl"/>
                <add src="~/usercontrol/WebUserControl.ascx" tagName="he" tagPrefix="ct"/>
            </controls>
        </pages>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <compilation debug="true" targetFramework="4.0">
        </compilation>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows"/>
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.  -->
        <customErrors mode="RemoteOnly" defaultRedirect="test1.aspx">
            <error statusCode="403" redirect="NoAccess.htm"/>
            <error statusCode="404" redirect="FileNotFound.htm"/>
        </customErrors>
    </system.web>
</configuration>

No comments:

Post a Comment