Use HTML form to layout asp.net controls (VB.net) : Form « HTML Controls « ASP.NET Tutorial






<%@ Page Language="VB" %>

<script runat="server">
   dim Username as string
   dim Password as string
   dim BackColor as string

   sub Submit(Sender as Object, e as EventArgs)
      Label1.Text = "Username: <b>" & User.Text & _
         "</b><br>" & "Password: <b>" & Pass.Text & "</b>"
   end sub
</script> 

<html><body>
   <form runat="server">
      <table>
         <tr>
            <td><b>Login: </b></td>
            <td><ASP:TextBox id="User" runat="server"/></td>
         </tr>
         <tr>
            <td><b>Password: </b></td>
            <td><ASP:TextBox id="Pass" TextMode="Password" 
                   runat="server"/></td>
         </tr>
         <tr>
            <td></td>
            <td><ASP:Button Text="Submit" runat="server" 
                   OnClick="Submit" /></td>
         </tr>
      </table>
      
      <ASP:Label id="Label1" runat="server"/>
   </form>
</body></html>








4.5.Form
4.5.1.form default focus
4.5.2.Use HTML form to layout asp.net controls (VB.net)
4.5.3.Submitting Form Data
4.5.4.Specifying a Default Button
4.5.5.A survey form (C#)
4.5.6.Using validation controls to fill a form.
4.5.7.one server-side form tag and multiple client HTML form elements
4.5.8.Multiple server forms can be employed as long as only one is rendered at a time