A button that only works on second click - why?

  • Thread starter WISEMANOFNARNIA
  • Start date
W

WISEMANOFNARNIA

I have an asp.net page that reads from a database and fills some form
fields. Then, if the user hit "cancel", a response.redirect to
another page is executed. I find that I have to click the cancel
button twice before the redirect happens.
I used the debugger, and found that the 'cancel' code is not even
executed on the first click, only on the second.
If anyone has ideas, please let me know.
-- Marvin
 
D

densial

I have an asp.net page that reads from a database and fills some form
fields. Then, if the user hit "cancel", a response.redirect to
another page is executed. I find that I have to click the cancel
button twice before the redirect happens.
I used the debugger, and found that the 'cancel' code is not even
executed on the first click, only on the second.
If anyone has ideas, please let me know.
-- Marvin

are they dynamically created? make sure they have an ID.
 
W

WISEMANOFNARNIA

are they dynamically created? make sure they have an ID.

My problem was that I set a variable called "ID" to a value in a
procedure. I'm not sure whether I declared ID, more likely I didn't.
Microsoft must use "ID" for something. When I renamed "ID" to
"IDofTable", my pointer problem went away, and the cancel button
started working.
 

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,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top