請選擇汽車類型:

亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

ASP.NET jQuery 食譜16 (通過控件CustomValidat

系統 2420 0

上一節已經介紹過控件CustomValidator的使用方法,下面直接看代碼。

界面代碼:

      
        <
      
      
        form 
      
      
        id
      
      
        ="form1"
      
      
         runat
      
      
        ="server"
      
      
        >
      
      
< div align ="center" >
< fieldset style ="width: 350px; height: 200px;" >
< table border ="0" cellpadding ="3" cellspacing ="3" >
< tr >
< td >
請選擇汽車類型:
</ td >
</ tr >
< tr >
< td >
< asp:RadioButtonList ID ="rbCar" runat ="server" >
< asp:ListItem Value ="1" Text ="奔馳汽車" ></ asp:ListItem >
< asp:ListItem Value ="2" Text ="寶馬汽車" ></ asp:ListItem >
< asp:ListItem Value ="3" Text ="奧迪汽車" ></ asp:ListItem >
< asp:ListItem Value ="4" Text ="現代汽車" ></ asp:ListItem >
< asp:ListItem Value ="5" Text ="豐田汽車" ></ asp:ListItem >
</ asp:RadioButtonList >
</ td >
</ tr >
< tr >
< td >
< asp:Button ID ="btnSubmit" runat ="server" Text ="提交" />
</ td >
</ tr >
</ table >
</ fieldset >
< asp:CustomValidator ID ="ctvCar" runat ="server" Display ="Dynamic" ErrorMessage ="至少選擇一種車!"
ForeColor
="Red" ClientValidationFunction ="rbCar_Validation" ></ asp:CustomValidator >
</ div >
</ form >

腳本代碼:

      
        <
      
      
        head 
      
      
        id
      
      
        ="Head1"
      
      
         runat
      
      
        ="server"
      
      
        >
      
      
< title > Recipe16 </ title >
< script type ="text/javascript" src ="Scripts/jquery-1.4.1-vsdoc.js" ></ script >
< script type ="text/javascript" >
function rbCar_Validation(sender, args) {
args.IsValid
= ($( " #rbCar :radio:checked " ).length > 0 );
}
</ script >
</ head >

顯示效果:

ASP.NET jQuery 食譜16 (通過控件CustomValidator驗證RadioButtonList)_第1張圖片



?

ASP.NET jQuery 食譜16 (通過控件CustomValidator驗證RadioButtonList)


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 亚洲欧美另类久久久精品能播放的 | 精品国产看高清国产毛片 | 毛片免费网址 | 日本一区二区三区免费在线观看 | 好吊妞视频一区二区 | 免费乱理伦片在线观看老妇 | 国产欧美亚洲精品综合在线 | 国产精品成人免费视频 | 一级毛片免费播放 | 色偷偷成人网免费视频男人的天堂 | 亚洲四虎 | 亚洲综合插 | 欧美国产成人在线 | 久久久国产精品免费 | 五月天婷婷缴情五月免费观看 | 欧美一级毛片日韩一级 | 在线观看免费视频a | 欧美vs日韩vs国产在线观看 | 久久嫩模| 亚洲欧美日韩在线不卡 | 最近中文字幕无吗免费视频 | 亚洲欧美日韩国产vr在线观 | 男人天堂网在线观看 | 深夜a | 亚洲成人在线视频观看 | www亚洲视频 | 欧美视频一区二区三区 | 一级毛片黄色片 | 日韩女人做爰大片 | 亚洲精品久久麻豆蜜桃 | 男人手机天堂 | 国产一区二区免费福利片 | 天天摸天天操天天爽 | 亚洲国产欧美91 | 欧美日韩午夜视频 | 在线视频 自拍 | 欧美18—19sex性护士 | 色偷偷资源网 | 80岁老妇xxxxx高清 | 亚欧乱色精品免费观看 | 天天干干干干 |