ASP.NET ListBoxes, SelectedValue and ViewState

Posted by: Rick Strahls WebLog, on 18 Mar 2006 | View original | NEW Bookmarked: 0 time(s)

Aarrgh. Am I the only one who's repeatedly cursing the way ListBoxes and the OnSelectedIndexChanged event and SelectedValue assignments work in ASP.NET when ViewState is off?   If you turn off ViewState on a ListBox or DropDownList control it's a real bitch to deal with the OnSelectedIndexChanged event. Take the following scenario assuming you set ViewState off for the lstCustomers control:   protected void Page_Load(object sender, EventArgs e) {     Customer = new busCustomer();    ...

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 3164 | Hits: 321

Similar Posts

  • ASP.NET MVC: DevExpress Mail Demo more
  • New article: How to detect and avoid memory and resources leaks in .NET applications more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • ASP.NET Performance Improvements in DevExpress 2009 volume 2 more
  • Create or Manage XPDL 1.0 & 2.1 packages using Aspose.Workflow more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • Create charts & add ad hoc capabilities to .NET Web & WinForm apps more
  • Live Mesh as an application platform more
  • Teleriks Q2 2009 Release Expands All-in-one .NET Offering more
  • ASPxperience Features in 2009 volume 2 Release more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD