C
csgraham74
Hi,
im currently building a web page that incorporates a webcontrol.
on my webcontrol i have a textbox and a button see below
TEXTBOX
<asp:textbox class="mainText" id="txt_QuickSearch" Width="164px"
runat="server"></asp:textbox>
INPUT BOX
<DIV align="right"> <INPUT id="img_Search" type="image"
height="12" width="34" src="/wb_WatsonDotNet/Images/titles/search.gif"
name="img_Search" runat="server">
the problem that i am having is that i want to enter details i the
textbox and press enter then it will automatically fire the event on
the input button.
I have tried the 2 following methods but they do not work.
Page.RegisterHiddenField("__EVENTTARGET", "img_Search")
txt_QuickSearch.Attributes.Add("onkeypress", "submitForm(" &
img_Search.ClientID & ");")
Can anyone give me some assistance with this please.
all help appreciated
im currently building a web page that incorporates a webcontrol.
on my webcontrol i have a textbox and a button see below
TEXTBOX
<asp:textbox class="mainText" id="txt_QuickSearch" Width="164px"
runat="server"></asp:textbox>
INPUT BOX
<DIV align="right"> <INPUT id="img_Search" type="image"
height="12" width="34" src="/wb_WatsonDotNet/Images/titles/search.gif"
name="img_Search" runat="server">
the problem that i am having is that i want to enter details i the
textbox and press enter then it will automatically fire the event on
the input button.
I have tried the 2 following methods but they do not work.
Page.RegisterHiddenField("__EVENTTARGET", "img_Search")
txt_QuickSearch.Attributes.Add("onkeypress", "submitForm(" &
img_Search.ClientID & ");")
Can anyone give me some assistance with this please.
all help appreciated