您现在的位置: 军旅同心 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 文章正文
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] 下一页


 
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 管理登录 |