TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
pvathy
NA
3
0
populating treeview from a class returning treeview
Feb 26 2010 5:47 AM
Hello,
** I have created a class to build and return a treeview.
** On my web page, I have created a 'treeview control' and I want to populate this treeview control from the class that returns the treeview.
** When I debug the application, I see that the class is building the tree perfectly with the nodes and all. The debug watch window shows that the treeview control in the page also gets the data from this 'treeview' returned by the class correctly.
** The problem is the 'TREEVIEW CONTROL' is not displaying anything on the page itself.
eg:
CLASS RETURNING TREEVIEW:
namespace mytree
{
public class buildtree
{
public treeview fill_my_tree()
{
logic written here to fill the tree;
return(mytreeview);
}
}
}
IN MY WEBPAGE:
buildtree tree1= new buildtree();
treeview1 = tree1.fill_my_tree();
PROBLEM: treeview1 in debug mode shows the nodes in the watch window. But, nothing is displayed on the user screen.
Can someone help me? Thanks for your help and time.
FYI: I am developing in c#, VS 2008.
Thanks..
Reply
Answers (
2
)
Viewstate
how to send emails through smtp in asp.net..i have worked with this..and i want to know how to retrive emais in asp.net using pop3 service