每次去写太麻烦,写一个样本,下次对照就好了
context.Response.Write
("{\"UserName\":\""+HttpContext.Current.User.Identity.Name+"\","+"\"SessionID\":\""+context.Request.Cookies["ASP.NET_SessionId"].Value+"\"}");//输出模拟json对象
简化代码流程:一键输出JSON对象
每次去写太麻烦,写一个样本,下次对照就好了
context.Response.Write
("{\"UserName\":\""+HttpContext.Current.User.Identity.Name+"\","+"\"SessionID\":\""+context.Request.Cookies["ASP.NET_SessionId"].Value+"\"}");//输出模拟json对象
1619
1011
891

被折叠的 条评论
为什么被折叠?
