c# - Response.Redirect from a page inside a folder of web solution? -


in solution have folder fire in have page.i using respose.redirect handle error page error.aspx. writing

catch (system.exception ex) {     //displayerror(ex);     session["exceptiondetails"] = ex;     response.redirect("errorinformationdetails.aspx"); } 

but getting error

resource not found /fire/error.aspx not found.

but other pages in main directory working fine

always use root operator (~) avoid such errors:

response.redirect("~/fire/error.appx"); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -