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. Web Development
  3. ASP.NET
  4. Where is the connection string in asp.net example?

Where is the connection string in asp.net example?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiohelptutorial
4 Posts 2 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.
  • H Offline
    H Offline
    hmanhha
    wrote on last edited by
    #1

    Hi all.When I create a new Website project in Visual Studio. IT creat the .mdf file in the project. I don't know where is the configuation of the the connection string to change it. I have look at the Web.config but I can't see. Please help me.I am the beginer.Please....

    H A 2 Replies Last reply
    0
    • H hmanhha

      Hi all.When I create a new Website project in Visual Studio. IT creat the .mdf file in the project. I don't know where is the configuation of the the connection string to change it. I have look at the Web.config but I can't see. Please help me.I am the beginer.Please....

      H Offline
      H Offline
      hmanhha
      wrote on last edited by
      #2

      When I register a user i see the connectionstring in the webconfig But when I hit Login i don't know what table they manage. If I want to add code to Registratrion.aspx to force user add a department how to do. Please I am a new users

      1 Reply Last reply
      0
      • H hmanhha

        Hi all.When I create a new Website project in Visual Studio. IT creat the .mdf file in the project. I don't know where is the configuation of the the connection string to change it. I have look at the Web.config but I can't see. Please help me.I am the beginer.Please....

        A Offline
        A Offline
        aarif moh shaikh
        wrote on last edited by
        #3

        To know Connection String to connect Backend to frontend. right click on your .mdf file ----> go to properties ----> a property window will open (here is a property name connection String where u get your connection String) new copy this connection string and paste it in web.config file connection String element :) :)

        H 1 Reply Last reply
        0
        • A aarif moh shaikh

          To know Connection String to connect Backend to frontend. right click on your .mdf file ----> go to properties ----> a property window will open (here is a property name connection String where u get your connection String) new copy this connection string and paste it in web.config file connection String element :) :)

          H Offline
          H Offline
          hmanhha
          wrote on last edited by
          #4

          OK, I know the connection string now.When i use login control it use default connection string.How can I Change to tell the login control "Don't connect to this database, connect to my database".

          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