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. Web config?

Web config?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
6 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.
  • K Offline
    K Offline
    Karthick_gc
    wrote on last edited by
    #1

    How to write data source connection in Web config file?

    N K V 3 Replies Last reply
    0
    • K Karthick_gc

      How to write data source connection in Web config file?

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Karthick_gc wrote:

      data source connection in Web config file?

      What do you mean by that? Please buy a book and learn ASP.NET.

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • K Karthick_gc

        How to write data source connection in Web config file?

        K Offline
        K Offline
        Kunal Pawar
        wrote on last edited by
        #3

        Do u mean you want to write connection string, u can check site http://www.connectionstrings.com

        1 Reply Last reply
        0
        • K Karthick_gc

          How to write data source connection in Web config file?

          V Offline
          V Offline
          Vimalsoft Pty Ltd
          wrote on last edited by
          #4

          Before you Post in a Forum, you must first Google. Here is your Answer http://www.codeproject.com/KB/tips/StoringConstring.aspx[^] Hope it helps

          Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za www.ITS.co.za

          K 1 Reply Last reply
          0
          • V Vimalsoft Pty Ltd

            Before you Post in a Forum, you must first Google. Here is your Answer http://www.codeproject.com/KB/tips/StoringConstring.aspx[^] Hope it helps

            Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za www.ITS.co.za

            K Offline
            K Offline
            Karthick_gc
            wrote on last edited by
            #5

            There is no Application config file. There s a Web config file Like this. In this how to add connection coding in Connection String Tag? ; <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings/> ;

            V 1 Reply Last reply
            0
            • K Karthick_gc

              There is no Application config file. There s a Web config file Like this. In this how to add connection coding in Connection String Tag? ; <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings/> ;

              V Offline
              V Offline
              Vimalsoft Pty Ltd
              wrote on last edited by
              #6

              For Web.Config and App.Config is the Same nothing Changes. See her Below

              name="NorthwindConnectionString" 
              connectionString="Data Source=serverName;Initial 
              Catalog=Northwind;Persist Security Info=True;User 
              ID=userName;Password=password"
              providerName="System.Data.SqlClient"
              

              />

              System.Configuration.Configuration rootWebConfig =
              System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/MyWebSiteRoot");
              System.Configuration.ConnectionStringSettings connString;
              if (0 < rootWebConfig.ConnectionStrings.ConnectionStrings.Count)
              {
              connString =
              rootWebConfig.ConnectionStrings.ConnectionStrings["NorthwindConnectionString"];
              if (null != connString)
              Console.WriteLine("Northwind connection string = \"{0}\"",
              connString.ConnectionString);
              else
              Console.WriteLine("No Northwind connection string");
              }

              Am Sorry about the Formating , i forgot how to turn on the "<" here. Hope this Helps

              Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za www.ITS.co.za

              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