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.

 

return_fix

 

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

Imran Ali Arif10/22/2009 12:00:22 PM

thanks for the nice and easiest way...


Tilføj en kommentar

Navn
Email (Bliver ikke vist på siden)
Hjemmeside
Hvad er 1 + 3?
Kommentar
 
Copyright © 2005 - 2010 Daniel Nøhr. All rights reserved