2016-11-30 88 views
0

我们正在使用断开连接的体系结构。前端是ExtJs,后端我们使用处理程序(.ashx)。假设我给URL为“https://appdomain.com/#settings/department/sso”我如何从后端获取完整的url名称。 我尝试使用HttpContext.Current.Request.Url.AbsoluteUri但只返回 “https://appdomain.com”,假如我给你“https://appdomain.com/loginpage.aspx” 这一点,我们可以很容易地检索使用HttpContext.Current.Request.Url.AbsoluteUri。 有没有人试过这个请。如何在asp.net中获取完整的请求URL

+0

就以http://stackoverflow.com/questions/1346489/how-do-i-get-the-url-part-after-a-from-httprequestbase –

+0

@Amit看看按照我的回答 – Alex

回答

0

您无法获取#settings/department/sso部分。
#发送到服务器后没有任何内容。

+0

感谢亚历克斯。但是,当我给response.redirect(“https://appdomain.com/#settings/department/sso”)它重定向到正确的路径。所以我应该得到的路径rt? – Raj

+0

对不起,我不明白您的评论 – Alex

+0

对不起,我均值当我给的Response.Redirect(“https://appdomain.com/#settings/department/sso”)将其重定向到正确的路径。所以我应该从后端rt得到路径? – Raj