Handling ASP.NET custom Control PostData in OnInit or IPostBackDataHandler

Posted by: Rick Strahls WebLog, on 26 Jul 2006 | View original

Here’s a basic question for control development. If I have a control that has maybe a single POST value that it needs to retrieve, is it safe to use code like this:   protected override void OnInit(EventArgs e) {     base.OnInit(e);       //// *** Read our custom client managed Form Var that holds the tab selection     if (this.Page.IsPostBack)      {         string TabSelection =...

Advertisement
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

Similar Posts

  • August 9th ASP.NET Link-Listing more
  • CS Dev Guide: Add new page or user control to Control Panel more
  • ASP.NET 2.0 Client Validation Javascript Bug more
  • CS Dev Guide: Add new page or user control to Control Panel more
  • Templates - Part 1 more
  • Templates - Part 2 more
  • Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 5 more
  • Sharepoint 2007 - Enabling Custom Authentication using a Custom Membership Provider more
  • Sharepoint 2007 - Enabling Custom Authentication using a Custom Membership Provider more
  • Examining ASP.NET 2.0's Site Navigation - Part 5 more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | 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