且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从“div”中删除样式在asp.net中标记

更新时间:1970-01-01 07:57:00

在服务器上(C#):



 errorDiv.Style [  visibility] =  ; 





在Javascript:



  var  errorDiv =  document  .getElementById(  errorDiv跨度>); 
errorDiv.style.visibility = ;


Hello
I have the folowing tag.I want to convert visibility Style from hidden to visible.
I''m using C#.
can you help me?


<div id="errorDiv" class="errorDiv" runat="server" style="visibility: hidden;">
    <asp:Label ID="errorLbl" CssClass="errorLbl" runat="server"></asp:Label>
</div>

On the server (C#):

errorDiv.Style["visibility"] = "";



In Javascript:

var errorDiv = document.getElementById("errorDiv");
errorDiv.style.visibility= "";