From what I understand from the question: you want the application to remember the authentication required page. If a user visits that page without authentication, the application redirects to the login page and after login, it redirects automatically to the area where the user is coming from. If this is the case, you can do the following.
Example:
1. MyReports.aspx requires authentication.
2. User visits MyReports.aspx
without authentication
In the page load for MyReports.aspx, put the following code:
<br />
if (!IsPostBack)<br />
{<br />
try<br />
{<br />
string tempUserName = Session["UserName"].ToString();<br />
}<br />
catch(Exception ex)<br />
{<br />
Session["LastVisitedURL"] = Request.Url.ToString();<br />
Response.Redirect("LoginPage.aspx");<br />
}<br />
<br />
}<br />
On the LoginPage.aspx Authenticate Button Click Event put the following code
<br />
Button Click Event<br />
{<br />
if Validated<br />
{<br />
try<br />
{<br />
string URLRedirect = Session["LastVisitedURL"].ToString();<br />
Response.Redirect(URLRedirect);<br />
} <br />
catch(Exception ex)<br />
{<br />
Response.Redirect("Dashboard or landing page after authentication");<br />
}<br />
}<br />
}<br />
Sorry if this is not the case for you.
-Nayan