当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 但是我还是决定上csdn抢分! :) ......
 ·高手谢谢了:)    »显示摘要«
    摘要: 我想再文本框中对输入的字符检验: 输入的字符为:370303********* 我怎样检验370303为字符的开头部分谢谢了! ......


***高分求教快来救命(菜鸟问题)****** (philins )

我得的一个asp.情的大家指点  
   
   
   
   
  :  
   
   
  <HTML>  
  <head>  
  <meta   http-equiv="Content-Type"   content="text/HTML;   charset=gb2312">  
  <title>asp_test</title>  
  </head>  
   
  <body>  
  <div   align="center">  
  <center>  
          <h1><font   color="#00CCFF">collect   you   information:</font></h1>  
      </center>  
  <hr>  
      <centre>   <font   color="#00CC99">your   name   <from></font></centre>   </div>  
  <p   align="center"><centre>    
      <input   type="text"   name="txst1"   value="">  
      </centre></p>  
  <p   align="center"><centre><font   color="#99CC99">your   sex   </font></centre></p>  
  <p   align="center"><font   color="#99CC99"><centre>    
      <input   type="radio"   name="radio1"   value="male"   checked>  
      male   </centre></font></p>  
  <p   align="center"><font   color="#99CC99"><centre>    
      <input   type="radio"   name="radio2"   value="female"   >  
      female</centre></font></p>  
  <p   align="center"><centre>   <font   color="#00CC99">your   adress</font></centre></p>  
  <p   align="center"><centre>    
      <select   name="list1"   size="5">  
          <option   selected>   Beijing  
          <option   >   Guangzhou    
          <option   >   Shanghai    
          <option   >   Shenzhen    
          <option   >   Tianjing    
          <option   >   Dalian    
          <option   >   Zhuzhou    
      </select>  
      </centre></p>  
  <div   align="center"><centre></centre></div>  
  <centre>  
  <p   align="center">    
      <input   type="submit"   name="button1"   value="finish">  
  </p>  
  <script   language="VBScript"   >  
  <!--  
  option   explicit  
    sub   radio1_onclick()  
      radio1.checked=true  
      radio2.checked=false  
      End   sub  
      sub   radio2_onclick()  
      radio2.checked=true  
      radio1.checked=false  
      End   sub  
  sub   button1_onclick()  
  dim     coll,name   ,   sex,   adress  
  coll=documrnt.froms  
  name   =coll.item(0).value  
  if   name   =""   then  
      MsgBox"yiou   have   nt   input   your   name   ."  
      exit   sub  
    end   if  
    if   radio1.checked=true   then    
        sex=radio1.value  
    else   if   radio2.checked=true     then  
    sex=radio2.value  
    end   if        
      select   Case   list1.selectlindex    
  Case   0    
  adress="   Beijing"  
  Case   1  
  adress="Guangzhou"  
  Case   2  
  adress="   Shanghai   "  
  Case   3  
  adress="Tianjing"  
  Case   4  
  adress="Dalian"  
  Case   5    
  adress="Zhuozhuo"  
      End   select  
      document.open  
      document.writeln"<Hmtl><tilte>your   personal   information.</tilte>"  
      document.writeln"<>Body   bgcolor=#cod9d9>"  
      document.writeln"<h2>your   personal   information   :</h2>"  
      document.writeln"<HR>"  
      document.writeln"<p>&nbsp;</p>"  
      document.writeln"<centre>"  
      document.writeln"<TABLE>"  
      document.writeln"<TR>"  
      document.writeln"<TD>"  
      document.writeln"<h3>your   name:</h3>"  
      document.writeln"<h3>your   sex   :</h3>"  
      document.writeln"<h3>your   adress:</h3>"  
      document.writeln"</TD>"  
      document.writeln"<TD>"  
      document.writeln"<h3>"&name&"</h3>"  
      document.writeln"<h3>"&sex&"</h3>"  
      document.writeln"<h3>"&adress&"</h3>"  
      document.writeln"</TD>"  
      document.writeln"</TR>"  
      document.writeln"<TABLE>"  
      document.writeln"</centre>"  
      document.writeln"</body>"  
      document.writeln"</HTML>"  
      document.close  
      End   sub  
      -->  
  </script>  
  </centre>    
  </body>  
  </HTML>  
 

NO.1   作者: ymyy

else   if   在vbscript中应该为elseif

NO.2   作者: fxmpch

你要问的是什么呢,报什么错呢

NO.3   作者: nakanyu

selectlindex  
  改为   selectedindex  
  给分!


 ·连续快速点击的2个奇怪问题    »显示摘要«
    摘要: 1。做一个控件,添加删除东西的,可以从左边的listbox选东西进右边的listbox,也可以删除。但是,如果我连续快速的点击添加按钮,实际上并不选中,什么都不做,按的多了就会整个控件的listbox数据不能显示出来。 代码是写在!ispostback里面的,按钮的属性是autopostback=false 有人说可能跟viewstate视图状态有关,我一点也不懂得说 2。 static ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE