打印本文 打印本文  关闭窗口 关闭窗口
asp.net高级教程(五)-实战篇(中)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 12:37:04
nbsp;      <!--------------验证密码开始-------------------------------------------------------->
        <tr bgcolor=#ffffff>
            <td width=60>
                验证密码
            </td>
            <td width=300>
                <asp:TextBox id=txtPassword1 maxlength=10 columns=10
                     textmode=Password runat=server></asp:TextBox>
                <font color=red>*</font>
            </td>
            <td width=240>
                再次输入密码。
                <asp:comparevalidator id="comPassword" display=Dynamic
                 controltocompare="txtPassword" controltovalidate="txtPassword1" runat=Server>
                    两次录入的密码不同!
                </asp:comparevalidator>
            </td>
        </tr>
        <!--------------验证密码结束-------------------------------------------------------->

        <!--------------email开始-------------------------------------------------------->
        <tr bgcolor=#ffffff>
            <td width=60>
                Email
            </td>
            <td width=300>
                <asp:TextBox id="txtEmail" maxlength=100 columns=30 runat=server></asp:TextBox>
            </td>
            <td width=240>
                您的电子邮件地址,您可以不填,但请不要胡填。
                <asp:regularexpressionvalidator id="regEmail" display=Dynamic
                    controltovalidate="txtEmail" validationexpression="[^']*" runat=Server>
                    非法字符
                    </asp:regularexpressionvalidator>
            </td>
        </tr>
        <!--------------email结束-------------------------------------------------------->

        <!--------------个人主页开始-------------------------------------------------------->
        <tr bgcolor=#ffffff>
            <td width=60>
                个人主页
            </td>
            <td width=300>
                <asp:TextBox id="txtHomepage" maxlength=150 columns=30 runat=server></asp:TextBox>
            </td>
            <td width=240>
                您的主页,您可以不填,但请不要胡填。
                <asp:regularexpressionvalidator id="regHomepage" display=Dynamic
                    controltovalidate="txtHomepage" validationexpression="[^']*" runat=Server>
                非法字符。
                </asp:regularexpressionvalidator>
            </td>
        </tr>
        <!--------------个人主页结束-------------------------------------------------------->

        <!--------------签名开始-------------------------------------------------------->
        <tr bgcolor=#ffffff>
            <td width=60>
                签名
            </td>
            <td width=300>
                <asp:TextBox id="txtSignature" maxlength=150 columns=30 rows=6 textmode=MultiLine runat=server></asp:TextBox>
            </td>
            <td width=240 valign=top>
                <div id="divPreview">
                你可以制作自己的签名,不超过255个字符,不能用script。<br><br>
                </div><br>
                
                <input type=button id="btnPreview" value="预览" onclick="OnPreview()"><br>
                <asp:regularexpressionvalidator id=Regularexpressionvalidator2 display=Dynamic
                    controltovalidate="txtSignature" validationexpression="[^']{0,255}" runat=Server>
                使用非法字符或超过255个字符。
                </asp:regularexpressionvalidator>
            </td>
        </tr>
        <!--------------签名结束-------------------------------------------------------->
        
        <tr bgcolor=#ffffff>
            <td colspan=3 align=center>
                <asp:button id="btnSubmit" text="确认"  onclick="OnSubmit" runat=Server></asp:button>
            </td>
        </tr>
    </table><br><br><br>
<!----------------------------------新用户注册结束---------------------->

   <!-------------------右边竖线---------------------------------------------->
     &

上一页  [1] [2] [3] [4]  下一页



打印本文 打印本文  关闭窗口 关闭窗口