Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using configuration variable in the ASPX file
Message
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows Server 2003
Database:
MS SQL Server
Miscellaneous
Thread ID:
01293962
Message ID:
01299446
Views:
20
>Hi everybody,
>
>I see that we can use variables defined in web.config in the cs files like
>
>this.TimeZone = short.Parse(System.Configuration.ConfigurationSettings.AppSettings["TimeZone"]);
>
>My question is - is it possible to use these variables in the ASPX files? Or any other way to use variables defined somewhere you can suggest?
>
>Thanks a lot in advance.

To be precise on my question - I have an ASPX file with the following:
<a class="bottomnav" href="actual url?pid=47">About Us</a>
Instead of the actual url I want to put the variable defined in some text file (say, in web.config). How should I do it?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform