Click here to Skip to main content
15,798,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application im poping up an error message to the users though modal popup.Now i want to redirect the user to login page upon clicking ok.the problem now is that the user gets no view of the message and login page is show;

if (sqlReader.HasRows)
               ddlistschool.DataSource = sqlReader;
               ddlistschool.DataTextField = "College";
               ddlistschool.DataValueField = "College";

               lbldisplay.Text = "Test";

I only want to redirect the user to the login page after the user has read the meassage and click ok on the modal up..any ideas of achieving this


1 solution

Move your Response.Redirect into Button Handler code for the OK button. Right now you are simply redirecting directly without even giving the user a chance to see the message box.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900