asp.net中动态生成 Microsoft.Web.UI.WebControls.TreeView

Microsoft.Web.UI.WebControls 漂亮的结构树,可以自定义树结构图片Microsoft.Web.UI.TreeView, Microsoft.Web.UI.TreeNode 立即下载

撑着油纸伞, 独自彷徨在悠长, 悠长又寂寥的雨巷;

  

 改改数据库,

create view miaoCC
as
SELECT fid AS ID, sname AS Name, pid AS PID
FROM fsort
UNION
SELECT fid AS ID, sname AS Name, sid AS PID
FROM tsort
UNION
SELECT sid AS ID, sname AS Name, fid AS PID
FROM ssort

 

 private  void AddTree(string id,TreeNode pNode)
  {
   SqlConnection myConnection=new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["DB"]);

   DataSet ds=Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteDataset(myConnection,System.Data.CommandType.Text,"select * from miaoCC where PID= '"+id +"'");
   DataView dv=new DataView(ds.Tables[0]);
   
   foreach(DataRowView row in dv)
   {
    TreeNode node=new TreeNode();
    if(pNode==null)
    {
     node.Text=row["Name"].ToString();
     TreeView1.Nodes[0].Nodes.Add(node);
     node.ImageUrl="images/home.gif";
     node.ExpandedImageUrl="images/btn2.gif";
     node.Expanded=false;    
     AddTree(row["ID"].ToString(),node);
    }
    else
    {
        node.Text=row["Name"].ToString();
     node.ID=row["ID"].ToString();
     pNode.Nodes.Add(node);     
     node.Expanded=false;
     node.ImageUrl="images/home.gif";
     node.ExpandedImageUrl="images/btn2.gif";
     AddTree(row["ID"].ToString(),node);
    }
    
   }
  }
 

把3个表用union合并在一起,即实现了经典的迭代算法,;

即在查询中生成了,必须的三列;

ID    Content      ParentID

AddTree("0", (TreeNode)null); 

,然后再调用;

【Docker】如何让docker容器正常使用nvidia显卡 描述了如何在docker容器中使用英伟达显卡的过程和问题解决方法。 阅读详情

相关推荐

ZYNQ程序固化实战:从BOOT.bin生成到QSPI/SD卡双启动模式详解

本文详细解析了ZYNQ 7000系列程序固化的完整流程,重点解决了程序断电丢失问题。通过实战演示,从生成BOOT.bin文件到配置QSPI与SD卡双启动模式,逐步指导开发者实现程序在外部存储中的永久驻留,确保产品脱离调试器独立运行。

weixin_29193259的博客 517

Microsoft.Web.UI.WebControls怎么设置啊,装了也不行,界面不显示

Microsoft.Web.UI.WebControls.dll文件拷贝到了xxxapp项目/bin 下了,还有bulid下的文件----------------今天重找了一个安上ok了,但是看起来版本是一样的

Elysium的专栏 2405

交叉编译Qt6.5.3(RK3568开发板)

注意,如果使用其它版本的交叉编译器的话,请确保你的交叉编译器能够支持 C++17标准。为确保后续交叉编译没问题,需要确保开发板使用的GLIBC版本不小于2.34版本。到 linaro 网站上下载交叉编译工具,我下载的是 gcc-linaro-11.3.1-2022.06-x86_64_aarch64-linux-gnu.tar.xz。安装 CMake ,最低要求3.16版本,如果要静态编译,需要3.21及以上版本。我使用的3.27版本。:指定为最后交叉编译后的Qt6.5.3库的安装目录。

m0_46309425的博客 5102

未能加载文件或程序集“Microsoft.Web.UI.WebControls” (异常来自 HRESULT:0x80070057 (E_INVALIDARG))...

(异常来自 HRESULT:0x80070057 (E_INVALIDARG)) 原因似乎来自 电脑突然断电 程序为完全编译 解决办法 关闭程序 找到C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files 删除该文件夹下的文件 重启程序 OK 转载于:https://www.cnblogs.c...

weixin_33877885的博客 529

ESXI添加硬盘时提示 无法创建 VMFS 数据存储 - 无法更改主机配置

ESXI添加硬盘时提示 无法创建 VMFS 数据存储 - 无法更改主机配置1.打开ESXI的SSH2.找到不能添加的硬盘路径3.用SSH操作 1.打开ESXI的SSH 2.找到不能添加的硬盘路径 我的是第一个,找到你要添加但是不能添加的那个硬盘,点进去。 完整的路劲为:1/2 比如我的: /vmfs/devices/disks/t10.ATA_____ST500LT0122D1DG142___________________________________S3PHRNHQ (比较长哈!) 3.用SSH

