login属性里没有吗?或者是选择控件模板

解决方案 »

  1.   

    点击 linkbutton的时候用javascript去改变
    body 的 BACKGROUND-COLOR属性
      

  2.   

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
        <script type="text/javascript">
        function ChangeBGColor(color)
        {
            document.body.bgColor = color;
            
        }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:LinkButton runat=server ID="red" OnClientClick="ChangeBGColor('red');return false;">red</asp:LinkButton>
            <asp:LinkButton runat=server ID="blue" OnClientClick="ChangeBGColor('blue');return false;">blue</asp:LinkButton>
        </div>
        </form>
    </body>
    </html>
      

  3.   

    不好意思,我没讲清楚,我要的是使用c#语言改变login控件背景颜色的代码
    谢谢各位的回复
      

  4.   

     this.ClientScript.RegisterStartupScript(this.GetType(),"Color", "<script type=\"text/javascript\">document.body.bgColor = '#00FF00'</script>");