I have gotten mixed up in the past with regards to file paths (relative, physical, etc.). With my following project structure:
Solution MySolution - MyProject -MiniApp Folder -MiniApp.aspx -Default.aspx -Default2.aspx
Please provide examples on redirection (ex. Response.Redirect(‘~/Default.aspx’)) navigation from:
- Default.aspx to MiniApp.aspx
- MiniApp.aspx to Default.aspx
- Default.aspx to Default2.aspx
using:
- Physical Path
- Relative Path
- Any additional paths that I’ve omitted
Thanks!
you should NOT use physical path to redirect.
~ will resolve to the root of YOUR APPLICATION /MyProject
the code below will redirect to those pages from ANY PAGE