Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
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>
Posted 21-Feb-13 3:33am
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
Please Sign up or sign in to vote.

Solution 1

On the server (C#):
errorDiv.Style["visibility"] = "";
In Javascript:
var errorDiv = document.getElementById("errorDiv"); "";
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)

Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | 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