in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Seek Help : Problem in using ASPxTabControl

Last post 11/13/2008 11:13 PM by Pak Kwan Jim. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 11/12/2008 12:34 AM

    Seek Help : Problem in using ASPxTabControl

    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!

     

  • 11/13/2008 2:56 AM In reply to

    Re: Seek Help : Problem in using ASPxTabControl

    Hello

    I believe that you need to set the EnableHierarchyRecreation property to true.

    Thanks, Roman
    R&D, .Net Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
  • 11/13/2008 11:13 PM In reply to

    Re: Seek Help : Problem in using ASPxTabControl

    Dear Roman,

    Thanks a lot and I will try.

     

Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED