Mar 11, 2010, 12:29 PM
[CLOSED] Problem making visible a label after the page is loaded.
Hi,
I have a label that it is not visible and I need to make it visible after a button is clicked.
Even the button is clicked the label is not visible.
Could you tell me please what is the problem?
I have a label that it is not visible and I need to make it visible after a button is clicked.
Even the button is clicked the label is not visible.
Could you tell me please what is the problem?
<head runat="server">
<title>Untitled Page</title>
<script runat="server">
protected void showMessage(object sender, DirectEventArgs e)
{
this.LabelMessage.Visible = true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<ext:Label ID="LabelMessage" runat="server" Text="Hello" Visible="false">
</ext:Label>
<ext:Button ID="Button1" runat="server" Text="Submit">
<DirectEvents>
<Click OnEvent="showMessage" />
</DirectEvents>
</ext:Button>
</form>
</body>