protected void DLnotline_ItemDataBound(object sender, DataListItemEventArgs e) { Label hl = new Label(); hl = (Label)e.Item.FindControl("lbQname"); Label lb = new Label(); lb = (Label)e.Item.FindControl("LabelNnum"); string jsstr = "notsg('" + lb.Text + "', '" + DDLgrade.SelectedValue + "', '" + Server.UrlEncode(hl.Text) + "');"; hl.Attributes.Add("onclick", jsstr); string pp = LearnSite.Common.Photo.ExistStuPhoto(lb.Text); if (pp != "none") { lb.Attributes.Add("class", "tooltip"); lb.ToolTip = pp; lb.BackColor = Color.Bisque; } LearnSite.BLL.NotSign bll = new LearnSite.BLL.NotSign(); string getnote = bll.GetNoteToday(lb.Text); if (getnote.Trim() != "") { hl.ToolTip = getnote; } else { hl.ToolTip = "点击请给未签到备注"; } }
private void Showdone() { if (Request.QueryString["Nnum"] != null) { string Nnum = Request.QueryString["Nnum"].ToString(); LearnSite.BLL.NotSign bll = new LearnSite.BLL.NotSign(); string Nnote = bll.GetNoteToday(Nnum); TextBox1.Text = Nnote; if (Nnote.Trim() != "") { Btnnotsign.Text = "修改"; } else { Btnnotsign.Text = "添加"; } } }