lundi 11 mai 2015

Page redirection not hitting break points in Visual Studio

I have a survey application which user fills the info and then clicks Submit and gets redirected to other page(Success.aspx) which simply shows a message "Survey was saved!"

After that I want to redirect user automatically to the login page. I found the following code:

<meta http-equiv="refresh" content="3;url=Login.aspx/" />

Above code "Does" work. User gets redirected to login.aspx after 3 seconds, however code does not break in Visual Studio(2013) anymore. If user tries to login, code directs him to the survey page Response.Redirect("Survey.aspx")

but the break point that I put in the load even of that page will no longer works.

If I remove

 <meta http-equiv="refresh" content="3;url=Login.aspx/" />

Breakpoints work again! Is this a known issue?

Aucun commentaire:

Enregistrer un commentaire