当前位置: 移动技术网 > IT编程>开发语言>.net > 经典实用的基础asp程序整理

经典实用的基础asp程序整理

2019年01月20日  | 移动技术网IT编程  | 我要评论

何胜凯,bt无忧,成人美女游戏

1、关闭窗口在图片的连接上写

javascript:window.close();


  提交的图片连接写

javascript:document.form1.submit();


  删除之前出现确认对话框:


  <a href="del.?id=<%=rs("rowid")%>" onclick="javascript:return confirm(真的要删除数据吗?)">删除</a>

  2、用vbscript弹出提示框然后跳转到指定页面


  <%
  response.write "<script language=javascript>alert(""提交成功!"");location.href=""addbook.asp"";</script>"
  %>

  3、页面摘入等待。。。。脚本说明:
  把如下代码加入<head>区域中


  <script language="javascript">
  document.write("<font size=6 color=blue face=楷体_gb2312><b>正在载入细溪驿站首页,请稍等..</b></font>");
  window.clear;
  window.location.href="https://yzty.europe.webmatrixhosting.net";
  </script>

  4、在text直接修改记录,然后点修改保存记录


  <%count=0
  do while not (rs.eof or rs.bof) and count<rs.pagesize %>
  <form action="webgroupedit.asp" method="post" name="groupedit" onsubmit="return checkedit()">
  <tr bgcolor="e9f3ff">
  <td>&nbsp;<%=rs("id")%> <input name="b" type="hidden" id="b" value="<%=rs("id")%>">
  <input name="currpage" type="hidden" id="currpage" value="<%=page%>"></td>
  <td height="18"><input name="a" type="text" id="a" value="<%=rs("memgroupname")%>" size="20" maxlength="50">
  </td>
  <td height="18"><input name="c" type="text" id="c" value="<%=rs("remark")%>" size="25" maxlength="30"></td>
  <td><input type="submit" name="submit" value=" 修改 " ></td>
  <td><p align="center"><a href="webgroupdel.asp?id=<%=rs("id")%>&page=<%=page%>" onclick="return check()">删除</a></p></td>
  </tr>
  </form>
  <%
  count=count+1
  rs.movenext
  loop
  %>

  5、自动计算问题:


  <input type="hidden" name="selvalue">
  <select name="select1" onchage="javascript:document.form1.selvalue.value=this.options[this.options.selectedindex].text">
  <option value="1">新浪</option>
  <option value="2">百度</option>
  <option value="3">中华网</option>
  <option value="4">腾讯</option>
  </select> 


 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网