Click here to Skip to main content
12,816,270 members (34,213 online)
Rate this:
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 4:33am
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
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 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.170308.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2017
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