I am working on ASP.NET that has 2 folders/directories named Test1 and Test2.
How can I redirect the user from Test1 to Test2?
I get a 404 error with this code:
if (!User.IsInRole("admin")){
Response.Redirect("../Test2/Login.asxp");
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
could it be:
you have asxp
There are many other things it could be most of which fall in to the typos category. What is the resulting URL that is in the address bar of your browser when you get a 404 page? Have you saved the Login.aspx page that resides in Test2?