Click here to Skip to main content
Rate this: bad
good
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 at 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 at 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
0 Maciej Los 655
1 OriginalGriff 453
2 CPallini 239
3 CHill60 180
4 Sergey Alexandrovich Kryukov 175
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 4,898
2 Maciej Los 3,159
3 Peter Leow 3,129
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2014
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