Handling ASP.NET custom Control PostData in OnInit or IPostBackDataHandler
Posted by: Rick Strahls WebLog,
on 26 Jul 2006 |
View original | Bookmarked: 0 time(s)
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 =...