如何在浏览器中获取页面的URL [英] How to get URL Of a page in browser

查看:185
本文介绍了如何在浏览器中获取页面的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙伴们,我有一个注册学生的申请。一个页面叫做注册,另一个叫做CompleteRegistration。正在做的是注册学生,然后发送链接在电子邮件中完成注册。现在,我有在我的页面注册我的locallhost的url编码。但问题是我已经部署了应用程序,但我需要有人向我解释我如何获得完成注册的网址,因为现在它已经改变了,目前当我发送一个电子邮件,它添加了Locallhost的URL,有人无法在他的浏览器中访问。



谢谢

解决方案

您需要使用已部署/托管的URL而不是localhost。



添加可以帮助您的参考



http://mikepope.com/blog/DisplayBlog.aspx?permalink=2267 [ ^ ]



http://www.aspsnippets.com/Articles/Send-user-Confirmation-电子邮件 - 注册后激活 - 链接在ASPNet.aspx [ ^ ]


Hellow pals,i have an application for registering students.One page is called Registration and another one called CompleteRegistration.What am doing is register students and then send to them the link to complete registration in the email.At now, i have coded the url for my locallhost in my page Registration.But the problem is that i have deployed the application but i need someone to explain to me how i can get the url for Complete Registration since now it would has changed and currently when i send an email,it adds the url for the Locallhost which someone cannot access in his browser.

Thanks

解决方案

You need to use the deployed/hosted url instead of localhost.

Adding reference which can help you

http://mikepope.com/blog/DisplayBlog.aspx?permalink=2267[^]

http://www.aspsnippets.com/Articles/Send-user-Confirmation-email-after-Registration-with-Activation-Link-in-ASPNet.aspx[^]


这篇关于如何在浏览器中获取页面的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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