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 SinghPosted May 16, 2022, 5:57 AM
Ramco RamcoPosted May 16, 2022, 4:17 AM
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
Sachin SinghPosted May 15, 2022, 3:32 PM
Ramco RamcoPosted May 15, 2022, 3:26 PM
Hi Sachin
Can u pls explain how below code works
OnClientClick="JavaScript:window.history.back(1); return false;"
Thanks
Sachin SinghPosted May 15, 2022, 2:47 PM