textbox event not triggering until tabbing off

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.
RobertSmith [ Di, 01 April 2008 19:23 ] [ ID #1932674 ]

Re: textbox event not triggering until tabbing off

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>






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

</form>


"Robert Smith" <RobertSmith [at] discussions.microsoft.com> wrote in message
news:1F21F0C4-36AE-41B2-B1C7-A6DCCBA25243 [at] microsoft.com...
> 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.
>
Todd_Calhoun [ Mi, 02 April 2008 02:33 ] [ ID #1933608 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » textbox event not triggering until tabbing off

Vorheriges Thema: Problem with Sorting AND Paging in a GridView
Nächstes Thema: Re: Use Master Page functions in a Content Page?