|
 |
aspx thread: html button running as server control causes linkbutton to go to wrong event handler!!
Message #1 by "Will" <mrwillj49@h...> on Fri, 7 Mar 2003 16:41:38
|
|
Does anyone know if there is a bug in .net visual studio with event
handling? I've seen two strange things occurring.
1. I have three link buttons and one html button running as a server
control, but when I click any of the link buttons they end up being
handled by the html button's event handler in my code.
2. I have a couple of html buttons which I have set to be run as server
controls. I specified two different event handlers in my code, but a click
on either button ends up being handled by the event handler of the first
button created.
anyone else seen something like this or know how it can be fixed?
thnx.
Message #2 by "Charles Heyneman" <cheyneman@i...> on Fri, 14 Mar 2003 15:52:25
|
|
Pervasive problem relating to HTML? If I include a button, even an
<asp:Button>, and a few text boxes that have onTextChanged events and are
set to autopost these methods will not be called when the user hits the
enterkey to leave the text box. However if the user hits the tab key the
text box event does get called. It seems that using the enter key
causes the button onclick or oncommand event to take presidence over the
text box event. We have implemented a client side script to restate the
enterkey press with a tabkey press.
> Does anyone know if there is a bug in .net visual studio with event
h> andling? I've seen two strange things occurring.
> 1. I have three link buttons and one html button running as a server
c> ontrol, but when I click any of the link buttons they end up being
h> andled by the html button's event handler in my code.
> 2. I have a couple of html buttons which I have set to be run as server
c> ontrols. I specified two different event handlers in my code, but a
click
o> n either button ends up being handled by the event handler of the
first
b> utton created.
> anyone else seen something like this or know how it can be fixed?
>
t> hnx.
Message #3 by "J Donahue" <jdonahue@f...> on Fri, 14 Mar 2003 16:01:09
|
|
Will... My guess is that you specified incorrect event handlers in your
HTML. If you're still having this problem, post your button & link html
so I can look at it.
> Does anyone know if there is a bug in .net visual studio with event
h> andling? I've seen two strange things occurring.
> 1. I have three link buttons and one html button running as a server
c> ontrol, but when I click any of the link buttons they end up being
h> andled by the html button's event handler in my code.
> 2. I have a couple of html buttons which I have set to be run as server
c> ontrols. I specified two different event handlers in my code, but a
click
o> n either button ends up being handled by the event handler of the
first
b> utton created.
> anyone else seen something like this or know how it can be fixed?
>
t> hnx.
|
|
 |