Read Web.Config value in asp page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prasanta

    Read Web.Config value in asp page

    Hello,

    I have an ASP site. Now we need to define some setting on config file.
    on basis of that value asp page control will switch visible true or
    false. everything is working if I hard coded the value but only need
    to know how could I read the config file value in asp page.



    Thanks
    Prasanta
  • Evertjan.

    #2
    Re: Read Web.Config value in asp page

    Prasanta wrote on 09 jul 2008 in microsoft.publi c.inetserver.as p.general:
    I have an ASP site. Now we need to define some setting on config file.
    on basis of that value asp page control will switch visible true or
    false. everything is working if I hard coded the value but only need
    to know how could I read the config file value in asp page.
    "Config file"???????

    Show your code. [Only the pert that is applicable, please]

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Bob Barrows [MVP]

      #3
      Re: Read Web.Config value in asp page

      Prasanta wrote:
      Hello,
      >
      I have an ASP site. Now we need to define some setting on config file.
      on basis of that value asp page control will switch visible true or
      false. everything is working if I hard coded the value but only need
      to know how could I read the config file value in asp page.
      >
      There was no way for you to know it (except maybe by browsing through some
      of the previous questions in this newsgroup before posting yours - always a
      recommended practice) , but this is a classic (COM-based) asp newsgroup.
      ASP.Net bears very little resemblance to classic ASP so, while you may be
      lucky enough to find a dotnet-knowledgeable person here who can answer your
      question, you can eliminate the luck factor by posting your question to a
      group where those dotnet-knowledgeable people hang out. I suggest
      microsoft.publi c.dotnet.framew ork.aspnet or the forums at www.asp.net.
      --
      Microsoft MVP - ASP/ASP.NET
      Please reply to the newsgroup. This email account is my spam trap so I
      don't check it very often. If you must reply off-line, then remove the
      "NO SPAM"


      Comment

      Working...