| 域名空间 下载中心 社区论坛 信息公告 my小屋 |
![]() |
联系我们 设为首页 加入收藏 |
|
首页 | 新闻资讯 | 编程开发 | 网页设计 | 图形图象 | 网络媒体 | 网站模板 | 数 据 库 | 投稿 论坛 | 操作系统 | 系统优化 | 网络安全 | 黑客技术 | 硬件学堂 | 硬件报价 | 服 务 器 | 地图 专题 | 应用软件 | 聊天通讯 | q q 专栏 | 建站经验 | 在线工具 | 站长club | 注 册 表 | 旧版 社会 | 游戏娱乐 | 设计欣赏 | 疑难解答 | 社区论坛 | 网络赚钱 | 网站地图 | 广告服务 | 服务 |
| 新版上线![旧版] | |||||
注:打开慢时请稍等
|
![]() [图5-12 rangevalidatorr设置对话框] 可以通过mininum value(最小值),maxinum value(最大值)来设置值的范围。同时可以通过type来设置比较的类型,例如”string”,”integer”等。其他设置类似于其他组件的设置。 还有一个组件:validationsummary。其中headertext设置抬头文字,displaymode设置显示模式,其具体属性如下:
![]() [图5-13 validationsummary属性设置对话框] 代附上主要程序段的源代码: < table width="75%" height="594" border="1" cellpadding="1" cellspacing="0" bordercolor="#999999" > < tr > < td width="22%" height="22" >first name< /td > < td width="38%" >< asp:textbox backcolor="#cccccc" forecolor="#0033ff" id="first" runat="server" textmode="singleline" tooltip="please input the first name" maxlength="40" borderwidth="1" width="200"/ >< /td > < td width="40%" >< asp:requiredfieldvalidator backcolor="#cccccc" controltovalidate="first" errormessage="requiredfield" forecolor="#ff0000" id="validname" runat="server" / > < /td > < /tr > < tr > < td height="22" >last name< /td > < td >< asp:textbox backcolor="#cccccc" forecolor="#0033ff" id="lastname" runat="server" textmode="singleline" width="200" tooltip="please input the last name" borderwidth="1"/ >< /td > < td >< asp:requiredfieldvalidator backcolor="#cccccc" controltovalidate="lastname" errormessage="requiredfield" forecolor="#ff0000" id="vaillast" runat="server" / > < /td > < /tr > < tr > < td height="22" >telephone< /td > < td >< asp:textbox backcolor="#cccccc" borderwidth="1" forecolor="#0066ff" id="telephone" runat="server" textmode="singleline" tooltip="please input your telephone" width="200" / >< /td > < td > < asp:regularexpressionvalidator backcolor="#cccccc" controltovalidate="telephone" errormessage="7-10 numbers required" forecolor="#ff0000" id="vailtel" runat="server" validationexpression="[0-9]{7,10}" / > < asp:requiredfieldvalidator backcolor="#cccccc" controltovalidate="telephone" errormessage="requiredfield" forecolor="#ff0000" id="vailtel2" runat="server" / >< /td > < /tr > < tr > < td height="22" >email< /td > < td >< asp:textbox backcolor="#cccccc" borderwidth="1" forecolor="#0033ff" id="email" runat="server" textmode="singleline" tooltip="please input your e-mail" width="200"/ >< /td > < td >< asp:regularexpressionvalidator backcolor="#cccccc" controltovalidate="email" errormessage="invaliate email address" forecolor="#ff0000" id="valiemail" runat="server" validationexpression=".{1,}@.{3,}" / > < asp:requiredfieldvalidator backcolor="#cccccc" controltovalidate="email" errormessage="required field" forecolor="#ff0000" id="valiemail2" runat="server" / > < /td > < /tr > < tr > < td height="22" colspan="3" >< div align="center" >comments< /div >< /td > < /tr > < tr > < td height="188" colspan="3" >< div align="center" > < asp:textbox backcolor="#cccccc" borderwidth="1" forecolor="#0033ff" id="comments" rows="16" runat="server" textmode="multiline" tooltip="please input the comments" width="400"/ > < /div > < div align="center" > < br > < /div >< /td > < /tr > < tr > < td height="71" colspan="3" >< div align="center" > < asp:validationsummary backcolor="#cccccc" displaymode="bulletlist" forecolor="#ff0000" headertext="有误的内容包括:" id="valsum" runat="server" tooltip="error" / > < /div >< /td > < /tr > < tr > < td height="22" colspan="3" >< input type="submit" name="submit" value="submit" > < /td > < /tr > < /table > 样式如下: ![]() [图5-14 预览] 编辑:黑鹰 [发送给好友] [打印本页] [关闭窗口] [返回顶部] 上一篇:dreamwavermx与asp.net(十三) 下一篇:dreamwavermx与asp.net(十五) 转载请注明来源:www.iyit.net 特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。 |
| 最新更新 | 热点排行 | 推荐新闻 | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| 友情链接 | ||||||
| 设置首 页 - 版权声明 - 广告服务 - 关于我们 - 联系我们 - 友情连接 |
| |||||||