E
Evert
I have a page which contains an Email textbox having two validators, one
checks if a value is entered and one which checks if the email address is
valid.
The page also has a button (for sending a mail) which I have made a default
button.
The page has a masterpage containing 3 imagebuttons.
Now I have a strange problem when I press Enter the first time (with email
address empty or containing an illegal address) everything works fine (email
validators notify of errors).
No when I press enter the second time (correcting nothing, leaving
everything as it was), one of the imagebuttons of the masterpage is fired.
Other options I tried without luck:
1
HtmlForm masterForm = (HtmlForm)Master.FindControl("masterForm");
masterForm.DefaultButton = sendImageButton.UniqueID;
2
Page.Form.DefaultButton = sendImageButton.UniqueID;
Thanks for any suggestions/help
Evert
checks if a value is entered and one which checks if the email address is
valid.
The page also has a button (for sending a mail) which I have made a default
button.
The page has a masterpage containing 3 imagebuttons.
Now I have a strange problem when I press Enter the first time (with email
address empty or containing an illegal address) everything works fine (email
validators notify of errors).
No when I press enter the second time (correcting nothing, leaving
everything as it was), one of the imagebuttons of the masterpage is fired.
Other options I tried without luck:
1
HtmlForm masterForm = (HtmlForm)Master.FindControl("masterForm");
masterForm.DefaultButton = sendImageButton.UniqueID;
2
Page.Form.DefaultButton = sendImageButton.UniqueID;
Thanks for any suggestions/help
Evert