Problem with default button and RequiredFieldValidator

M

MatsL

If I create a simple form with a panel a textbox and button and a
RequiredFieldValidator for the textbox. I define the default button on
the panel. When i open the form and press enter i get a warning from
the RequiredFieldValidator. If i press enter once more the page will be
postback even if the textbox is empty. If i click the button on the
panel with the mouse i get the RequiredFieldValidator error every time.
Any ideas why??

// Mats
 

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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top