Click here for Vacation Photos

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 herelist 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 - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Post your thoughts in the Comments ...
Not signed up to share your ideas & thoughts?

It’s free and easy to collaborate!
Click Here to begin

Click Here to earn money for reviewing this post

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Leave a Reply

You must be logged in to post a comment.