当前位置:编程学习 > C#/ASP.NET >>

ajaxpro 如何读取request对象中的值

[AjaxPro.AjaxProperty]
        protected int CourseLearningPointID
        {
            get
            {
                if (object.Equals(ViewState["CourseLearningPointID"], null))
                {
                   ViewState["CourseLearningPointID"] = ConvertUtils.ToInt32(Request.QueryString["CourseLearningPointID"], 0);
                }
                return (int)ViewState["CourseLearningPointID"];
            }
            set
            { 
                ViewState["CourseLearningPointID"] = value;
            }
        }

执行到  ViewState["CourseLearningPointID"] = ConvertUtils.ToInt32(Request.QueryString["CourseLearningPointID"], 0);的时候老是出错。 --------------------编程问答-------------------- up --------------------编程问答-------------------- HttpContext.Current.Request.QueryString["CourseLearningPointID"] 替换 Request.QueryString["CourseLearningPointID"] 
高定了 --------------------编程问答-------------------- 是命名控件没引进来!! --------------------编程问答-------------------- 在这里面给ViewState["CourseLearningPointID"]赋值没什么意义 --------------------编程问答-------------------- 还是不幸 第一次load的时候 HttpContext.Current.Request.QueryString["CourseLearningPointID"] =2
调用一个ajaxpro方法后 HttpContext.Current.Request.QueryString["CourseLearningPointID"]  变为nul了 --------------------编程问答-------------------- 命名空间? 怎么引用命名空间呢 我刚刚接触ajax 。不是很熟
我的命名空间是这样的
AjaxPro.Utility.RegisterTypeForAjax(typeof(Prologic.TAOS.Web.Student.LearningPointQuestion)); --------------------编程问答-------------------- up --------------------编程问答-------------------- AjaxPro.Utility.RegisterTypeForAjax(typeof(Prologic.TAOS.Web.Student.LearningPointQuestion)); 也有这种命名空间吗??

我还想问一下,在使用AjaxPro中怎样知道自己的命名空间???

--------------------编程问答-------------------- 用xmlhttp方式的话直接读取QueryString是有值的,当然url中包含参数。
AjaxPro这种方式,难道是与服务器端交互式自动不带参数?或者放在别的地方?

lz在js端取到传过来好咯。 --------------------编程问答-------------------- --------------------编程问答-------------------- Click the link to solve your problem.Good luck! --------------------编程问答-------------------- 是啊,怎么回事
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,