buguge - Keep it simple,stupid

知识就是力量,但更重要的,是运用知识的能力why buguge?

导航

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 47 下一页

2017年5月22日 #

Request.UrlReferrer注意点

摘要: 2.如果有A,B两个页面,在浏览器中直接请求A页面,在A页面的中Page_Load事件中导航到B 页面,则 Request.UrlReferrer返回空。因为 在Page_load事件中页面还未初始化,所以无法记录当前页的信息,导航到b页面也就无法获得上一页面的信息 阅读全文

posted @ 2017-05-22 19:50 buguge 阅读(319) 评论(0) 推荐(0) 编辑

2017年5月12日 #

微信公众号支付报文示例

摘要: 返回值pay_info和token_id说明 阅读全文

posted @ 2017-05-12 11:09 buguge 阅读(3355) 评论(0) 推荐(0) 编辑

2017年4月17日 #

System.Web.HttpException (0x80004005): 验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate。

摘要: 同一个站点内两个页面a.aspx和b.aspx。a.aspx里是一个服务器表单控件,其action指向的是b.aspx。本地测试是正常的。线上是nginx部署的,在提交表单时出现了上面的异常。 阅读全文

posted @ 2017-04-17 21:47 buguge 阅读(2268) 评论(0) 推荐(0) 编辑

Unable to update the EntitySet 'T_JsAPI' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

摘要: If Entity Framework can't figure out the primary key, it will generate a SELECT statement but it won't be able to create the according INSERT, UPDATE and DELETE statements.(如果EF找不到pk,它将生成一个selelct语句,但不会生成相应的增删改语句) 阅读全文

posted @ 2017-04-17 15:08 buguge 阅读(457) 评论(0) 推荐(0) 编辑

2017年4月11日 #

HttpContext.Current.Items的用途

摘要: 它只作用于单独的一个用户请求(HttpContext.Current.Items valid for a single HTTPRequest)。完成这个请求,服务器信息传回浏览器的时候,这个Item集合将丢失。 阅读全文

posted @ 2017-04-11 21:13 buguge 阅读(887) 评论(0) 推荐(0) 编辑

2017年4月7日 #

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

摘要: System.Data.Entity.Core.MetadataException: Schema specified is not valid. Errors: PaycenterModels.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. 阅读全文

posted @ 2017-04-07 18:52 buguge 阅读(1082) 评论(0) 推荐(0) 编辑

2017年3月23日 #

微信公众号支付(JSAPI)对接备忘

摘要: 公众号支付是用户在微信中打开商户的H5页面,商户在H5页面通过调用微信支付提供的JSAPI接口调起微信支付模块完成支付。应用场景有: ◆ 用户在微信公众账号内进入商家公众号,打开某个主页面,完成支付 ◆ 用户的好友在朋友圈、聊天窗口等分享商家页面连接,用户点击链接打开商家页面,完成支付 ◆ 将商户页面转换成二维码,用户扫描二维码后在微信浏览器中打开页面后完成支付 阅读全文

posted @ 2017-03-23 20:35 buguge 阅读(4158) 评论(0) 推荐(0) 编辑

2017年3月13日 #

浅析Web API中FromBody属性

摘要: FromBodyAttribute是一个特性,该特性指定操作参数仅来自传入 System.Net.Http.HttpRequestMessage 的实体正文。通俗点说,FromBodyAttribute要求被其修饰的参数,必须是序列化后的实体成员。 阅读全文

posted @ 2017-03-13 21:00 buguge 阅读(2478) 评论(0) 推荐(0) 编辑

2017年2月28日 #

懒汉思维处理dapper字段名与属性名的映射方式

摘要: 你还以为走路是世上最简单的事情呢?只不过是把一只脚放到另一只脚前面。但我一直很惊讶这些原本是本能的事情实际上做起来有多困难。而吃,吃也是一样的,有些人吃起东西来可困难了。说话也是,还有爱。这些东西都可以很难。--摘自蕾秋·乔伊斯《一个人的朝圣》 阅读全文

posted @ 2017-02-28 20:03 buguge 阅读(733) 评论(0) 推荐(0) 编辑

2017年2月24日 #

【思路决定出路】换一种思路,柳暗花明---程序如何利用SQL的LIKE实现模糊查询数据

摘要: _ _ \. _(9> <6)_ ,/ \==_) (_==/ -'= ='- 阅读全文

posted @ 2017-02-24 17:35 buguge 阅读(433) 评论(0) 推荐(0) 编辑

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 47 下一页