Referencing Keys
You can add a string of copy say :
a Copyright Message or global email addres for the site solution by declaring in the web.config a global string variable key like so :
< configuration &rt;
< appSetings &rt;
< add key=”Copyright” value=”" &rt;
< /appSetings &rt;
- - then on the Page_Load code behind on your .aspx page reference it by declaring ::
string copyright= ConfigurationManager.AppSettings[”copyright”];
then have a label control that it assigned to it so the data is injected into it… here:
Info.Label.Text = copyright + “, html here” list other globals here;
there ya have a global XML string injected into your page…
Digg it | Save to del.icio.us | Netscape | Reddit | Stumble It!
- - - - - S P O N S O R I N G A D V E R T I S M E N T - - - - -