comparison Demo/Asp.Net/Web/Controls/AddressForm.ascx @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddressForm.ascx.cs" Inherits="PetShop.Web.AddressForm" %>
2 <table border="0" cellpadding="0" cellspacing="0">
3 <tr>
4 <td class="label" valign="top" width="50%">First Name<br />
5 <asp:TextBox ID="txtFirstName" runat="server" Columns="30" CssClass="checkoutTextbox"
6 MaxLength="80" Width="155px"></asp:TextBox><br />
7 <asp:RequiredFieldValidator ID="valFirstName" runat="server" ControlToValidate="txtFirstName"
8 CssClass="asterisk" ErrorMessage="Please enter first name."></asp:RequiredFieldValidator>&nbsp;&nbsp;
9 </td><td class="label" colspan="2" valign="top">Last Name<br />
10 <asp:TextBox ID="txtLastName" runat="server" Columns="30" CssClass="checkoutTextbox"
11 MaxLength="80" Width="155px"></asp:TextBox><br />
12 <asp:RequiredFieldValidator ID="valLastName" runat="server" ControlToValidate="txtLastName"
13 CssClass="asterisk" ErrorMessage="Please enter last name."></asp:RequiredFieldValidator>&nbsp;&nbsp;
14 </td>
15 </tr>
16 <tr>
17 <td class="label" colspan="3" valign="top">Address<br />
18 <asp:TextBox ID="txtAddress1" runat="server" Columns="55" CssClass="checkoutTextbox"
19 MaxLength="80" Width="330px"></asp:TextBox><br />
20 <asp:RequiredFieldValidator ID="valAddress1" runat="server" ControlToValidate="txtAddress1"
21 CssClass="asterisk" ErrorMessage="Please enter street address."></asp:RequiredFieldValidator>&nbsp;
22 <br />
23 <asp:TextBox ID="txtAddress2" runat="server" Columns="55" CssClass="checkoutTextbox"
24 MaxLength="80" Width="330px"></asp:TextBox>
25 </td>
26 </tr>
27 <tr>
28 <td class="label" style="height: 19px" valign="top" width="50%">City<br />
29 <asp:TextBox ID="txtCity" runat="server" Columns="55" CssClass="checkoutTextbox"
30 MaxLength="80" Width="155px"></asp:TextBox><br />
31 <asp:RequiredFieldValidator ID="valCity" runat="server" ControlToValidate="txtCity"
32 CssClass="asterisk" ErrorMessage="Please enter city."></asp:RequiredFieldValidator>&nbsp;&nbsp;
33 </td><td class="label" style="height: 19px" valign="top" width="20%">State<br />
34 <asp:DropDownList ID="listState" runat="server" CssClass="checkoutDropdown">
35 <asp:ListItem Value="CA">CA</asp:ListItem>
36 <asp:ListItem Value="NY">NY</asp:ListItem>
37 <asp:ListItem Value="TX">TX</asp:ListItem>
38 </asp:DropDownList><br />
39 </td><td class="label" style="width: 100px; height: 19px;" valign="top">Postal Code<br />
40 <asp:TextBox ID="txtZip" runat="server" Columns="12" CssClass="checkoutTextbox" MaxLength="20"
41 Width="65px"></asp:TextBox><br />
42 <asp:RequiredFieldValidator ID="valZip" runat="server" ControlToValidate="txtZip"
43 CssClass="asterisk" Display="Dynamic" ErrorMessage="Please enter postal code."></asp:RequiredFieldValidator><asp:RegularExpressionValidator
44 ID="valZip1" runat="server" ControlToValidate="txtZip" CssClass="asterisk" Display="Dynamic"
45 ErrorMessage="Postal code invalid." ValidationExpression="\d{5}(-\d{4})?"></asp:RegularExpressionValidator>
46 </td>
47 </tr>
48 <tr>
49 <td class="label" style="height: 19px" valign="top" width="50%">Country<br />
50 <asp:DropDownList ID="listCountry" runat="server" CssClass="checkoutDropdown">
51 <asp:ListItem Value="USA">USA</asp:ListItem>
52 <asp:ListItem Value="Canada">Canada</asp:ListItem>
53 <asp:ListItem Value="Japan">Japan</asp:ListItem>
54 </asp:DropDownList><br />
55 &nbsp; </td><td class="label" style="height: 19px" valign="top" width="20%"></td>
56 <td class="label" style="width: 100px; height: 19px;" valign="top"></td>
57 </tr>
58 <tr>
59 <td class="label" colspan="3" valign="top">Phone Number<br />
60 <asp:TextBox ID="txtPhone" runat="server" Columns="20" CssClass="checkoutTextbox"
61 MaxLength="20" Width="155px"></asp:TextBox><br />
62 <asp:RequiredFieldValidator ID="valPhone" runat="server" ControlToValidate="txtPhone"
63 CssClass="asterisk" ErrorMessage="Please enter telephone number."></asp:RequiredFieldValidator><asp:RegularExpressionValidator
64 ID="valPhone1" runat="server" ControlToValidate="txtPhone" CssClass="asterisk"
65 Display="Dynamic" ErrorMessage="Phone number invalid." ValidationExpression="((\(?\d{3}\)? ?)|(\d{3}-?))?\d{3}-?\d{4}"></asp:RegularExpressionValidator>&nbsp;&nbsp;</td>
66 </tr>
67 <tr>
68 <td class="label" colspan="3" style="height: 62px" valign="top">Email<br />
69 <asp:TextBox ID="txtEmail" runat="server" Columns="55" CssClass="checkoutTextbox"
70 MaxLength="80" Width="330px"></asp:TextBox><br />
71 <asp:RequiredFieldValidator ID="valEmail" runat="server" ControlToValidate="txtEmail"
72 CssClass="asterisk" Display="Dynamic" ErrorMessage="Please enter email."></asp:RequiredFieldValidator><asp:RegularExpressionValidator
73 ID="valEmail1" runat="server" ControlToValidate="txtEmail" CssClass="asterisk"
74 Display="Dynamic" ErrorMessage="Email invalid." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>&nbsp;&nbsp;
75 </td>
76 </tr>
77 </table>