Thursday, May 12, 2011

Creating the connection string in web.config and accessing in asp.net 2.0

<add connectionString ="server=TAKEPOC;user id=sa;password=sa;database=TRTE" name ="CTL" providerName ="System.Data.SqlClient"/>

ConfigurationManager.ConnectionStrings("CTL").ToString()

No comments:

Post a Comment