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"])是取不到值的,只有当回传时才能取到值……

原文地址:https://www.cnblogs.com/xinzhuangzi/p/4100711.html