J
jetroy
I have a question about a little .aspx program
----------------------------------------------------
<%@ Page Language="c#" %>
<script runat="server">
void ChangeLabel(Object Sender, EventArgs E)
{
label1.Text = "<BR> You clicked: " + Sender.ToString();
}
</script>
<html>
<body>
<h2>Using the Button control </h2>
<form runat="server">
A Label Control: <asp:Label id="label1" runat="server"></asp:Label>
<p>
<asp:Button id="Button1" onclick="ChangeLabel" runat="server" text="Change
Label"></asp:Button>
<asp:Button id="Button2" onclick="ChangeLabel" runat="server" text="Change
Label"></asp:Button>
</form>
</body>
</html>
----------------------------------------------------
<%@ Page Language="c#" %>
<script runat="server">
void ChangeLabel(Object Sender, EventArgs E)
{
label1.Text = "<BR> You clicked: " + Sender.ToString();
}
</script>
<html>
<body>
<h2>Using the Button control </h2>
<form runat="server">
A Label Control: <asp:Label id="label1" runat="server"></asp:Label>
<p>
<asp:Button id="Button1" onclick="ChangeLabel" runat="server" text="Change
Label"></asp:Button>
<asp:Button id="Button2" onclick="ChangeLabel" runat="server" text="Change
Label"></asp:Button>
</form>
</body>
</html>