会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
追逐梦想的蜗牛
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2016年9月12日
关闭浏览器的放大缩小功能
摘要: <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
阅读全文
posted @ 2016-09-12 17:58 方金
阅读(1656)
评论(0)
推荐(0)
2016年8月26日
SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程'sys.sp_OACreate' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configur
摘要: 参见:http://msdn.microsoft.com/zh-cn/library/ms191188(SQL.105).aspx Ole Automation Procedures 选项 [本主题为预先发布的文档内容,在未来的版本中可能会更改。包括以占位符形式出现的空白主题。请注意:为了提供更多的
阅读全文
posted @ 2016-08-26 10:25 方金
阅读(323)
评论(0)
推荐(0)
2016年8月16日
ASP.NET正则表达式(URL,Email)
摘要: 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 方金
阅读(396)
评论(0)
推荐(0)
序列化对象为xml字符串
摘要: /// <summary> /// 序列化对象为xml字符串 /// </summary> /// <param name="obj">要序列化的对象</param> /// <returns>xml格式字符串</returns> public static string Serialize(thi
阅读全文
posted @ 2016-08-16 11:15 方金
阅读(866)
评论(0)
推荐(0)
ASP.NET获取客户端的相关信息
摘要: /// <summary> /// 获取远程浏览器端 IP 地址 /// </summary> /// <returns>返回 IPv4 地址</returns> public static string GetIPAddress() { string userHostAddress = HttpC
阅读全文
posted @ 2016-08-16 10:32 方金
阅读(255)
评论(0)
推荐(0)
2016年7月29日
sql server日期时间转字符串
摘要: 一、sql server日期时间函数Sql Server中的日期与时间函数 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-
阅读全文
posted @ 2016-07-29 11:18 方金
阅读(29676)
评论(0)
推荐(0)
2016年7月28日
sql server 2008 数据的行转列
摘要: 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 方金
阅读(360)
评论(0)
推荐(0)
2016年6月23日
获取上个页面的url包括参数
摘要: Uri uri = Request.UrlReferrer; string path = uri.AbsoluteUri; TempData["path"] = path;
阅读全文
posted @ 2016-06-23 16:05 方金
阅读(335)
评论(0)
推荐(0)
2016年6月22日
在MVC中实现文件的上传
摘要: @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 方金
阅读(254)
评论(0)
推荐(0)
2016年6月20日
c#.net 生成清晰缩略图
摘要: 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 方金
阅读(276)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告