G
Guest
Hi
I've got the following in my aspx
<asp:textbox id="findwhat" OnKeyPress="javascript:suggest()"></asp:textbox>
and the suggest function
function suggest()
{
getElementById[btnfind'].click();
}
btnfind is an asp:imagebutton control, with a handler in the codebehind. So
in theory, typing in the box performs whatever action pressing that button
does. Except it doesnt. It reloads the page, completely.
Any idea whats going on!?
Cheers
Dan
I've got the following in my aspx
<asp:textbox id="findwhat" OnKeyPress="javascript:suggest()"></asp:textbox>
and the suggest function
function suggest()
{
getElementById[btnfind'].click();
}
btnfind is an asp:imagebutton control, with a handler in the codebehind. So
in theory, typing in the box performs whatever action pressing that button
does. Except it doesnt. It reloads the page, completely.
Any idea whats going on!?
Cheers
Dan