private void showAttitude() { if (Request.QueryString["Sg"] != null && Request.QueryString["Ld"] != null && Request.QueryString["Qd"] != null) { Labelname.Text = Server.UrlDecode(Request.QueryString["Ld"].ToString()); int Qid = Int32.Parse(Request.QueryString["Qd"].ToString()); LearnSite.BLL.Signin sgbll = new LearnSite.BLL.Signin(); LearnSite.Model.Signin sgmodel = new LearnSite.Model.Signin(); sgmodel = sgbll.GetModel(Qid); TextBox2.Text = sgmodel.Qgroup; DDLatt.SelectedValue = sgmodel.Qgscore.ToString(); } }
private void showAttitude() { if (Request.QueryString["Qid"] != null) { if (Request.QueryString["Qname"] != null) { Labelname.Text = Server.UrlDecode(Request.QueryString["Qname"].ToString()); } int Qid = Int32.Parse(Request.QueryString["Qid"].ToString()); LearnSite.BLL.Signin sgbll = new LearnSite.BLL.Signin(); LearnSite.Model.Signin sgmodel = new LearnSite.Model.Signin(); sgmodel = sgbll.GetModel(Qid); int att = sgmodel.Qattitude.Value; if (att != 0 && att > -5 && att < 3) { RBLattitude.SelectedValue = att.ToString(); } TextBox2.Text = sgmodel.Qnote; DDLatt.SelectedValue = att.ToString(); } }