1.How do you change the default.aspx or defualt.html page during runtime. I am trying to give users the ability to change background.
2.How do you change the default.aspx or defualt.html page during runtime from clicking a silverlight button. I am trying to give users the ability to change background.
Can someone point me to a quick tuturial.
Loading
Javeed M ShaikhPosted Oct 26, 2011, 8:26 PM
Look at the following C# Corner article:
http://www.c-sharpcorner.com/UploadFile/munnamax/ThemesSkins04162007044458AM/ThemesSkins.aspx
David SmithPosted Oct 26, 2011, 6:31 PM
Javeed M ShaikhPosted Oct 26, 2011, 9:38 AM
since the body tag is not visible by default to the server code, you can try and add runat="server" and some ID to the body tag like this:
than from the code behind you can try this:
PageBody.Attributes.Add("bgcolor", "yellow"); // to add color as per your need.
Please do not forget to mark "Accepted Answer".