62,046
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<script>
function changeBackColor()
{
document.getElementById('<%=Label9.ClientID%>').style.backgroundColor="red";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="changeBackColor(); return false;"
OnClick="Button1_Click" />
</div>
</form>
</body>
</html>