469,931 Members | 2,652 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,931 developers. It's quick & easy.

Regardin the enter key press event

I have a registration page with no of text boxes and 3 buttons for
insert update and delete. and a logout button on the top of the page.
If i place my control in an of the text box and press enter key it
automatically goes to the logout button and it logouts.
Actually when i press the enter key it should avctivate either of the
insert,update and delete buttons whchever is active.
Please let me know how to do this?
How can i overcome this enter key problem>

May 2 '07 #1
2 1916
Set the DefaultButton attribute of the <formto set the desired button which
should be invoked when Enter key is pressed.

Hope this is what you are looking for.

"Greoasy" wrote:
I have a registration page with no of text boxes and 3 buttons for
insert update and delete. and a logout button on the top of the page.
If i place my control in an of the text box and press enter key it
automatically goes to the logout button and it logouts.
Actually when i press the enter key it should avctivate either of the
insert,update and delete buttons whchever is active.
Please let me know how to do this?
How can i overcome this enter key problem>

May 2 '07 #2
On May 2, 3:14 pm, Siva M <shiva...@online.excite.comwrote:
Set the DefaultButton attribute of the <formto set the desired button which
should be invoked when Enter key is pressed.

Hope this is what you are looking for.

"Greoasy" wrote:
I have a registration page with no of text boxes and 3 buttons for
insert update and delete. and a logout button on the top of the page.
If i place my control in an of the text box and press enter key it
automatically goes to the logout button and it logouts.
Actually when i press the enter key it should avctivate either of the
insert,update and delete buttons whchever is active.
Please let me know how to do this?
How can i overcome this enter key problem>- Hide quoted text -

- Show quoted text -
Hello,

Ya i tried with that and this works fine if there is a single button
on the form.But my page contains 3 buttons and each should be
activated depending on the functions performed.
for ex if i select new button my insert key should be activated when i
press the enter key.same way for delete and update.
can u help me in this...

May 3 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jose Egea | last post: by
reply views Thread by Lalit Bhatia | last post: by
6 posts views Thread by guoqi zheng | last post: by
4 posts views Thread by portCo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.