0
Reply

passing values between pages

richard 0

richard 0

Jul 10 2004 8:49 PM
2k
I have 3 pages: 1. job.aspx a list of jobs being advertises with a hyperlink to see details: >See Details 2. the jobdetails page which opens the full set of details based on the requested jobid querystrng All that works fine 3. giveaccess.aspx the user is directed to giveaccess.aspx to login to see the jobdetails page. I am using cookies to authenticate NOT forms authentiaction (deliberaterly) ALL that works fine. The problem is that I want to include the requested jobid in the return url string on the giveaccess page once the user has been authenitcatred. How can I do this? The code snippet for the giveacess page is: Response.Cookies["username"].Value = username.Value; reader.Close(); string returnUrl = Request.Form["gstring"]; if (returnUrl == null) returnUrl = "in.aspx"; Response.Redirect(returnUrl); I want to send the authentiacted user back to the page he requested which will be jobdetails.asp?jobid=(selected job id)