01.
<%@ Page Language=
"VB"
%>
02.
<script runat=
"server"
>
03.
04.
Sub
Submit1_OnClick(sender
As
Object
, e
As
EventArgs)
05.
Me
.lblText1.Text = Request.Form(
"txtInput1"
)
06.
Me
.lblText2.Text =
Me
.txtInput2.Value
07.
End
Sub
08.
09.
</script>
10.
<html>
11.
<head>
12.
</head>
13.
<body>
14.
<form runat=
"server"
>
15.
Text 1 = <input type=
"text"
name=
"txtInput1"
value=
"<%=Request.Form("
txtInput1
")%>"
/>
16.
<br />
17.
Text 2 = <input type=
"text"
id=
"txtInput2"
runat=
"server"
/>
18.
<input id=
"Submit1"
type=
"submit"
value=
"Submit1"
runat=
"server"
onserverclick=
"Submit1_OnClick"
/>
19.
<hr />
20.
<asp:Label id=
"lblText1"
runat=
"server"
></asp:Label>
21.
<br />
22.
<asp:Label id=
"lblText2"
runat=
"server"
></asp:Label>
23.
</form>
24.
</body>
25.
</html>