Strange behavior with server web controls

  • Thread starter Thread starter news.public.microsoft.com
  • Start date Start date
N

news.public.microsoft.com

Hi,

I don't know if anybody else experienced this, but sometimes, I can't set
breakpoints the event code of a button on a form for some reason. The code
still executes, but I can't stop the execution with a breakpoint. While
compiling, a question mark appears in the red dot on the left side of the
code editor and if I hover my mouse over it, it says

"The breakpoint will not currently be hit. No executable code is associated
with this line."

The last time I experienced this, I has to copy the event code somewhere
else, delete the form button and recreate it by pasting the code back.
Anybody had this happen to them? Is there an explanation?

Thanks

Eric
 
Just an idea...

Sometimes, VS.NET would erase everything after the Handles clause. Perhaps you
could see if that's the case.

I'm just speculating that the compiler is noticing that without a handler,
there's nothing to call the code.

Ken

Hi,

I don't know if anybody else experienced this, but sometimes, I can't set
breakpoints the event code of a button on a form for some reason. The code
still executes, but I can't stop the execution with a breakpoint. While
compiling, a question mark appears in the red dot on the left side of the
code editor and if I hover my mouse over it, it says

"The breakpoint will not currently be hit. No executable code is associated
with this line."

The last time I experienced this, I has to copy the event code somewhere
else, delete the form button and recreate it by pasting the code back.
Anybody had this happen to them? Is there an explanation?

Thanks

Eric
 
Back
Top