






Sample 1
<body bgcolor=yellow>
<form id="fm" runat="server">
<asp:TextBox ID="TextBox1" runat="server" Text="0"></asp:TextBox>
</form>
<% response.write(textbox1.text)%>
</body>
Sample 2
<body bgcolor=yellow>
<form id="form1" runat="server">
<div>
hello<br />
<%
If CInt(TextBox1.Text) > 0 Then
Dim i As Integer
For i = 1 To CInt(TextBox1.Text)
Response.Write(i & "<br>")
Next
End If
%>
<asp:TextBox ID="TextBox1" runat="server" Text="0"></asp:TextBox></div>
</form>
</body>
|