postback issue

E

Eric

Hi,

on my page I have a menu of buttons on the left side and in the middle a
multiview with several views.
On those views I have textboxes with and without postback.

The problem is that if the user hits the Enter button after entering some
information in a textbox with postback set to false, it still does a
postback. It does the postback of the top button in my menu.

How can I prevent this? I just don't want the page to postback when the user
hits the enter button on certain fields.

rg,
Eric

ps. Happy holidays!!
 
E

Eric

Eric said:
Hi,

on my page I have a menu of buttons on the left side and in the middle a
multiview with several views.
On those views I have textboxes with and without postback.

The problem is that if the user hits the Enter button after entering some
information in a textbox with postback set to false, it still does a
postback. It does the postback of the top button in my menu.

How can I prevent this? I just don't want the page to postback when the user
hits the enter button on certain fields.

rg,
Eric

ps. Happy holidays!!

Found one solution:

ctrl.Attributes.Add("onkeydown", "return (event.keyCode!=13);")

rg,
Eric
 

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top