在asp.net中使用ajaxpro与一般页面的区别

1.
一般页面:Server.UrlEncode,Ajaxpro:HttpUtility.UrlEncode
一般页面:Server.UrlDecode,Ajaxpro:HttpUtility.UrlDecode

2.Server.MapPath的使用
Ajaxpro:最好是从网站根目录来取

 一般页面:  string strPath = Server.MapPath("../xslt/trans.xslt");---相对路径

3.   Request.QueryString["user_id"](好像没用)

Ajaxpro :HttpContext.Current.Request.QueryString["user_id"]

4.Session["Online"]变量

Ajaxpro :
   [AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
   HttpContext.Current.Session["Online"]

posted on 2007-08-10 11:04  JEEF WANG  阅读(396)  评论(0编辑  收藏  举报

导航