只用数据库填充C#ASP

只用数据库填充C#ASP

本文介绍了如何用数据库填充ASP:treeview,只用数据库填充C#ASP.NET?卷筒纸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

如何填充asp:treeview只有子数据库填充数据库查询,如select dataname from databse where user_id =45并在子treeviewm中显示这些数据库。这是图像

我希望数据库保持不变并且吹子databsename,数据库名字全部显示打击,只显示第1,第3,4个数据库,请告诉我我该怎么做,谢谢。我在谷歌搜索但我找不到这个。谢谢



我尝试了什么:



我尝试这个链接,但我无法弄清楚如何开始

http://www.aspsnippets.com/Articles/Populate-Bind-TreeView-from-database-in-ASPNet.aspx

Hi.
How can i populate asp:treeview only child populate with database query like "select databasename from databse where user_id="45" " and show these database in child treeviewm.Here is image image
I want database remain same and blow child databsename,database name all shown blow,only 1st,3,4 database shown just,Kindly tell me how can i do this,Thanks.I search on google but i can't find this.Thanks

What I have tried:

I try this link but i can't figure out how to start
http://www.aspsnippets.com/Articles/Populate-Bind-TreeView-from-database-in-ASPNet.aspx

推荐答案

SELECT name FROM master.dbo.sysdatabases





for bindi数据到树视图参见下面

[]

[]



for binding data to the Treeview refer below
Populate (Bind) TreeView from database in ASP.Net[^]
Populating a TreeView Control from the Database[^]


这篇关于如何用数据库填充ASP:treeview,只用数据库填充C#ASP.NET?卷筒纸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 04:31