private void 开花树() { /*下面自定义树顺序*/ 树.Nodes.Clear(); DataTable 表 = 加载数据(), 树表 = null; string[] 重组表列 = null; if (表.TableName == "人员") 重组表列 = new string[] { "归属", "姓名", "生日" }; if (表.TableName == "提示") 重组表列 = new string[] { "提示内容", "心情日记" }; ...
DateTime Datejiancun = System.DateTime.Now;mimatishi = Convert.ToDateTime("2009-9-9"]);System.TimeSpan ts = Datejiancun - mimatishi;denglutj[2] = ts.Days; if (denglutj[2] >= 40) { Response.Redirect("User.aspx"); }
protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)//信息显示编辑与删除 { pages = Request["page"]; LinkButton LBut2 = (LinkButton)DataList1.Items[0].FindControl("LinkButton2"); LinkButton LBut3 = (LinkButton)DataList1.Items[0].FindControl("LinkButton3"...
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;
p...
if (!Page.IsPostBack) { //TreeView1.Nodes.Clear(); TreeNode nNode = new TreeNode("在职"); TreeNode pNode = new TreeNode("离职"); TreeView1.Nodes.Add(nNode); TreeView1.Nodes.Add(pNode); }
} protected void TreeView1_TreeNode...