how to redirect from one page to another by using javascript function.
window.location.href='testPage.aspx' ; is not working.
Page Redirect
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Riddhi ValechaRank #794 · 2.9K reputationPosted Nov 9, 2012, 11:43 PM EST
Redirect the pages using Response.Redirect("");
That is a better option than using Javascript
Also, now Dart will soon be a competitor to Javascript...
Hope this helps !!
Neha SharmaRank #569 · 4.3K reputationPosted Nov 10, 2012, 1:35 AM EST
You can use :
or if you have your desired page in any folder use ../,may be it works for you.
If it works mark it as answer else let me know the next issue.