摘要:
/// <summary> /// if Type is 99,will show all departments, /// type must be given value; /// </summary> public partial class DepartmentDropDownList : System.Web.UI.UserControl{private ... 阅读全文
摘要:
今天下午算是写了第一个自定义控件。因为部门表存在无限级的可能。因此如何在页面中较好的呈现就出现了很大的问题。下面是部门表---部门,可以无限级别嵌套--Create Table Departments(DepartmentId int identity primary key,DepartmentName nvarchar(50) not null,DepartmentNu... 阅读全文
摘要:
grdList.DataSource=(frompinDepartmentManager.GetAll()fromqinDepartmentManager.GetAll()wherep.UpDepartmentId==q... 阅读全文
摘要:
TreeView默认情况下子节点相对父节点总是右移一些像素。想通过CSS做,不成功,找TreeView属性也没有找到。实在没有办法了,分析前台显示源码,发现子节点前有一个div,如下图 于是只好通过js来将这个div隐藏。<scripttype="text/javascript"> $(document).ready(function(){... 阅读全文
摘要:
写的不知道是否有问题,才学习C#,请指正///<summary> ///一些通用的数据操作方法 ///</summary> publicclassConvertHelper<T>whereT:new(){///<summary> ///conve... 阅读全文