Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to write SQL connectionString on web.config file using c#?

How to write SQL connectionString on web.config file using c#?

Scheduled Pinned Locked Moved C#
csharpdatabasetutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sacr83
    wrote on last edited by
    #1

    Friendz, 1)How to write SQL connectionString on web.config file using c#? 1)And how i call that connectionString to my webApplication?

    CheeN

    C S 2 Replies Last reply
    0
    • S sacr83

      Friendz, 1)How to write SQL connectionString on web.config file using c#? 1)And how i call that connectionString to my webApplication?

      CheeN

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Both your items are numbered one.... You should ask ASP.NEt questions in the ASP,NET forum. Also, there are plenty of articles on this site, I'm sure that there are some that cover this, connection strings are the canonical example for using config files.

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      P 1 Reply Last reply
      0
      • C Christian Graus

        Both your items are numbered one.... You should ask ASP.NEt questions in the ASP,NET forum. Also, there are plenty of articles on this site, I'm sure that there are some that cover this, connection strings are the canonical example for using config files.

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Christian Graus wrote:

        Both your items are numbered one....

        Oops :laugh:

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        1 Reply Last reply
        0
        • S sacr83

          Friendz, 1)How to write SQL connectionString on web.config file using c#? 1)And how i call that connectionString to my webApplication?

          CheeN

          S Offline
          S Offline
          sumit7034
          wrote on last edited by
          #4

          http://www.alperguc.com/blog/dotnet/aspnet-webconfig-ms-access-connection-string/[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups