C Curt_C [MVP] Jan 12, 2004 #1 That's where it's set to POST to then..... did you specify a different page ?
H Harry Jan 12, 2004 #2 Hi all, I have a number of imagebuttons on a page and when the user enters data into a text field I would like for the page to submit. How would I do that? Currently, if the user hits Enter, it just posts to the server and returns to the same page. Thanks Harry
Hi all, I have a number of imagebuttons on a page and when the user enters data into a text field I would like for the page to submit. How would I do that? Currently, if the user hits Enter, it just posts to the server and returns to the same page. Thanks Harry
S Steve C. Orr [MVP, MCSD] Jan 12, 2004 #3 You can intercept the client side enter keypress event of the text box and then click do what you want using javascript code. Here's a good example: http://www.kamp-hansen.dk/pages/showdoc.asp?id=28&menuid=21&menuid=18 You could also try using this free control. http://www.metabuilders.com/tools/DefaultButtons.aspx And here's a good article on the subject: http://www.allasp.net/enterkey.aspx
You can intercept the client side enter keypress event of the text box and then click do what you want using javascript code. Here's a good example: http://www.kamp-hansen.dk/pages/showdoc.asp?id=28&menuid=21&menuid=18 You could also try using this free control. http://www.metabuilders.com/tools/DefaultButtons.aspx And here's a good article on the subject: http://www.allasp.net/enterkey.aspx
H Harry Jan 13, 2004 #4 Thanks Steve, Page.RegisterHiddenField("__EVENTTARGET", btnSearch.ClientID) did the trick.