案例:ASP.NET案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<html>
3
<body>
4
5
<form runat="server">
6
<table>
7
<tr>
8
<td>
9
<table bgcolor="#b0c4de" cellspacing="10">
10
   <tr>
11
     <td align="right">名字:</td>
12
     <td><asp:TextBox id="txt_name" runat="server"/></td>
13
     <td>
14
     <asp:RequiredFieldValidator
15
     ControlToValidate="txt_name"
16
     ErrorMessage="Name"
17
     Text="*"
18
     runat="server"/>
19
     </td>
20
   </tr>
21
   <tr>
22
     <td align="right">卡片类型:</td>
23
     <td>
24
     <asp:RadioButtonList id="rlist_type"
25
     RepeatLayout="Flow"
26
     runat="server">
27
     <asp:ListItem>Diners</asp:ListItem>
28
     <asp:ListItem>MasterCard</asp:ListItem>
29
     <asp:ListItem>Visa</asp:ListItem>
30
     </asp:RadioButtonList>
31
     </td>
32
     <td>
33
     <asp:RequiredFieldValidator
34
     ControlToValidate="rlist_type"
35
     ErrorMessage="Card Type"
36
     InitialValue=""
37
     Text="*"
38
     runat="server"/>
39
     </td>
40
   </tr>
41
   <tr>
42
     <td></td>
43
     <td><asp:Button id="b1" Text="提交" runat="server"/></td>
44
     <td></td>
45
   </tr>
46
</table>
47
</td>
48
</tr>