Author: MrSmith2004 | Posted on: 4/2/2010 1:17:44 AM | Views : 268

Greetings.  I have a question regarding the cs files.  So, I get that each content page has its own cs file.  But I want some stuff to be universal.  For instance, pulling the user's current username (
HttpContext.Current.User.Identity.Name.Substring(11);
)... do I have to do this on each page each time I want to reference it or is there some way to reference it once and apply to a variable that can be referenced throughout any page?  For this particular example, I guess the reasoning is that every page is currently based on who's signed into Windows when they access the page.  But maybe, in the future, we'll want to change it to something else.  It would be nice to only have to change on point of reference to make that assigned variable then point to the new standard.
Thank you for your time and information.
...

Go to the complete details ...