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"
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.