10 2013 档案
摘要:以下两种方法哪个不报错就用哪个。用法都是在TreeView标签中加入OnClick="",然后引入函数名即可第一种方法:(摘自:http://www.cnblogs.com/freeliver54/archive/2007/09/04/881024.html)第二种方法(摘自:http://www.jb51.net/article/21808.htm)
阅读全文
摘要:/// /// 绑定TreeView /// public void BindTreeView() { BLL.GroupBLL GroupBll = new BLL.GroupBLL(); DataTable GroupTable = GroupBll.GetGroup(); //先绑定根节点 for (int i = 0; i /// 读取TreeView节点的Value /// /// /// public string GetTreeViewValue(TreeNodeCollection nodes) { foreach (TreeNode tn in nodes) {...
阅读全文
摘要:string path = Server.MapPath("~/Upload/"); string FileName = dt.Rows[0]["Files"].ToString(); string filePath = path + FileName; if (File.Exists(filePath)) { FileInfo file = new FileInfo(filePath); Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8"); Res
阅读全文