Breakpoint in Page load bypassed

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?
 
A

Aidy

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.
 
E

Elmo Watson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top