Here I would like give a clear explanation on hiding a Label in a Page using Java script client side Programming.
<html>
<script>
$(document).ready(function()
{
document.getElementById('<%=lblInvalidMonth.ClientID%>').style.display = 'none'; });
</script>
<body>
<asp:Label ID="lblInvalidMonth" runat="server" Style="color: Red;" Text="Label" Visible="False"> </asp:Label>
</body>
</html>
Here I am making a label to invisible at the time of document loading itself.
The Asp Label will not be appear while we are running the program.
No comments:
Post a Comment