AI_DOG的博客 2万+

数字IC设计技能篇之如何在RTL级降低功耗?

以上就是本次降低芯片功耗的部分心得和收获,由于是在芯片设计阶段还没办法后端直接给出power的报告,前端一般使用spyglass和fsdb来进行功耗分析,后续会更新如何使用spyglass在前仿阶段进行power的分析,以及持续更新有关RTL级降低功耗的相关内容。

mzynk的博客 1202

ASP.NET树控件,Microsoft.Web.UI.WebControls加载错误

在装ASP.NET树控件维护完美版 v1.01修正版 的时候出现了:“/tree”应用程序中的服务器错误。 分析器错误 说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 找不到文件或程序集名称“Microsoft.Web.UI.WebControls”,或找不到它的一个依赖项。源错误: 行 1: 行 2: 行 3: 源

疯言疯语 6096

Python经常遇到导入xlwings就出错,如何解决

Python经常在导入xlwings时遇到错误。有人建议尝试重装或升级xlwings,但这些操作后仍然无法解决导入错误问题。

felix_8的博客 1740

.Net中使用TreeView控件的方法

1.一般方法:(1)下载的treeview控件以后减压生成Microsoft.Web.UI.WebControls.dll(2)在wwwroot下创建空目录webctrl_client/1_0。(3)将build/Runtime下的文件拷至webctrl_client/1_0下。(4)选择工具箱的自定义工具箱,添加Microsoft.Web.UI.WebControls.dll。这里初始化的环境配

wang8712的专栏 1617

2026快手爬虫终极指南:JA4+指纹绕过+sign全逆向+AES响应解密(附可运行代码)

快手2026反爬破解实战指南 本文深入剖析快手2026年最新反爬体系,提供完整的破解方案: 四层防御体系:从传输层(JA4+指纹)、应用层(sign参数)、设备层到行为层,90%的爬虫在前两层即被拦截 JA4+指纹绕过:使用curl_cffi模拟Chrome 124的TLS指纹,完美匹配真实浏览器特征 sign参数逆向:通过动态调试提取加密逻辑,Python实现MD5签名算法,包含参数排序和盐值处理 响应解密:破解AES-GCM加密接口数据,完整还原响应内容 技术亮点: 使用curl-impersonate

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 1802

基于YOLOv8的水果新鲜程度检测系统设计与实现

数据采集与预处理模块:负责收集水果图像数据并进行标注和增强深度学习模型:基于YOLOv8的目标检测模型新鲜度评估模块:根据检测结果评估水果新鲜程度用户界面:提供友好的交互界面系统集成:将各模块整合为完整系统水果新鲜程度检测需要包含多种水果在不同新鲜度状态下的图像数据集。:包含5种常见水果(苹果、香蕉、橙子、葡萄、草莓)在不同新鲜度下的图像包含约8,000张图像,分为新鲜和腐烂两类AgriVision:大型农业图像数据集,包含水果检测和分类任务Fruit-360:包含120种水果的高质量图像。

YOLO 444

Microsoft.Web.UI.WebControls treeview 的加载

  如果使用的是   Microsoft   Visual   Studio®   .NET   来开发   asp.NET   web   应用程序,则将   IE   web   控件添加到   asp.NET   web   页是件轻松的事。首先,将   IE   web   控件包含在工具箱中。要完成这项操作,请右击   Toolbox(工具箱),然后选择   Customize

2321

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

如何让treeview默认不选中

