Hi,
I have a custom control with a UpdatePanel inside. Depending of user action or page programing I call Update method of my UpdatePanel to refresh html portion to user.For example, I created a property called Title. If the Title change i call Update of my UpdatePanel.public string Title
{
get
{
return labelTitle.Text;
}
set
{
if (labelTitle.Text != value)
{
labelTitle.Text = value;
panelUpdate.Update(); // Refresh the entire control
}
}
}
But if the Title property is configured on aspx file, my UpdatePanel is always refreshed because my Title property is setted on Init stage of page life cycle.I need to know if this property is setted on init stage or if ViewState is restored to avoid call Update, or any tips to avoid refresh my control everytime.
Thanks,Tales Aguiar.
View Complete Post