E
Evert Wiesenekker
I have a mail page with a send button containing three validators (2
required val. and 1 expression val.). The masterpage contains 3
imagebuttons.
Now when I press enter the first time the validators do their work. But
when I press enter again one of the imagebuttons on the masterpage is
fired.
When I remove al validators everything works fine...
I tried the following options for setting the DefaultButton:
Option 1
HtmlForm mainForm = (HtmlForm)Master.FindControl("masterForm");
mainForm.DefaultButton = sendImageButton.UniqueID;
Option 2
Page.Form.DefaultButton = sendImageButton.UniqueID;
required val. and 1 expression val.). The masterpage contains 3
imagebuttons.
Now when I press enter the first time the validators do their work. But
when I press enter again one of the imagebuttons on the masterpage is
fired.
When I remove al validators everything works fine...
I tried the following options for setting the DefaultButton:
Option 1
HtmlForm mainForm = (HtmlForm)Master.FindControl("masterForm");
mainForm.DefaultButton = sendImageButton.UniqueID;
Option 2
Page.Form.DefaultButton = sendImageButton.UniqueID;