Change BG color on Client side and store it till browser close.
-
I have 2 buttons.on each button click i want to change the back color of page and want to display this color till browser closes.How can i achive this.
koushiksaha wrote:
I have 2 buttons.on each button click i want to change the back color of page and want to display this color till browser closes.
I didn't get your point,:confused::confused: can you be more specific ? Thanks in advance!!!
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
I have 2 buttons.on each button click i want to change the back color of page and want to display this color till browser closes.How can i achive this.
-
I have 2 buttons.on each button click i want to change the back color of page and want to display this color till browser closes.How can i achive this.
Create an event handler on your buttons click. Set the body element to be runat="server". On the click events, do a Body.BackgroundColor = Color.TheColorYouWant. With the body set to runat="server", it will store the information in the page viewstate. It will keep that color until you change it again.
______________________ Dominic Goulet FroggedSoft My blog
-
Create an event handler on your buttons click. Set the body element to be runat="server". On the click events, do a Body.BackgroundColor = Color.TheColorYouWant. With the body set to runat="server", it will store the information in the page viewstate. It will keep that color until you change it again.
______________________ Dominic Goulet FroggedSoft My blog
-
koushiksaha wrote:
I have 2 buttons.on each button click i want to change the back color of page and want to display this color till browser closes.
I didn't get your point,:confused::confused: can you be more specific ? Thanks in advance!!!
cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder
-
I want to change the color at client side.On server side it changes ..there is no problem.But my requirment is on client side.
Okay so you just have to use javascript to achieve that.
document.body.style.backgroundColor = '#000000'; // black
______________________ Dominic Goulet FroggedSoft My blog