RE: How to use a variable in web.config
From: Ibrahim Shameeque (IbrahimShameeque_at_discussions.microsoft.com)
Date: 08/12/04
- Next message: Saber: "Re: URL security problem"
- Previous message: Stan Sainte-Rose: "Dynamic Table Question"
- In reply to: ad: "How to use a variable in web.config"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 05:29:02 -0700
Hi,
Store the value in a variable in code behind. Something like
Public serverval as string = configurationsettings.appsettings("configval")
Now in java script call a function which has something like
var val=<%=serverval %>;
windows.alert(val);
Call this function after the body load event. Thanks - Ibrahim
"ad" wrote:
> I have a Asp.Net project, it use JScript to program the client's script
> I declare a variable in web.config like:
> <add key="CompanyName" value="Big Salse company" />
>
> How can I use the CompanyName in my jscript?
>
>
>
>
>
- Next message: Saber: "Re: URL security problem"
- Previous message: Stan Sainte-Rose: "Dynamic Table Question"
- In reply to: ad: "How to use a variable in web.config"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|