Dilmwregralia
New Member
Hi,<BR><BR> I've got several text boxes on a page that my user wants to tab through by hitting ENTER. I've tried asp:textbox and html textboxes, but the enter key is still causing the default button action of the page to postback on the server (I've got autopostback=false on the text boxes).<BR><BR> Can someone suggest how I can avoid the repost and fake the ENTER to be a TAB?<BR><BR>Thanks,<BR>DeannaYou will need to use javascript to do that. It can't be done server side. You pretty much need to add the javascript to the textbox using something like this textbox.attributes.add("onKeyUp", "FunctionName()") to add javascript functions to your textbox. Take a look at some javascript sites to come up with a way to capture the keyboard events from there.