I am developing a project using C # .net. Here, on the main page, I have a button for searching, which will be redirected to different pages in the project.
I use "~ / searchpage.aspx" to redirect to other pages, which some pages are in the folders of the root folder and sub-root. All pages inherit the main page file.
Response.Redirect ("~ / testSearch.aspx");
The above code in some scenarios. which is the best approach to redirecting to other pages from the main page.
source
share