Unable to hide elements from CSS using ASP.NET4
i am unable to hide my asp:buttons from CSS. i am using ASP.NET 4
CSS
.Sit开发者_如何学运维eButton
{
display: none;
visibility: hidden;
}
HTML
<asp:Button ID="btnFromCalOpen" runat="server" Text=" > " class = "siteButton" />
Please Help
Change class="siteButton"
to CssClass="SiteButton"
CSS is case-sensitive for class names and siteButton
is different from SiteButton
.
Also in ASP.NET the class is set by CssClass
rather than class
, however class will still work since ASP.NET will pass through unknown properties to the browser.
精彩评论