Skip to: Site menu | Main content
In web development and programming, I often come across useful tidbits that solve a problem for me. I often have those problems again and can't remember that tidbit. Now I will. Maybe you can benefit too.
With many web forms, it's nice to be able to fill out some quick info and hit Enter to submit the form. With .NET where the whole page is a form this can become troublesome when there's multiple submit options on the page. Take this site for instance. When I enter my login info and hit enter I don't want to search the site, so I might want to specify my Login button as the default. In .NET 2.0, along comes the defaultbutton form attribute. Just specify which button you want to be the default (eg. defaultbutton="btnLogin") and you're good to go.
Relevant Tags: ASP.NET
[ Back to previous page ]
- DevGuru - Transact-SQL Reference - Google - More Helpful Links
.NET | AJAX | Apache | ASP.NET | Browsers | C# | CSS | IIS | InfoPath | JavaScript | MS SQL | MySQL | PHP | Search | Security | SharePoint | VB.NET
User: Pass: