Response.redirect没有加载页面 [英] Response.redirect not loading the page
问题描述
我有一个名为DoneRequestToRecruitAuth.aspx的页面,当它在asp.net中设置为起始页面时它会完美加载
但是从主页重定向此页面。 aspx到DoneRequestToRecruitAuth.aspx使用
Response.Redirect( < span class =code-string> DoneRequestToRecruitAuth.aspx);
我收到错误
HTTP 404.您要查找的资源(或其中一个依赖项)可能已被删除,名称已更改或暂时不可用。请查看以下网址并确保拼写正确。
如果从response.redirect重定向并且我在同一项目中有其他页面,为什么不加载加载正常。
你的主页可能在roor结构中,但另一个页面在根结构之外的其他文件夹中。
尝试一下
Response.Redirect( 〜/ Foldername / DoneRequestToRecruitAuth.aspx);
或
Response.Redirect(〜 /DoneRequestToRecruitAuth.aspx);
引用:感谢您的提议Tadit,我已经更改了要求,现在对我没问题。 :)
只需添加即可从未答复列表中移动它。 :)
I have a page called DoneRequestToRecruitAuth.aspx and it loads perfectly when it has been set as start page in asp.net
But redirect this page from homepage.aspx to DoneRequestToRecruitAuth.aspx using
Response.Redirect("DoneRequestToRecruitAuth.aspx");
I am getting an error
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Why it's not loading if it redirect from response.redirect and I have other pages in same project which loads fine.
it may possible that your home page is in the roor structure but the other page is inside some other folder than the root structure.
try something
Response.Redirect("~/Foldername/DoneRequestToRecruitAuth.aspx");
OR
Response.Redirect("~/DoneRequestToRecruitAuth.aspx");
Quote:Thanks for your offer Tadit, I have changed the requirement and it's okay for me now. :)
Just adding to move it from Unanswered list. :)
这篇关于Response.redirect没有加载页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!