Hi,
Can any one help me.
i have created one color pallet. if i click particular color, it will set as background-color of CardTable.
I want to access the particular set in the CardTable from Code behind file. What is the way to access the color. Here is the sample code
Can any one help me.
i have created one color pallet. if i click particular color, it will set as background-color of CardTable.
I want to access the particular set in the CardTable from Code behind file. What is the way to access the color. Here is the sample code
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Page title</title>
<script type="text/javascript">
<!--
function DesignCard(GetValue)
{
document.getElementById('CardTable').style.backgroundColor = GetValue;
}
//-->
</script>
</head>
<body>
<asp:Table ID="CardTable" Runat="server" CellPadding="0" CellSpacing="0" Width="600" CssClass="tableborder">
<asp:TableRow>
<asp:TableCell ID="Header">
<asp:label id="LblHeader" runat="server">Hi My Dear</asp:label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<a onclick='JavaScript:DesignCard("#FF6600");'>Orange</a>
</body>
</html>
Comment