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.
Justin Dutoit - 02 Apr 2008 01:33 GMT
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>
> Hi,
> On my form I have a txtbox say txtbox1 as part of a number of
[quoted text clipped - 10 lines]
> making
> the click event occur without them tabbing off the field.