Condividi tramite


Dan Wahlin on ASP.NET 2.0 Tips and Tricks

Dan Wahlin has a great post on ASP.NET 2.0 Tips and Tricks. Honestly, I talk about ASP.NET 2.0 to customers at least twice a week, and I didn't know about some of these tips. His blog entry shows how ASP.NET 2.0 makes it easy to:

  1. Maintain the position of the scrollbar on postbacks
  2. Set the default focus to a control when a page loads
  3. Set the default button that is triggered when the user hits the enter key
  4. Locate nested controls easily
  5. Get strongly-typed access to cross-page postback controls
  6. Get strongly-typed access to Master Pages controls
  7. Utilize validation groups

It would be bad form if I just gave it away and showed you the page attribute or property that enables each scenario, Dan put a bit of work into a great blog post that you should go read now. Click here to read Dan's post, "Simple ASP.NET 2.0 Tips and Tricks That You May (Or May Not) Have Heard About".