摘要: public static string GetIpaddress() { string result = String.Empty; result = HttpContext.Current.Request.ServerVariables["HTTP_CDN_SRC_IP... 阅读全文
posted @ 2015-12-24 17:48 You最温暖的港湾 阅读(269) 评论(0) 推荐(0) 编辑
摘要: publicActionResultSendMsg(){stringtoken=getAccessToken(true,"gh9ca2");stringtemplateID="ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY";dynamicpostData=n... 阅读全文
posted @ 2015-11-30 16:46 You最温暖的港湾 阅读(405) 评论(0) 推荐(0) 编辑
摘要: .flexbox{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-align:center;... 阅读全文
posted @ 2015-11-10 11:33 You最温暖的港湾 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 类型参数约束,.NET支持的类型参数约束有以下五种:where T : struct | T必须是一个结构类型where T : class T必须是一个类(class)类型where T : new() | T必须要有一个无参构造函数where T : NameOfBaseClass | T必须继... 阅读全文
posted @ 2015-09-14 11:39 You最温暖的港湾 阅读(147) 评论(0) 推荐(0) 编辑
摘要: @Html.Partial("_NavMenuPage", new ViewDataDictionary { { "proimshowId",imshowId } })var imshowId = ViewData["proimshowId"]; 阅读全文
posted @ 2015-07-21 19:10 You最温暖的港湾 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 碰到这个异常的原因很偶然:现象:Solution在ReBuild过程中断电了,来电恢复了,重析编译整个Solution不报错,但在浏览页面时始终无法正常浏览,而在design的视图中,每个aspx的首行代码都报错。解决过程:搜索找到很多国内的方案,有的建议重新引用AjaxControlToolkit... 阅读全文
posted @ 2015-07-08 14:23 You最温暖的港湾 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 2个办法 @{ int hour = item.track / 3600; int min = (item.track - hour * 3600) / 60; int sen = item.track - hour * 3600 - min * 60; ... 阅读全文
posted @ 2015-05-26 18:23 You最温暖的港湾 阅读(6165) 评论(0) 推荐(2) 编辑
摘要: [OutputCache(Duration =3600, VaryByParam = "*",Location=OutputCacheLocation.Server)] public ActionResult Index() { Response.Cache.SetOmitV... 阅读全文
posted @ 2015-05-20 10:48 You最温暖的港湾 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1、AcceptVerbs规定页面的访问形式,如 [AcceptVerbs(HttpVerbs.Post)] public ActionResult Example(){ return View(); }页面只能以Post形... 阅读全文
posted @ 2015-05-06 17:46 You最温暖的港湾 阅读(377) 评论(0) 推荐(0) 编辑
摘要: SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。这里就讲一下VS2010如何将项目导入SVN版本控制。工具/原料VS2010SVN方法/步骤开始菜单》程序》VS2010。打开需要导入SVN版本控制的项目。在解... 阅读全文
posted @ 2015-04-16 16:27 You最温暖的港湾 阅读(5013) 评论(1) 推荐(1) 编辑