Results 1 to 4 of 4

Thread: Web.config and class

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    9

    Web.config and class

    What is the difference when giving the connection in Web.config and inside a class


  2. #2
    Junior Member
    Join Date
    Sep 2007
    Answers
    15

    Re: Web.config and class

    Connection string exposed in web.config file is accesible in all application clases and can be shared.


  3. #3
    Contributing Member
    Join Date
    Jun 2007
    Answers
    65

    Re: Web.config and class

    Quote Originally Posted by raghulvarma View Post
    What is the difference when giving the connection in Web.config and inside a class
    There are various advantages of putting a connectino in Web.config like
    1. You can easily change the connectionstring in an application by changing just a single file ie. web.config

    2. To get the connectionstring u hav no need to create an instance of any object which otherwise could consume a bit of memory

    There can be many others as well...

    ---V V---
    Vikas Vaidya
    (If u found the quote useful then pls mark it as thanks)


  4. #4
    Junior Member
    Join Date
    Dec 2007
    Answers
    9

    Re: Web.config and class

    Thanks 4 ur reply


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact