Change Label to be visible (C#)
<%@ Page Language="C#" %>
<script runat="server">
protected void btnSubmit_Click(object sender, EventArgs e)
{
lblMessage.Visible = true;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Simple Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button
id="btnSubmit"
Text="Click Here!"
OnClick="btnSubmit_Click"
Runat="server" />
<br /><br />
<asp:Label
id="lblMessage"
Text="Thank You!"
Visible="false"
Runat="server" />
</div>
</form>
</body>
</html>
Related examples in the same category