In my website I want to redirect the user to the same page on which he/she was before the session timeout.
I tried it by sending the url through querystring, but it didn't work out as the url also contained "&".
My url was: Default.aspx?FileID=23&TabID=3
.
The querystring had only Default.aspx?FileID=23
and TabID was omitted. Is there any way I can also get it? If not with querystring, is there any other method?
When Session timeout try this, if using forms auth just FormsAuthentication.RedirectToLoginPage(); is enough but if you want to redirect to some other page than login use custom line below. and use Server.UrlEncode to allow & in querystring