Hello.
The code to change colour (textbox,button,cell,tr etc). You can make a class in HTML design form and then call that function on code file.
Step 1:-
First of all make a css class as shown below:
The code to change colour (textbox,button,cell,tr etc). You can make a class in HTML design form and then call that function on code file.
Step 1:-
First of all make a css class as shown below:
<style type="text/css">
.normalRow
{
background-color:Red;
cursor:pointer;
.highlightRow
{
background-color:white;
cursor:pointer;
}
</style>
Step 2:-
Now call this css in code file like (this is for table row TR):
tr1.Attributes.Add("onmouseover", "this.className=('highlightRow');");
tr1.Attributes.Add("onmouseout", "this.className=('normalRow');");
No comments:
Post a Comment