日期:2014-05-20 浏览次数:20438 次
<asp:CheckBox ID="chkbAgree" runat="server" oncheckedchanged="chkbAgree_CheckedChanged" AutoPostBack="true"/> <asp:Button ID="btnEnter" runat="server" Text="Button" />
------解决方案--------------------
错了
应该是
document.getElementById('<%=btnEnter.ClientID %>').style.backgroundImage= "url(http://dotnet.aspx.cc/Images/logoSite.gif)"
or
btnEnter.setAttribute("style", "background-image:url(../images/btnclose.jpg)");无效