Showing posts with label Server Controls. Show all posts
Showing posts with label Server Controls. Show all posts

Thursday, December 22, 2011

How to make any .Net Server Control visible invisible using Javascript

1. This is how you can make ASP.NET Server Control visible.

document.getElementById('<%= YourServerControlID.ClientID %>').style.display = "inline";

2. This is how you can make ASP.NET Server Control invisible.

document.getElementById('<%= YourServerControlID.ClientID %>').style.display = "none";