HttpContext.current.request[""]

protected void Page_Load(object sender, EventArgs e)
    {
        this.Button1.Command+=new CommandEventHandler(Button1_Command);
         Application.Add("lxx", "lxx");
        Response.Output.WriteLine(Path.GetTempPath()+"<br/>"+HttpContext.Current.Request["Button1"]);
        //string str = httpcontext.getContext(HttpContext.Current);
        //Response.Write(str);
    }

在初次加载时,HttpContext.Current.Request["Button1"])是取不到值的,只有当回传时才能取到值……

posted on 2009-09-15 09:53  画一个圆圈  阅读(221)  评论(0编辑  收藏  举报

导航