using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class ModifyOthRec : System.Web.UI.Page { LYS.UserData1 myud = new LYS.UserData1(); string TesUsername = ""; protected void Page_Load(object sender, EventArgs e) { //string username =myud.ReadCookies("UserName").ToString(); //string usertype = Session["UserType"].ToString(); //string userdemp = Session["UserDemp"].ToString(); //Teaname = myud.ReadCookies("Tea_name").ToString(); //TeaDemp = myud.ReadCookies("Dempent").ToString(); TesUsername = myud.ReadCookies("UserName").ToString(); //获得安排的课程名称等信息 Session["TableName"] = "OthProg"; string SQL = "Select * from OthProg where 督导姓名='" + TesUsername + "' order by ID DESC"; // Literal1.Text = myud.DataReaderPage("", Tablename, 15, "DispMyUpSOC.aspx", true, "delall", "").ToString(); Literal1.Text = myud.DispLineDataModi(SQL, "ModiAndDel").ToString(); } }