如题:asp.net页面向asp页面跳转并用post方式传值
如何实现?
比如有一个login.aspx页面,在页面上输入用户名,密码
按提交按钮后页面跳转到index.asp页面,并且把用户名和密码传到index.asp页面中。
最重要的是要用post传值方式。拜托各位了。最好有例子。

解决方案 »

  1.   


        appliction session;
      

  2.   

    楼主,什么往什么传值都不重要,重要的是你要了解post的原理啊,本身就是一个form,提交到某个页面,asp.net是向自身提交的而已,你可以用button的posturl属性搞下
      

  3.   

    简单而又强大的post传值~public void post(string url, string name, string namevalue)
        {
            Response.Write(@"   
            <form   id=""hyform""   action=""" + url + @"""   method=""post"">   
            <input   type=""hidden""   name=""" + name + @"""   value=""" + namevalue + @""">   
            </form>   
            <script   language=""javascript"">   
            document.getElementById('form1').submit();   
            </script>   
            ");
        }  用法:  string url = "http://localhost:8637/WebSite1/test.aspx";  post(url, "hf",TextBox1.Text);