Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Read Web.Config value in asp page

Reply
Thread Tools

Read Web.Config value in asp page

 
 
Prasanta
Guest
Posts: n/a
 
      07-09-2008
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
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      07-09-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)
 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-10-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"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send value from a asp.net page to a regular asp page.. msnews ASP .Net 7 05-24-2005 09:55 PM
how to get value from page.asp?value=myvalue Mike Brearley ASP General 1 05-14-2004 07:54 PM
RE: read cookies come from asp page in asp.net page =?Utf-8?B?QXRpbGEgQmFybGFz?= ASP .Net 0 02-27-2004 12:01 AM
Re: read cookies come from asp page in asp.net page Eric Lawrence [MSFT] ASP .Net 0 02-26-2004 09:36 PM
Calling a html page from an asp page then returning to the next statement on the original asp page Chuck ASP General 0 07-05-2003 02:00 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57