ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1733
Number of posts: 3304

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
fetching data to treeview Posted by Manojsa on 9 Dec 2008 at 11:06 PM
Hi All,

I have five DropDownList box in my page,and the first DropDownList is fetching data from a databse table in page load.When I select an item from the first DropDownList,four other DropDownList will be populated with the corresponding data from the database table as per the the selection of an item from the first DropDownList.Now I have to click a button on the same page which will go to another page having a TreeView control in it.The TreeView control will be populated with data from a database table as per the selection of item in the previous page first DropDownList.

How can I do this.Plz Help

Thanks and regards
Manojsa
Report
Re: fetching data to treeview Posted by Brutes on 14 Jan 2009 at 4:25 AM
Hi,

I not sure exactly what it is you need to know?
populating Dropdown list, navigating to a new page or populating a treeview?
Report
Re: fetching data to treeview Posted by shashikantht on 20 Jan 2009 at 10:53 PM
You store the selected item from first dropdownlist in a querystring or sessions and it will be available to the next page.so based upon the selected item pop the data from the database to tree view...


eg:
request.querystring["item"]=dropdownlist1.selecteditem.text;

Session["item"]=dropdownlist1.selecteditem.text;




Happy Programming



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.