Results 1 to 4 of 4

Thread: Dynamic Tab

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    111

    Dynamic Tab

    Hi,

    I am trying to create dynamic tab using the below code but i am getting error.

    ccc Code:
    1. Dim myTab As New AjaxControlToolkit.TabPanel
    2.         myTab.ID = "myTab"
    3.         myTab.HeaderText = "Dynamic Tab"
    4.         Dim myLabel As New Label()
    5.         myLabel.Text = "hi"
    6.         myTab.Controls.Add(myLabel)
    7.         Me.TabContainer1.Tabs.Add(myTab)

    Error : AjaxControltoolkit.tabpanel is not defined

    I have checked in reference that AjaxControlToolkit.dll is added well. Please let me know if some other class need to import to solve this issue.

    BR,

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Dynamic Tab

    Have you got the necessary Imports/using statement at the top of your code file?

    If you hover over the offending item in the code window, are you not offered a fix?

    Gary

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    111

    Re: Dynamic Tab

    I fixed the issue, by restarting the VS2008.
    thank you

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Dynamic Tab

    Hey,

    Glad to hear that you got this resolved!!

    It's strange that you had to restart Visual Studio though.

    Gary

    P.S. Can you remember to mark your thread as resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width