修改“TreeView.cs”源码,取消 TreeView 默认选中节点1、TreeView.cs 文件在文中﹐找到 “ protected override void OnLoad(EventArgs e)”事件“ protected override void OnPreRender(EventArgs e)” 事件,修改以下代码 if ((SelectedNodeIndex == "" ||

hanjiangxue的专栏 6559

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

TreeView 错误的解决

现象1编译错误:未定义类型 Microsoft.Web.UI.WebControls.TreeView编译器提示是否继续运行,选择“是”,asp.net页面(usercontent.aspx)可正常显示。 现象2<%@ Page Language="vb" AutoEventWireup="false" Codebehind="test.aspx.vb" src="test.aspx.v...

weixin_30451709的博客 785

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

关于 TreeView WebControl (摘自MSDN)

 关于 TreeView WebControl 目前尚不支持 Microsoft® Internet Explorer WebControl。(本文包含一些指向英文站点的链接。) 本文介绍了 TreeView 控件的使用,此控件可用于帮助生成用户界面,以显示分层的数据集、文件夹视图以及其他类似的数据结构。此控件具有多种强大功能,包括支持数据绑定和高级浏览器中丰富的动态 HTML (DHTML) 行

Bluesky 2076

ASP.NET中TreeView控件使用小结

在上网浏览时有时会看到一些网站在左边采用类似资源管理器的树形结构,在树形结构中单击,在右边显示内容,层次清晰且方便快捷,本文主要介绍ASP.NET服务器控件treeview 的使用方法,treeview控件属于microsoft webcontrols,在下载和使用过程中本人碰到一些问题,通过反复实验,查找资料,找到一些解决办法,现把treeview使用心得写出来,旨在对想在网站中使用树形结构的朋

princelintb的专栏 1702

用ASP、NET开发下载系统(三)

用ASP、NET开发下载系统(三) 前台界面部分主界面主界面是左上部分是一个TreeView控件,用来添加分类信息。主界面是左下部分是一个List控件,用来显示下载信息排行榜。主界面是右边部分是一个DataGrid控件,用来显示下载信息。这是一个基本的界面,如果需要更多功能,请自行扩充!       步骤:新建一项目(选择asp.net应用程序),添加Web 引

李洪根的blog-专注软件开发技术 2839

Microsoft.Web.UI.WebControls生成Treeview的简单方法

 private void Page_Load(object sender, System.EventArgs e)  {   // 在此处放置用户代码以初始化页面   if (!IsPostBack)   {    int strUserCode = int.Parse(Session["UserCode"].ToString());    DataSet ds1 = new DataS

许甘霖的专栏 1877

在C#代码里使用IE WEB Control TreeView

网站目录下需要有Microsoft.Web.UI.WebControls.dll和相应的文件 如大家要转载,请保留本人的版权。 /* *Description:完全的操作XML文件 *Auther:mingziweb_天很蓝 *Email:chongchong2008@msn.com *Dates:22004-09-10 *Copyright:ChongChong2008 YiChang HuBe

1667

关于 TreeView WebControl

关于 TreeView WebControl 目前尚不支持 Microsoft® Internet Explorer WebControl。(本文包含一些指向英文站点的链接。) 本文介绍了 TreeView 控件的使用,此控件可用于帮助生成用户界面,以显示分层的数据集、文件夹视图以及其他类似的数据结构。此控件具有多种强大功能,包括支持数据绑定和高级浏览器中丰富的动态 HTM

Ar7的专栏 2813

IEWebControls安装方法

我想使用一个TreeView控件来显示文件夹的结构,可以在Asp.net中没有默认的Treeview控件,于是,我查找了相关资料,知道微软发布了它的控件IEWebControls.我下载了该控件,并安装到了自己的机器上。 1、下载: 下载的网址 http://msdn.microsoft.com/downloads/samples/internet/asp_dot_net_servercontro

fengzheng 2万+

分享:Microsoft IE Webcontrols Treeview的一个bug及修正

首先感谢思归指点了我如何重用Treeview这个Microsoft IE Webcontrol。相关内容请参见http://community.csdn.net/Expert/TopicView.asp?id=3365114  IE webcontrol可以单独用于html文件中,也可以用于web form的.net 程序;  对于后者,使用中可以通过编程加入节点,也可以绑定;  对于后者,绑

athos 1089

[原创]ASP.NET无限级treeview控件、从数据库提取节点填充方案

注意:本文使用DataSet,如果要看DataReader的填充方案,请参照:http://blog.csdn.net/mail_ricklee/archive/2005/02/17/290515.aspx           使用控件为:Microsoft.Web.UI.WebControls.TreeView            可以适用于该控件所有填充方法,并从数据库提取数据       

mail_ricklee的专栏 5503

TreeView的操作

    树形图用于显示按照树形结构进行组织的数据,其用途比较广泛,如计算机中的文件系统(Windows中的资源管理器)、企业或公司的组成结构等。我们知道在Windows下VB、PB、Delphi等工具提供了一个功能很强的树型控件TreeView,利用Treeview控件可以方便地开发树形图。然而在网页上实现树形图就不那么容易了,现在在ASP.NET中利用微软提供的Internet Explorer

mac_shen的专栏 806
上一篇: 移动Web2.0个人门户兴起
下一篇: 下载文件 asp.net
msnetc
博客等级 码龄21年 50粉丝 77原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值