A complete case

Source: Internet
Author: User
Now we want to create a magazine subscription system, which requires the user to enter an Email and password twice. The password should be the same, and the password must be secure, so it must include (! @ # $ % ^ & * +; :) Enter the user's phone number, which can be up to 20 characters long. You must select a credit card, enter the card number, and the card number is 15 characters. The procedure is as follows, let's take a look.
<%
Public sub OnSubmit (source as Object, e as EventArgs)
If Page. IsValid then
"Data warehouse receiving and other operations
End if
End sub
%>
<H3> <font face = "Verdana"> Subscribe to lifestyle magazine </font> <Form runat = server>
<Hr width = 600 size = 1 noshade>
<Center>
<Asp: ValidationSummary ID = "valSum" runat = "server"
HeaderText = "You must complete all the options"
DisplayMode = "SingleParagraph"
Font-Name = "verdana"
Font-Size = "12"
/>
<P>
<! -- Sign-in -->
<Table border = 0 width = 600>
<Tr> <td colspan = 3>
<Table border = 0 cellpadding = 0 cellspacing = 0 width = "100%">
<Tr> <td>
<Font face = geneva, arial size =-1> <B> Sign-In Information </B>
</Font>
</Td> </tr>
</Table>
</Td> </tr>
<Tr>
<Td align = right>
<Font face = Arial size = 2> enter your Email </font>
</Td>
<Td>
<Asp: TextBox id = email width = 200px maxlength = 60 runat = server/>
</Td>
<Td>
<Asp: RequiredFieldValidator id = "emailReqVal"
ControlToValidate = "email"
ErrorMessage = "your Email ."
Display = "Dynamic"
Font-Name = "Verdana" Font-Size = "12"
Runat = server>
*
</Asp: RequiredFieldValidator>
<Asp: RegularExpressionValidator id = "emailRegexVal"
ControlToValidate = "email"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.