Treeview control error when using autopostback

Discussion in 'ASP .Net Web Controls' started by Stuck, Apr 1, 2004.

  1. Stuck

    Stuck Guest

    I have created a new c# class which inherits the Microsoft treeview control. I have set autopostback = true in the constructor of my new class. I have created a new web page and created an instance of my new class and populated it from an XML file using code. I then add my control to the page so that it is displayed. All this works fine, but when a user clicks on a node that has child nodes I get the following error: Object expected. Then when I press break I get a there is no source code for the following location. Can any one suggest why I might be getting this error

    All I want to do is beable to access the OnSelectedIndexChange event in my new inherited TreeView class
    Stuck, Apr 1, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex D.

    treeview and autopostback

    Alex D., Oct 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    7,533
    Alejandro Penate-Diaz
    Oct 30, 2005
  2. Dmitry Perets
    Replies:
    0
    Views:
    479
    Dmitry Perets
    Mar 20, 2007
  3. Dmitry Perets

    TreeView checkboxes AutoPostBack with AJAX

    Dmitry Perets, Mar 20, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    829
    bruce barker
    Mar 20, 2007
  4. Stefan
    Replies:
    0
    Views:
    153
    Stefan
    Jul 18, 2003
  5. Stu

    Treeview JS error when AutoPostBack=True...

    Stu, Jul 23, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    118
Loading...

Share This Page