Click here to Skip to main content
15,922,145 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello experts,

in master page I have a <td> Che</td>
onclick event of this td tag I am redirecting to another page through window.location="Study/Che/Chem.aspx"

in chem.aspx when I click on <td>Che</td> I got an error page not found.

I know it is trying to find the file in current folder che ie url is : Study/Che/Study/Che/Chem.aspx

I want some code on master page so that it will redirect me to right page.

is not working

1 solution

If you know it is always going to be in the same folder, simply redirect to "Chem.aspx":

window.location = 'Chem.aspx';
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900