Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a div that add runat="server" to it

<div id="divinsert"   runat="server" Visible="False" ">


at first ==>div Visible is "False"
after press a button it will be show
divinsert.visible = true;

then on div
i has a button to close div with this code
divinsert.visible = false;

how can i add attach my proj
=============================

this error was appear:

System.Web.UI.HtmlControls.HtmlGenericControl' does not contain a definition for 'visible' and no extension method 'visible' accepting a first argument of type 'System.Web.UI.HtmlControls.HtmlGenericControl' could be found (are you missing a using directive or an assembly reference?)
Posted

1 solution

C# is case sensitive... "visible" is not the same as "Visible"
C#
divinsert.Visible = true;
 
Share this answer
 
v2
Comments
[no name] 13-Jun-15 4:31am    
Good one Sir +5

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



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