using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class EditMenu_BrowseMenu : System.Web.UI.Page { //UserData myud = new UserData(); //protected void Page_Load(object sender, EventArgs e) //{ // UserData myu = new UserData(); // //Literal1.Text = myu.UpdateMenuBrowse("", "PY", 12, "../UpFiles/", true).ToString(); // //Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL where 综合评价 IS NOT NULL").ToString(); // //Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL").ToString(); // Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL where id="+Request.QueryString["ID"]).ToString(); //} LYS.UserData1 myud = new LYS.UserData1(); // string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + HttpContext.Current.Server.MapPath("~\\App_Data\\ZY.mdb"); protected void Page_Load(object sender, EventArgs e) { string myURL = myud.GetAddressUrl().ToString(); if (myURL.LastIndexOf("ID") < 0 ) { Response.Write(""); Response.End(); } int ID = Convert.ToInt16(Request.QueryString["ID"].ToString()); Literal2.Text = "《"+myud.GetFieldValue(1, ID, "TKJL").ToString()+"》老师教学效果综合评价意见"; Literal3.Text = "(综合评价意见)"; if (!IsPostBack) { ZJ.Text = Convert.ToDateTime(myud.GetFieldValue(5, ID, "TKJL").ToString()).ToShortDateString(); DD.Text = myud.GetFieldValueFromFieldName("上课地点", ID, "TKJL").ToString(); JSXM.Text = myud.GetFieldValueFromFieldName("教师姓名", ID, "TKJL").ToString(); XB.Text = myud.GetFieldValueFromFieldName("系部", ID, "TKJL").ToString(); KM.Text = myud.GetFieldValueFromFieldName("课程名", ID, "TKJL").ToString(); BJ.Text = myud.GetFieldValueFromFieldName("班级", ID, "TKJL").ToString(); XQ.Text = myud.GetFieldValueFromFieldName("星期", ID, "TKJL").ToString(); JC.Text = myud.GetFieldValueFromFieldName("节次", ID, "TKJL").ToString(); PF.Text = myud.GetFieldValueFromFieldName("总评分", ID, "TKJL").ToString(); ZHPJ.Text = myud.GetFieldValueFromFieldName("综合评价", ID, "TKJL").ToString(); } if (myURL.LastIndexOf("disp") > 0) { string disp = Request.QueryString["disp"].ToString(); if (disp == "disppj") { Literal2.Text = "《" + myud.GetFieldValue(1, ID, "TKJL").ToString() + "》老师教学效果评价意见"; Literal3.Text = "(评价意见)"; ZHPJ.Text = myud.GetFieldValueFromFieldName("点评评价", ID, "TKJL").ToString(); } if (disp == "dispzhpj") { Literal2.Text = "《" + myud.GetFieldValue(1, ID, "TKJL").ToString() + "》老师教学效果综合评价意见"; Literal3.Text = "(综合评价意见)"; ZHPJ.Text = myud.GetFieldValueFromFieldName("综合评价", ID, "TKJL").ToString(); } // Response.Write(disp); } } }