protected void Page_Load(object sender, EventArgs e) { if (Request.Cookies["id"] != null) { id = Request.Cookies["id"].Value.ToString(); } Fannie.Mail mail = new Fannie.Mail(); dt = mail.GetSendToTeacher(id).Tables[0]; if (!IsPostBack) { GetTeacherName(); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.Cookies["id"] != null) { id = Request.Cookies["id"].Value.ToString(); } Fannie.Mail mail = new Fannie.Mail(); dt = mail.GetSendToTeacher(id).Tables[0]; if (!IsPostBack) { GetTeacherName(); } //if (Request.QueryString["tid"] != null) //{ // tid = Request.QueryString["tid"].ToString(); // txt_theme.Text = "关于‘" + Request.QueryString["title"].ToString() + "’的回复"; // Fannie.Users user = new Fannie.Users(); // tbSendTo.Text = user.GetUserName(tid, 1); // ddlTeacher.Visible = false; //} }