private void ShowStudent() { Labelip.Text = cook.LoginIp; string mySnum = cook.Snum; int mySid = cook.Sid; snum.Text = mySnum; string Sgrade = cook.Sgrade.ToString(); string Sclass = cook.Sclass.ToString(); sclass.Text = Sgrade + "." + Sclass + "班"; sname.Text = Server.UrlDecode(cook.Sname); string ssex = Server.UrlDecode(cook.Sex); sscore.Text = cook.Sscore.ToString(); sattitude.Text = cook.Sattitude.ToString(); int Sgroup = cook.Sgroup; int Sterm = cook.ThisTerm; LearnSite.BLL.Works wbll = new LearnSite.BLL.Works(); string[] tem = wbll.ShowLastWorkSelf(mySid);//2012-12-14修 string mywid = tem[0]; string myself = tem[1]; if (mywid != "" && myself != "") { LabelWself.Text = HttpUtility.HtmlDecode(myself); Hlwork.NavigateUrl = "~/Student/downwork.aspx?Wid=" + mywid; Hlwork.Visible = true; } else { Hlwork.Visible = false; } LearnSite.BLL.Students dbll = new LearnSite.BLL.Students(); string leader = dbll.GetLeaderByGroup(Sgroup);//根据自己的组号,获取组长姓名 if (leader != "") { HLgroup.Text = Server.UrlDecode(leader); } else { HLgroup.Text = "申请组队"; HLgroup.NavigateUrl = "~/Profile/mygroup.aspx"; } string murl = LearnSite.Common.Photo.GetStudentPhotoUrl(snum.Text, ssex); Imageface.ImageUrl = murl + "?temp=" + DateTime.Now.Millisecond.ToString(); int myscores = int.Parse(sscore.Text); LearnSite.BLL.GroupWork gwbll = new LearnSite.BLL.GroupWork(); int groupscore = gwbll.GetGscoreAll(Sgroup, Int32.Parse(Sgrade), Int32.Parse(Sclass), Sterm); string myrank = Server.UrlDecode(cook.RankImage); string grouprank = LearnSite.Common.Rank.RankImage(groupscore, false); LabelRank.Text = myrank + "<br/>" + grouprank; string mytip = "你的学分等级为:" + myscores / 3 + "级"; string grouptip = "你的小组等级为:" + groupscore / 3 + "级"; LabelRank.ToolTip = mytip + " \r " + grouptip;//tooltip换行原来是\r }