textbox event not triggering until tabbing off

R

Robert Smith

Hi,
On my form I have a txtbox say txtbox1 as part of a number of
fields, mainly combo boxes that are involved in a search. However I have a
imagebutton called
imgCmdSearchListings with the following event
OnClick="imgCmdSearchListings_Click".

However when a user changes text in a text box but does'nt tab off the field
clicking on the imagebutton does not trigger the OnClick event. They have to
tab off the field in order to trigger this event. Do you know a way of making
the click event occur without them tabbing off the field.
 
J

Justin Dutoit

Hi. My little test worked (below). Can you pl supply the whole file, and the
type of browser, and any other info you can

Cheers,
Justin Dutoit

<script runat="server" language="c#">

public void Image_Click(Object src, EventArgs e)

{


info.Text = "Worked";


}

</script>

<form runat="server">

<asp:TextBox runat="server" id="it" /> <asp:dropdownlist runat="server"
id="it2" />

<asp:imagebutton runat="server" OnClick="Image_Click"></asp:imagebutton>



<br />

<asp:Label runat="server" id="info" />

</form>
 

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,582
Members
45,058
Latest member
QQXCharlot

Latest Threads

Top