0

I am working on asp.net application.the user is clicks on some link which is inside grid item template field. if he is not logged in then he redirects to login page. after log in he is properly coming back to same page;the problem is that "i have passed the value in querystring to the page where he click on the link and after loggedIn the grid is showing blank because that grid is not getting query string value" I think you understand my problem.plz share your helpful opinion.

6
  • are you using FormsAuthentication.RedirectFromLoginPage(), it will redirect from login page with current url? Commented Apr 10, 2012 at 5:59
  • How can he see the grid on a page he is supposed to login to access, if he's not already logged? Commented Apr 10, 2012 at 6:12
  • he can see the grid before login but when he clicks on link he needs to login first.after login he get back to that page where he click on link. Commented Apr 10, 2012 at 9:15
  • Why does he need to login to see something he can see anyway? Sorry, I just don't get this. Is it because his session timed out? Commented Apr 10, 2012 at 12:37
  • after click on link the new grid will open that grid is only visible to logged user. Commented Apr 10, 2012 at 13:10

2 Answers 2

1

http://www.aspdotnetfaq.com/Faq/what-is-the-difference-between-server-transfer-and-response-redirect-methods.aspx

It is not a defect, but the desired behavior of Response.Redirect.

Sign up to request clarification or add additional context in comments.

Comments

0

Store value in session and retrieve it after he gets back successfully from the login page.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.