Our web app has multiple pages. Default.aspx is meant to be the start page. I'm trying to code something to guard against a user bookmarking another page such as Actions.aspx. Session["intCaseID"] is set in the Default.aspx page so if it is null then the user must have bookmarked the Actions.aspx page.
The code below will transfer a user to Default.aspx but will not display the message box. I expected the page to wait until the user had clicked the "OK" button before it executed the response.redirect. Why did it not wait?
if (Session["intCaseID"] == null)
Utility.MessageBox("Redirecting you to the start page...");