04 2013 档案
摘要:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Firefox3,IE6,IE7,IE8上传图片预览</title> <style type="text/css"> #preview_wrapper{ display:inline-bloc
阅读全文
摘要:DataTable temp = getData(...)String filter = "convert (mobile_no, 'System.String') like '%13%'";DataRow[] dataRows = dt.Select(filter);//convert中应该使用系统的类型(System.String),不是数据库中的类型(varchar)
阅读全文
摘要:微软的SQL Server 2k/2k5中对数字类型的判断函数如下:ISNUMERIC确定表达式是否为一个有效的数字类型。语法ISNUMERIC(expression)参数expression要计算的表达式。返回类型int注释当输入表达式得数为一个有效的整数、浮点数、money或decimal类型,那么 ISNUMERIC 返回 1;否则返回 0。返回值为 1 确保可以将expression转换为上述数字类型中的一种。但是此函数存在Bug,就是'234a2342'同样会认为是数字类型可以替代的写法是PATINDEX('%[^0-9]%', @s)如果返回值等于0
阅读全文
摘要:旺旺:(参考http://www.taobao.com/wangwang/2011_seller/wangbiantianxia/) <a href="http://web.im.alisoft.com/msg.aw?v=2&uid=bin123&site=cnalichn&s=0" target="_blank"> <img src="http://web.im.alisoft.com/online.aw?v=2&uid=123&site=cna
阅读全文
摘要:通过网页拨打电话 <p><a href=”wtai://wp/mc;135xxxxxxxx ”>拨打电话</a></p> 注: 135xxxxxxxx是号码, 你可以换成你想拨打的号码. 通过网页存储电话号码 <p><a href=”wtai://wp/ap;1860;中国移动”>存储号码</a></p> 注: 这种方法可以直接调出手机的保存电话号码的界面. 以上方法在Dopod机器上验证过. 其他机器不保证是否实现了WTAI. 最后摘录一段WTAI的介绍: WTAI: wireless Telep
阅读全文
摘要:未来是属于微信这种产品的时代。老板每次都兴奋地跟我提起他是如何如何的好。我之前以为微信只是QQ的手机语音版,没想到腾讯竟然有如此大的勇气突破落后的生态体制,大力扶持微信,而不遭到内部固有生态的排他影响。20世纪经评网说,这是腾讯的“光荣革命”。关于他们的表述,我是完全认同的。以下是前几天做的微信消息接口:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;usi
阅读全文
摘要:<script type="text/javascript"> $(document).ready(function () { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showMap); } }); var showMap = function (position) { var weidu = position.coords.latitude; var jingdu = position.coords.longitude; var str = weidu + &q
阅读全文
摘要:string clientFilename = FileUpload1.PostedFile.FileName.ToLower(); string serverFilename = ""; if (clientFilename == "") { return; } if (clientFilename.ToLower().IndexOf(".xlsx") > 0) { serverFilename = ".xlsx"; } else { if (clientFilename.ToLower().IndexOf
阅读全文
摘要:using System;using System.Web;public class WeixinInterface : IHttpHandler{HttpContext context = null;string postStr = "";public void ProcessRequest(HttpContext param_context){context = param_context;//以写日志为荣,以打断点为耻.//WriteLog("before valid \n");//valid();//用于验证//WriteLog("af
阅读全文
摘要:/// /// 记录日志 /// 以日期为文件名,一天一个文件名,每条记录为一个日志 /// 格式:时间yyyy-MM-dd HH:mm:ss(24h)+空格+日志主体信息 /// 如:2010-08-08 10:10:10 访问作业系统失败,请检查作业系统是否正常运作。 /// /// 输入:日志文件存放路径 /// 输入:日志信息主体信息 internal static void WriteLog(string strLogPath, string strM...
阅读全文
摘要:function viewObject(obj) { var msg; for (var a in obj) { msg += a + ' '; } alert(msg); }
阅读全文
摘要:protected void dFile(string name) { string path = Server.MapPath("~") + name; //初始化 FileInfo 类的实例,它作为文件路径的包装 FileInfo fi = new FileInfo(path); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode(fi.Name)); //Response.Ad
阅读全文
摘要:$("input[name=test][value=34]").attr("checked",true);//value=34的radio被选中
阅读全文

浙公网安备 33010602011771号