Form submit in textbox when enter key hit

  • Thread starter William Buchanan
  • Start date
W

William Buchanan

Hi folks

I have a text box and a linkbutton on my home page. The linkbutton has a
postbackurl of "Page2.aspx" which displays result and also has it's own
search textbox.

On the home page, if I click the link button it works fine. However, if I
hit the Enter key in the text box, the page submits itself back to itself.

How can I get my home page to submit to Page2.aspx if Enter is hit in the
Textbox?

Thanks

Will
 
W

William Buchanan

Hi Steve

Thanks for the reply. Sorry for the delay in replying.

I couldn't get either option working. The trouble is (I should have
mentioned this) I am using master pages. I'm not sure if this is something
to do with the problem but either way the TieButton javascript was failing
because it couldn't find the objects it was referencing (which is strange
because they did exist (obviously because it compiled ok).

I will try again tonight!!

Thanks again.

Will
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top