Posted by : Sudhir Chekuri Sunday, 26 February 2017

web.config


<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />

  </system.web>
<connectionStrings>
<add name="BiggerrConnection" connectionString="Data Source=ADMIN\MSSQLSERVERNEW;Initial Catalog=Biggerr;Integrated Security=True;" />
</connectionStrings>
</configuration>


Using connections string in code


SqlConnection con = new SqlConnection( WebConfigurationManager.ConnectionStrings["BiggerrConnection"].ConnectionString);


{ 1 comments ... read them below or add one }

  1. Just wish to say your article is as astounding. The clearness in your submit is just excellent and i can suppose you’re knowledgeable in this subject.

    AngularJS Certification Training in Chennai

    ReplyDelete

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -