ASP.NET submit default button
12/18/2006 12:00:00 AM
Today I did get some problems with a test person, he should try
fill out a form on one of my projects, but did submit the wrong
button, and thats because a asp.net page is a big form, so you cant
be sure which button which is default unless you make it
default.
As you can see on the picture above it could be a simple form
you want to fill out, you can also have a lot of forms you the page
you're working with!
But to solve the problem one of the options i did feel the most
correct one is to put an asp:Panel around it and use the panel
property 'DefaultButton'
Thats quite nice and you always hit the right button after
filling the form and hit return.
Kommentarer
Tilføj en kommentar