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

Re: Read Web.Config value in asp page by Evertjan

Evertjan
Wed Jul 09 14:04:40 CDT 2008

Prasanta wrote on 09 jul 2008 in microsoft.public.inetserver.asp.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)

Re: Read Web.Config value in asp page by Bob

Bob
Wed Jul 09 19:03:58 CDT 2008

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.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"