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. Store Objects in Web.config

Store Objects in Web.config

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 3 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.
  • T Offline
    T Offline
    Tarik Guney
    wrote on last edited by
    #1

    Hi, Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do? Thanks... Regards...

    C A 2 Replies Last reply
    0
    • T Tarik Guney

      Hi, Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do? Thanks... Regards...

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      atarikg wrote:

      Can we store objects such as Oledbconnection in web.config ?

      You can store the connection string in the config.


      Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

      T 1 Reply Last reply
      0
      • C Colin Angus Mackay

        atarikg wrote:

        Can we store objects such as Oledbconnection in web.config ?

        You can store the connection string in the config.


        Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

        T Offline
        T Offline
        Tarik Guney
        wrote on last edited by
        #3

        so there is no way to store objects in web.config right ?

        C 1 Reply Last reply
        0
        • T Tarik Guney

          so there is no way to store objects in web.config right ?

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          atarikg wrote:

          so there is no way to store objects in web.config right ?

          You could serialise an object to XML, which you could then store in the config file. But it isn't designed for that. My advice is to store the connection string in the config file.


          Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

          1 Reply Last reply
          0
          • T Tarik Guney

            Hi, Can we store objects such as Oledbconnection in web.config ? If we can do,then how can we do? Thanks... Regards...

            A Offline
            A Offline
            Arun Immanuel
            wrote on last edited by
            #5

            Or U can use binary serialization and store it in another file.

            Regards, Arun Kumar.A

            T 1 Reply Last reply
            0
            • A Arun Immanuel

              Or U can use binary serialization and store it in another file.

              Regards, Arun Kumar.A

              T Offline
              T Offline
              Tarik Guney
              wrote on last edited by
              #6

              thank you so much :)

              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