Hi
I have 2 Forms . On Click of button in Form1 page Form5 opens , I want if user clicks Back on Form5 it should go Back to Form1.
If user clicked on button In Form2 it also opens Form5. If user clicks on Back then it should goto Form2 not Form1.
Back button on Form5.
Thanks

Sachin SinghRank #66 · 26.2K reputationPosted May 16, 2022, 1:57 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 15, 2022, 10:47 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 15, 2022, 11:32 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted May 15, 2022, 11:26 AM EDT
Hi Sachin
Can u pls explain how below code works
OnClientClick="JavaScript:window.history.back(1); return false;"
Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted May 16, 2022, 12:17 AM EDT
Hi Sachin
Will the code work if i write on the click of Back Linkbutton
if (Request.UrlReferrer != null)
{
string previousPageUrl = Request.UrlReferrer.AbsoluteUri;
string previousPageName = System.IO.Path.GetFileName(Request.UrlReferrer.AbsolutePath);
}
Thanks