Breakpoint in Page load bypassed

  • Thread starter Thread starter Elmo Watson
  • Start date Start date
E

Elmo Watson

I'm running a page, with a link which includes a querystring, pointing to a
second page.
when I click on the link, I need to make sure all the necessary items are
correct when the second page loads.

I put several breakpoints in the Page_Load event (which contains an if/then
Postback section), including at the "if" line, - but as soon as I run the
application, all the breakpoints in the Page_load are completely bypassed,
never breaking

breakpoints work on other pages and debug=true in Web.config.

I've tried them on and - just not this one....any ideas I can check?
 
Is the Page_Load firing?

If you are generating the link yourself make sure it is pointing to the
right server and you haven't made a typo.
 
At first I thought it wasn't but it was running code I didn't have active.
I found the problem - very weird - - I had inherited this app, and had
commented out quite a bit of code, early on...
I found that it was actually running the commented code (no matter how many
times I saved) and it was skipping my code - I even had a break point on the
initial line of the Page_Load event, which wasn't hit...

I removed all the commented code and it worked just fine.
go figure
 
Back
Top