简体   繁体   English

使用ASP的Response.redirect

[英]Response.redirect with asp

I have a classic asp page that gets info, processes it and make and url 我有一个经典的ASP页面,该页面获取信息,对其进行处理并进行制作和url

cadena="https://dominioexterno.com/actualizadatos.php?nombre="&nombre&"&identificador="&identificador&"&fecha="&fecha&"&tempe="&tempe&"&humedad="&humedad&"&lluvia="&lluvia&"&viento="&viento&"&funcion=actualiza"

response.redirect cadena

The page doesn't interact with the user, gets the info and sends it via response.redirect, but It didn't work. 该页面不与用户交互,获取信息并通过response.redirect发送,但是它没有用。 When I paste the url in my navigator I get success but with the asp does...nothing. 当我将网址粘贴到导航器中时,我获得了成功,但是使用asp却没有成功。

What I'm doing wrong? 我做错了什么?
Can you help me? 你能帮助我吗?

your syntax looks fine, so to troubleshoot, I would try writing the url out to the screen, then copying and pasting that into a new browser window: 您的语法看起来不错,因此要进行故障排除,我会尝试将网址写到屏幕上,然后将其复制并粘贴到新的浏览器窗口中:

cadena="http 卡德纳=“HTTP

s://dominioexterno.com/actualizadatos.php?nombre="&nombre&"&identificador="&identificador&"&fecha="&fecha&"&tempe="&tempe&"&humedad="&humedad&"&lluvia="&lluvia&"&viento="&viento&"&funcion=actualiza"

Response.Write cadena
Response.End

if that works, then you have something wrong with the processing page. 如果可行,则说明处理页面有问题。 without more info, it'll be hard to assist you. 没有更多信息,将很难为您提供帮助。

Josh, thanks for the answer. 乔希,谢谢你的回答。 It works fine that way. 这样很好。 I've been reading and realice that with response.redirect can't acces a page of other domain, I get "object moved to here..." and blocked the redirection. 我已经阅读并意识到,使用response.redirect无法访问其他域的页面,我收到“对象移至此处...”并阻止了重定向。

I don't know how I can get the data from my domain and pass those data to the destination domain. 我不知道如何从域中获取数据并将这些数据传递到目标域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM