Gautam Buddha Temple Varanasi,Varanasi - Buddhist Pilgrimage

Wednesday, September 1, 2010

How to handle OnActiveTabChanged event of AJAX Tab control

This Articles explian how to handle ActiveTabChanged Event of AJAX TabControl in asp.net.

ActiveTabIndex="0" BorderStyle="None" Width="742px" BorderWidth="0" OnActiveTabChanged="tbcRatingMaster_ActiveTabChanged"
AutoPostBack="True">


protected void tbcRatingMaster_ActiveTabChanged(object sender, EventArgs e)
{
if (tbcRatingMaster.ActiveTabIndex == 0)
{
//AddGrpBind();
btnSaveRG.Text = "Save";
txtGroup.Text = "";
txtGroup.Text = "";
}
if (tbcRatingMaster.ActiveTabIndex == 1)
{
txtItem.Text = "";
}
if (tbcRatingMaster.ActiveTabIndex == 2)
{
rbtnType.SelectedValue = "P";
gvRating.Visible = false;
txtItem.Text = "";
txtGroup.Text = "";
}
}

Thanks & Regards
Santosh Singh

1 comment: