web 2.0

ASP.NET(vb.net) & OnClick()

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

ASP.NET(vb.net) & OnClick()
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “ASP.NET(vb.net) & OnClick()”

  1. 2applying…

Leave a Reply

You must be logged in to post a comment.