Follow us

Header Ads

Connection String in Asp.Net WebForm

 <?xml version="1.0"?>

<configuration>

  <system.web>

  <!--<sessionState timeout="1"></sessionState>-->

    <compilation debug="true" targetFramework="4.0"/>

  </system.web>

<appSettings>

<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>

</appSettings>

<connectionStrings>

<add name="dbcs" connectionString="Data Source=DTPL\MSSQLSERVERNEW;Initial Catalog=MyDatabase; Timeout=120; Trusted_connection=true" providerName="System.Data.SqlClient"/>

<!--<add name="dbcs" connectionString="Data Source=DTPL;Initial Catalog=MyDatabase; Timeout=120; Trusted_connection=true" providerName="System.Data.SqlClient"/>-->

</connectionStrings>

</configuration>


Post a Comment

0 Comments