Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I have the folowing tag.I want to convert visibility Style from hidden to visible.
I'm using C#.
can you help me?


XML
<div id="errorDiv" class="errorDiv" runat="server" style="visibility: hidden;">
    <asp:Label ID="errorLbl" CssClass="errorLbl" runat="server"></asp:Label>
</div>
Posted
Comments
Shubh Agrahari 21-Feb-13 9:39am    
just change visibility: hidden to visible......or like that(which is presenting in intellisence dialogue box)...

1 solution

On the server (C#):

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


In Javascript:

JavaScript
var errorDiv = document.getElementById("errorDiv");
errorDiv.style.visibility= "";
 
Share this answer
 
Comments
alisohrabi 22-Feb-13 2:59am    
Thank you.It solved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900