ASP.NET(vb.net) & OnClick() - OnClick() : This OnClick() tag control for create event handler to web control. (for standard control)
ShotDev Focus:
- ASP.NET(vb.net) & OnClick()
Example
OnClick.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Button1_OnClick(sender as Object, e As EventArgs) Me.lblText.Text = "Welcome [" & Me.txtName.Text & "] To ShotDev.Com" End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblTopic" runat="server" text="Enter Your Name : "></asp:Label> <asp:TextBox id="txtName" runat="server"></asp:TextBox> <asp:Button id="Button1" onclick="Button1_OnClick" runat="server" Text="Button"></asp:Button> <br /> <br /> <asp:Label id="lblText" runat="server"></asp:Label> </form> </body> </html>
Screenshot
2applying…
…