VS2008
There are 2 entries for the tag
VS2008
What if you need to dynamically change the Body Background-image based on whether the Page IsPostback? You have a CSS Stylesheet for the page, and that Stylesheet has a background-image defined for the body tag. So what is the [workaround]? You first must define the body tag on the page as a server control. Then you can access the body control via code in your page: 1: protected void Page_Load(object sender, EventArgs e) 2: { 3: if (!IsPostBack) 4: { 5: var rnd = new Random(); 6: // the background ......
I am using VS2008 in a Vista Ultimate environment. Here is the complete error message: ”Exception Details: System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the “<configuration>\<... section in the application configuration.” NONE of that was the problem! ......