Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Read Web.Config value in asp page

Question posted by: Prasanta (Guest) on July 9th, 2008 03:55 PM
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.'s Avatar
Evertjan.
Guest
n/a Posts
July 9th, 2008
07:05 PM
#2

Re: Read Web.Config value in asp page
Prasanta wrote on 09 jul 2008 in microsoft.public.inetserver.asp.general:
Quote:
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)

Bob Barrows [MVP]'s Avatar
Bob Barrows [MVP]
Guest
n/a Posts
July 10th, 2008
12:15 AM
#3

Re: Read Web.Config value in asp page
Prasanta wrote:
Quote:
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.public.dotnet.framework.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"



 
Not the answer you were looking for? Post your question . . .
190,472 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors