随笔分类 -  常用代码

摘要:文章来源:http://www.officezhushou.com/excel2013/3905.html 注意:如果发现条形码不能移动的情况,请点击开发工具-设计模式,那么你就可以移动你的条形码了 条形码想必大家都不陌生,任意一件商品上都有条形码,超市结账的时候不都是扫条形码出价的嘛!见过条形码归 阅读全文
posted @ 2016-10-19 16:52 李只蚊 阅读(1561) 评论(0) 推荐(0) 编辑
摘要:<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("请至少输入一个查询条件"); ... 阅读全文
posted @ 2013-02-22 14:52 李只蚊 阅读(327) 评论(0) 推荐(0) 编辑
摘要:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo-- =============================================-- Author: bin-- Create date: 2009-07-22 12:41-- Description: 分页,用到了ROW_NUMBER()-- =============================================create PROCEDURE [dbo].[proc_SplitPage_wb]@tblName varchar(255), ... 阅读全文
posted @ 2013-02-21 22:24 李只蚊 阅读(313) 评论(0) 推荐(0) 编辑
摘要: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来进行图片上传 阅读全文
posted @ 2011-03-16 19:22 李只蚊 阅读(551) 评论(0) 推荐(1) 编辑
摘要:比较万能的分页: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 阅读全文
posted @ 2011-02-25 15:56 李只蚊 阅读(231) 评论(0) 推荐(1) 编辑
摘要:① 导入命名空间: using System.Web.Security;在本项目中的bin文件夹中添加System.Web的引用② 获取MD5码:string Password = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.ToString(), "MD5"); 阅读全文
posted @ 2011-02-21 15:39 李只蚊 阅读(261) 评论(0) 推荐(0) 编辑
摘要:Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('加入暂存架成功!');</script>"); 阅读全文
posted @ 2011-02-21 11:15 李只蚊 阅读(269) 评论(0) 推荐(0) 编辑
摘要:正在看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" /& 阅读全文
posted @ 2011-02-17 21:14 李只蚊 阅读(347) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示