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";

No comments:

Post a Comment