Click here to Skip to main content
12,302,493 members (65,900 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
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>
Posted 21-Feb-13 3:33am
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

On the server (C#):

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

In Javascript:

var errorDiv = document.getElementById("errorDiv");
errorDiv.style.visibility= "";
  Permalink  
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


Advertise | Privacy | Mobile
Web02 | 2.8.160530.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100