在response.redirect中的href [英] a href in response.redirect

查看:115
本文介绍了在response.redirect中的href的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在response.redirec中提供href

response.redirect(" ");

how to give a href in response.redirec

response.redirect("");

is this correct?

推荐答案

Response.Redirect("url");方法将重定向到"url".它将完成当前请求.有一个重载,但是您可以立即停止当前请求.

现在回到您的问题,上面已经说了,我不明白href是如何加入的.< a href =">通常用于html中以创建指向位置的超链接.客户端将跟随(如果单击)超链接. Response.Redirect()是服务器端方法.

希望这对您有帮助...
爱德华
The Response.Redirect("url"); method will redirect to ''url''. It will complete the current request. There is an overload that allows you to stop the current request immidiately however.

Now back to your question, having said the above, I don''t understand how href kicks in. A <a href=""> is typically used in html to create a hyperlink to a location. The hyperlink will be followed (if clicked) client side. The Response.Redirect() is a server side method.

Hope this helps...
Eduard


这篇关于在response.redirect中的href的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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