Dear all,
I use ASPxTabControl with 3 pages in a web page. There are some Labels in each page. I create a method to change the text content of labels in 1st page one by one (actually, the method is to use as translation from English to other language). At runtime, the method do nothing.
Below is some code in Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
……
}
if (plNew == "0") // if new record
{
DPageControl1.TabPages[1].Enabled = true;
DPageControl1.TabPages[2].Enabled = true;
}
else
{ // if not new record
DPageControl1.TabPages[1].Enabled = false;
DPageControl1.TabPages[2].Enabled = false;
}
}
Very strange that, If I cut the "red" code, the method work good. But I don't know why.
Anyone please advise me what is wrong.
P.S. I use MasterPage, and the method is called in Load event of MasterPage.
Thanks a lot!