摘要: <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" /> 阅读全文
posted @ 2016-09-12 17:58 方金 阅读(1611) 评论(0) 推荐(0) 编辑
摘要: 参见:http://msdn.microsoft.com/zh-cn/library/ms191188(SQL.105).aspx Ole Automation Procedures 选项 [本主题为预先发布的文档内容,在未来的版本中可能会更改。包括以占位符形式出现的空白主题。请注意:为了提供更多的 阅读全文
posted @ 2016-08-26 10:25 方金 阅读(268) 评论(0) 推荐(0) 编辑
摘要: public static bool IsUrl(this string str) { if (str.IsNullOrEmpty()) return false; string pattern = @"^(http|https|ftp|rtsp|mms):(\/\/|\\\\)[A-Za-z0-9 阅读全文
posted @ 2016-08-16 11:23 方金 阅读(394) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 序列化对象为xml字符串 /// </summary> /// <param name="obj">要序列化的对象</param> /// <returns>xml格式字符串</returns> public static string Serialize(thi 阅读全文
posted @ 2016-08-16 11:15 方金 阅读(862) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取远程浏览器端 IP 地址 /// </summary> /// <returns>返回 IPv4 地址</returns> public static string GetIPAddress() { string userHostAddress = HttpC 阅读全文
posted @ 2016-08-16 10:32 方金 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 一、sql server日期时间函数Sql Server中的日期与时间函数 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004- 阅读全文
posted @ 2016-07-29 11:18 方金 阅读(29419) 评论(0) 推荐(0) 编辑
摘要: create table tb(id int, value varchar(10))insert into tb values(1,'aa')insert into tb values(1,'bb')insert into tb values(2,'aaa')insert into tb value 阅读全文
posted @ 2016-07-28 18:05 方金 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Uri uri = Request.UrlReferrer; string path = uri.AbsoluteUri; TempData["path"] = path; 阅读全文
posted @ 2016-06-23 16:05 方金 阅读(330) 评论(0) 推荐(0) 编辑
摘要: @using (Html.BeginForm("daoru", "Excel", FormMethod.Post, new { enctype = "multipart/form-data" })) { <input id="File1" type="file" name="FileName" /> 阅读全文
posted @ 2016-06-22 16:16 方金 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1 public void imgsize() 2 { 3 //本例中假定了两个变量: 4 5 String src = "c:/myImages/a.jpg"; //源图像文件的绝对路径 6 String dest = "c:/myImages/a_th.jpg"; //生成的缩略图图像文件的绝对 阅读全文
posted @ 2016-06-20 12:13 方金 阅读(274) 评论(0) 推荐(0) 编辑