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...