访问 http://www.qqread.com/ajax/n222101.html
Resolution:
Add a argument of AjaxPro.HttpSessionStateRequirement enum in your AjaxPro.AjaxMethodAttribute.
Here is a example:
[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
Now u can access ur Session value like this: this.Session["0"].ToString().
So easy,right?
Another question: How to use Cookie in AjaxMethod?
The answer is u can't access cookie by the ref of "this".
You should use HttpContext.Current Object.Like this: HttpContext.Current.Request.Cookies[Name].Value.
For more information about SessionStat in Ajax.Net,See AjaxGuide.doc.
更多内容请看Ajax技术专题、.NET移动与嵌入式技术、.NET开发手册专题,或进入讨论组讨论。
Resolution:
Add a argument of AjaxPro.HttpSessionStateRequirement enum in your AjaxPro.AjaxMethodAttribute.
Here is a example:
[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
Now u can access ur Session value like this: this.Session["0"].ToString().
So easy,right?
Another question: How to use Cookie in AjaxMethod?
The answer is u can't access cookie by the ref of "this".
You should use HttpContext.Current Object.Like this: HttpContext.Current.Request.Cookies[Name].Value.
For more information about SessionStat in Ajax.Net,See AjaxGuide.doc.
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- Ajax技术专题 (558篇文章)
- .NET移动与嵌入式技术 (5974篇文章)
- .NET开发手册 (5673篇文章)
- Ajax技术应用开发 (558篇文章)
- 开发ASP.NET AJAX客户端定制行为 (0次浏览)
- 解决ajax获取页面直接显示乱码的方法 (0次浏览)
- 基于ASP.NET AJAX框架实现表单验证编程原理 (0次浏览)
- 基于ASP.NET AJAX框架实现表单验证编程(实践 (0次浏览)
- 基于ASP.NET AJAX框架实现表单验证编程(理论 (0次浏览)
- 从Atlas到Microsoft ASP.NET AJAX(3) (0次浏览)
- 从Atlas到Microsoft ASP.NET AJAX(2) (0次浏览)
- 从Atlas到Microsoft ASP.NET AJAX(1) (0次浏览)
- Codd 提出的 RDBMS 12项准则 (0次浏览)
- 不用组件实现Ajax效果 (0次浏览)



