发布形式aspx页在其它应用程序 [英] Posting form to an aspx page in another application

查看:120
本文介绍了发布形式aspx页在其它应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的形式提交给另一个Web应用程序。

I need to submit the form to another web application.

我在IIS托管于2个网站。在WEBSITE1我有一个页面Register.aspx,我设置一项PostBackUrl在WEBSITE2提交按钮的网页(Receiver.aspx)。但我不能在Receiver.aspx得到公布值。如果我设置了回发网址的网页是网站1中,我能得到使用的Request.Form [tbUserName]的公布值。请给我建议。

I have hosted 2 websites in my IIS. In website1 I have a page "Register.aspx" and I set PostBackUrl for the submit button to a page(Receiver.aspx) in website2. But I couldn't get the posted values in Receiver.aspx. If I set the PostBack url to a page which is in website1, I could get the posted values using Request.Form["tbUserName"]. Please suggest me.

推荐答案

我找到了原因。问题是我设置无Cookie =真,在网站2,如果我将它设置为UseCookies它工作正常。

I found the cause. The problem is I set Cookieless="true" in website2, if I set it to UseCookies it works fine.

这篇关于发布形式aspx页在其它应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