摘要: 在你的Page_Load中添加这样的代码:Page.Response.Clear(); bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称", @"源文件路径", 1024000); if (!success) Response.Write("下载文件出错!");Page.Response.End();文件下载函数代码为:public static bool ResponseFile(HttpRequest _Request,HttpResponse _Re 阅读全文
posted @ 2013-03-19 10:14 edwin_sh 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 电话号码正则表达式(支持手机号码,3-4位区号,7-8位直播号码,1-4位分机号) ((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\... 阅读全文
posted @ 2013-03-19 10:12 edwin_sh 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1如何将字串String转换成整数int?A.有两个方法:1).inti=Integer.parseInt([String]);或 i=Integer.parseInt([String],[intradix]);2).inti=Integer.valueOf(my_str).intValue();注:字串转成Double,Float,Long的方法大同小异.2如何将整数int转换成字串String?A.有叁种方法:1.)Strings=String.valueOf(i);2.)Strings=Integer.toString(i);3.)Strings=""+i;注:Dou 阅读全文
posted @ 2013-03-19 10:06 edwin_sh 阅读(219) 评论(0) 推荐(0) 编辑