如何“双重发布” ??? [英] How to "double post" ???

查看:85
本文介绍了如何“双重发布” ???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我的客户正在使用处理调查的在线服务提供商

回复。


用户填写survey.aspx并按下OK按钮后,需要发生2件事情:
1.数据必须在幕后发布给提供商的网址(例如,
http:/ /www.surveyprocessingprovider....eld2=response2

2.用户必须被重定向到thankyou.aspx。


已经有人做过这样的事吗?知道如何实现这一目标吗?


TIA。


- Assaf


(道歉(双帖)

解决方案

为什么需要双重发帖?


单击该按钮进入服务器,该按钮的事件运行。

事件处理程序首先使用用户的数据更新数据库,然后

执行Response.Redirect to''thank you''页面。


" Assaf" < at@isp.com>在消息中写道

news:ut ************** @ TK2MSFTNGP11.phx.gbl ...

大家好,

我的客户正在使用一个处理调查回复的在线服务提供商。

用户填写survey.aspx并按下OK按钮后,需要做两件事情。发生:
1.数据必须在幕后发布到提供商的URL
(例如,
http://www.surveyprocessingprovider....eld2=response2 )2。用户必须重定向to thankyou.aspx。

有没有人这样做过?知道如何实现这一目标吗?

TIA。

- 阿萨夫

(为双帖道歉)


Marina,


皱纹是因为数据库由某个提供商所拥有的

互联网。我与数据库的唯一交互是发布到

url,不能使用任何数据库访问(ADO.NET,ODBC ...)。


有什么建议吗?


- Assaf


" Marina" <所以***** @ nospam.com>在消息中写道

新闻:eN **************** @ tk2msftngp13.phx.gbl ...

为什么你需要双重发布?

单击该按钮进入服务器,该按钮
的事件运行。事件处理程序首先使用用户的数据更新数据库,然后执行Response.Redirect到谢谢页面。

Assaf < at@isp.com>在消息中写道
新闻:ut ************** @ TK2MSFTNGP11.phx.gbl ...

大家好,

用户填写survey.aspx并按下OK按钮后,2件事需要
才能发生:
1.数据必须在幕后发布到提供者的URL


(例如,


http://www.surveyprocessingprovider .... eld2 = response2

2.用户必须被重定向到thankyou.aspx。

有没有人做过像那?知道如何实现这一目标吗?

TIA。

- 阿萨夫

(为双帖道歉)



使用可以发布这种方式的WebClient对象并等待响应,然后重新定向。


System.Net.Webclient就是你要找的。


" Assaf" < at@isp.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...

Marina,

皱纹是数据库由互联网上的某个提供商拥有。我与数据库的唯一交互是通过发布到
url,不能使用任何数据库访问(ADO.NET,ODBC ...)。

有什么建议吗?

- Assaf

Marina <所以***** @ nospam.com>在消息中写道
新闻:eN **************** @ tk2msftngp13.phx.gbl ...

为什么需要双帖单击按钮进入服务器,该按钮的事件运行。

事件处理程序首先用用户的数据更新数据库,然后<做一个Response.Redirect到''谢谢你'页面。

Assaf < at@isp.com>在消息中写道
新闻:ut ************** @ TK2MSFTNGP11.phx.gbl ...

大家好,

用户填写survey.aspx并按下OK按钮后,需要2个
需要

发生:
1.数据必须在幕后发布到提供商的URL


(例如,< blockquote class =post_quotes>


http://www.surveyprocessingprovider....eld2=response2 )2。用户必须重定向到thankyou.aspx。

有人做过这样的事吗?知道如何实现这一目标吗?

TIA。

- 阿萨夫

(为双帖道歉)





Hi all,

My client is using an online service provider that processes survey
responses.

After a user fills survey.aspx and presses the OK button, 2 things need to
happen:
1. the data has to be posted behind the scenes to the provider''s URL (e.g.,
http://www.surveyprocessingprovider....eld2=response2)
2. the user has to be redirected to thankyou.aspx.

Has anyone done anything like that? Any idea how to make that happen?

TIA.

- Assaf

(apologizing for double-post)

解决方案

Why do you need to double post?

Clicking the button goes to the server, and the event for that button runs.
The event handler first updates the database with the users''s data, then
does a Response.Redirect to the ''thank you'' page.

"Assaf" <at@isp.com> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...

Hi all,

My client is using an online service provider that processes survey
responses.

After a user fills survey.aspx and presses the OK button, 2 things need to
happen:
1. the data has to be posted behind the scenes to the provider''s URL (e.g., http://www.surveyprocessingprovider....eld2=response2) 2. the user has to be redirected to thankyou.aspx.

Has anyone done anything like that? Any idea how to make that happen?

TIA.

- Assaf

(apologizing for double-post)



Marina,

The wrinkle is that the DB is owned by a provider somewhere out on the
internet. The only interaction I have with the database is by posting to a
url, can''t use any DB access (ADO.NET, ODBC...).

Any suggestions?

- Assaf

"Marina" <so*****@nospam.com> wrote in message
news:eN****************@tk2msftngp13.phx.gbl...

Why do you need to double post?

Clicking the button goes to the server, and the event for that button runs. The event handler first updates the database with the users''s data, then
does a Response.Redirect to the ''thank you'' page.

"Assaf" <at@isp.com> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...

Hi all,

My client is using an online service provider that processes survey
responses.

After a user fills survey.aspx and presses the OK button, 2 things need to happen:
1. the data has to be posted behind the scenes to the provider''s URL


(e.g.,


http://www.surveyprocessingprovider....eld2=response2)

2. the user has to be redirected to thankyou.aspx.

Has anyone done anything like that? Any idea how to make that happen?

TIA.

- Assaf

(apologizing for double-post)




Use a WebClient object you can post that way and wait for the response and
then redirect.

System.Net.Webclient is what your looking for.


"Assaf" <at@isp.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

Marina,

The wrinkle is that the DB is owned by a provider somewhere out on the
internet. The only interaction I have with the database is by posting to a
url, can''t use any DB access (ADO.NET, ODBC...).

Any suggestions?

- Assaf

"Marina" <so*****@nospam.com> wrote in message
news:eN****************@tk2msftngp13.phx.gbl...

Why do you need to double post?

Clicking the button goes to the server, and the event for that button runs.

The event handler first updates the database with the users''s data, then
does a Response.Redirect to the ''thank you'' page.

"Assaf" <at@isp.com> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...

Hi all,

My client is using an online service provider that processes survey
responses.

After a user fills survey.aspx and presses the OK button, 2 things need to

happen:
1. the data has to be posted behind the scenes to the provider''s URL


(e.g.,


http://www.surveyprocessingprovider....eld2=response2) 2. the user has to be redirected to thankyou.aspx.

Has anyone done anything like that? Any idea how to make that happen?

TIA.

- Assaf

(apologizing for double-post)





这篇关于如何“双重发布” ???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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