摘要:<script type="text/javascript"> function check_input() { var name = document.getElementById("txtname"); var phone = document.getElementById("txtphone"); if ((name.value.length == 0) && (phone.value.length == 0)) { alert("请至少输入一个查询条件"); ...
阅读全文
摘要:1 使用标准HTML来进行图片上传前台代码:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><body><formid="form1"runat="server"><div><table><tr><tdcolspan="2"style="height:21px">使用标准HTML来进行图片上传
阅读全文
摘要:比较万能的分页:select top 每页显示的记录数 * from topic where id not in (select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc) order by id desc需要注意的是在access中不能是top 0,所以如果数据只有一页的话就得做判断了。。SQL2005中的分页代码:withtemptblas(SELECTROW_NUMBER()OVER(ORDERBYiddesc)ASRow,...)SELECT*FROMtemptblwhereRowbetween@startIn
阅读全文
摘要:正在看CSDN上的ITCST上的王兴魁老师的AJAX技术入门,里面讲到了一个验证码的小程序,觉得蛮有用的,先记下来.最后运行的效果图:HTML的代码:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&
阅读全文