July 2002
Beginner
720 pages
14h 35m
English
In this section we will look at how the web form is created by ASP.NET. Let’s create a simple form that contains two fields and a button (see Figure 6.14). The code for this form is shown below.

<html> <body> <form id="login" runat="server"> <center> <table width="50%"> <tr> <td>User name</td> <td> <input type="text" runat="server" id="uname"> </td> </tr> <tr> <td>Password</td> <td> <input type="password" runat="server" id="pass"> </td> </tr> <tr> <td colspan="2" align="right"> <input type="submit" value="Ok" id="ok" runat="server"> </td> </tr> </table> </center> ...
Read now
Unlock full access