Give the div "runat="server"
and an id
and you can reference it in your code behind
.
<div runat="server" id="theDiv">
In code behind:
{
theDiv.Visible = false;
}
More Related Contents:
- Difference between RegisterStartupScript and RegisterClientScriptBlock?
- Access resx resource files from another project
- Could not load file or assembly ‘System.Net.Http.Formatting’ or one of its dependencies. The system cannot find the path specified
- No IUserTokenProvider is registered
- Why use async requests instead of using a larger threadpool?
- C# Clear Session
- how safe is it to use session variables – asp.net / c#
- AutoMapper Migrating from static API
- Download file with ClosedXML
- Can OWIN middleware use the http session?
- WCF Service or Web API [closed]
- ASP.Net double-click problem
- Why does ServerVariable[“REMOTE_ADDR”] returns the server IP?
- Reading XML with an “&” into C# XMLDocument Object
- ASP.NET WebService is Wrapping my JSON response with XML tags
- Making an entire row clickable in a gridview
- Datetime format Issue: String was not recognized as a valid DateTime
- Limit only one session per user in ASP.NET
- How to display an error message box in a web application asp.net c#
- Explicit construction of entity type [MyClass] in query is not allowed
- Web Service without adding a reference?
- How to stop crystal report viewer from asking login credentials when opening subreport
- How to maintain the value of label after postback in Asp.net? [closed]
- Unable to resolve service for type ‘Microsoft.AspNetCore.Identity.UserManager` while attempting to activate ‘AuthController’
- Visual Studio 2010: How to enforce build order of projects in a solution?
- Display string as html in asp.net mvc view
- IIS Request.UserHostAddress returning IPV6 (::1), even when IPV6 disabled
- difference between http.context.user and thread.currentprincipal and when to use them?
- How do I call a method in a Master Page from a content’s code-behind page?
- Why are Static Methods not Usable as Web Service Operations in ASMX Web Services?