Treeview control error when using autopostback

S

Stuck

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top