自动从C#代码中发布表单,无需单击提交按钮
如何在不单击提交"按钮并将表单操作设置为ASP页面的情况下自动从页面后面的代码中发布表单?
我们的网站仍然大部分是用ASP编写的,我们需要在ASP和Dot Net之间来回移动.
我正在将请求变量从ASP发送到点网页面,我在点网中设置了会话变量,然后希望将相同的请求变量发送回另一个ASP页面.
当我尝试Server.Transfer时,它仅在我转移到另一个Dot Net页面时才起作用,但是当我尝试转移到ASP页面时却给出了错误.
谢谢!
Ornitte
How can I post a form from the code behind page automatically without clicking the submit button and set the form action to an ASP page?
Our website is still mostly written in ASP and we need to move back and forth between ASP and Dot Net.
I''m sending a request variable from ASP to a dot net page, I set the session variable in Dot Net, and then want to send back the same request variable to another ASP page.
When I tried Server.Transfer, it only worked if I was transferring to another Dot Net page, but it gave an error when I tried to transfer to an ASP page.
thanks!
Ornitte