web 2.0

ASP.NET(vb.net) & HTMLForm

ASP.NET(vb.net) & HTMLForm - HTMLForm : Creates a server-side control that maps to the <form> HTML element and allows you to create a container for elements in a Web page.

ShotDev Focus:
- ASP.NET(vb.net) & HTMLForm

ASP.NET(vb.net) & HTMLForm

Tag Control :

<form id="programmaticID"
method=POST | GET
action="srcpageURL"
runat="server" >
Other controls, input forms, and so on.
</form>

Example

HTMLForm.aspx

<%@ Page Language="VB" %>
<script runat="server">

Sub Submit1_OnClick(sender As Object, e As EventArgs)
Me.Span1.InnerHtml = Request.Form("txtInput1")
Me.Span2.InnerHtml = Me.txtInput2.Value
End Sub

</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
Text 1 = <input type="text" name="txtInput1" value="<%=Request.Form("txtInput1")%>" />
<br />
Text 2 = <input type="text" id="txtInput2"  runat="server" />
<input id="Submit1" type="submit" value="Submit" runat="server" OnServerClick="Submit1_OnClick" />
<hr />
<span id="Span1" runat="server"></span>
<br />
<span id="Span2" runat="server"></span>
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & HTMLForm
.
.
.
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) & HTMLForm”

  1. 3brooklyn…

Leave a Reply

You must be logged in to post a comment.