test.cs
ScriptManager.RegisterStartupScript(this, GetType(), "ServerControlScript", "lbl();", true);
test.aspx
ScriptManager.RegisterStartupScript(this, GetType(), "ServerControlScript", "lbl();", true);
test.aspx
<script type="text/javascript">
function
lbl() {
document.getElementById("tbladdition").style.backgroundColor = "#A2C15A";
}
</script>
No comments:
Post a Comment