用JS获取服务器控件的ID
<asp:TextBox ID="TextBox1" runat="server" onfocus="hidden('<%=Label1.ClientID %>')"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Text="你好" Visible="true" ForeColor="red"></asp:Label>
<script language="javascript">
function hidden(arg)
{
document.getElementById(arg).style.display = "none";
}
</script>
onfocus="hidden('<%=Label1.ClientID %>')">这种写法对吗?