Report action trigger's text (C#) : Event « Language Basics « ASP.NET Tutorial






<%@ Page Language="C#" %>

<script runat="server">
   void Button1_Click(Object Sender, EventArgs e) {
      Label1.Text = "You clicked <b>" + ((Button)Sender).Text + "</b>";
   }
</script>

<html><body>
   <form runat="server">
      <asp:Button id=Button1 runat="server" Text="Button1"
         onClick="Button1_Click" />
         
         <asp:Label id=Label1 runat=server />
   </form>
</body></html>








2.2.Event
2.2.1.Get action sender text (VB.net)
2.2.2.Report action trigger's text (VB)
2.2.3.Report action trigger's text (C#)
2.2.4.Change img border stype in Input Button action (VB.net)