日期:2014-05-18 浏览次数:20515 次
if (Request.QueryString["mre_id"] != null) { short acceptValue = short.Parse(Request.QueryString["mre_id"].ToString()); //Engage_major_releaseBLL.GetEngage_major_releaseById(acceptValue); ///////这里以上我用段点一步一步调试都是没有问题的 所有的参数都是正确的 包括我的 BLL业务逻辑层和后面调用的DAL数据访问层都没有问题 关键是在下面! ///////当把Model层中之前数据访问层向里面保存的数据分别取出附值给textbox和lable时全部都没有了!在段点调试里看数据都是空的!前辈们帮我看看,是不是我下面的附值哪里有问题! Engage_major_release engage_major_release= Engage_major_releaseBLL.GetEngage_major_releaseById(acceptValue); this.Label1.Text = engage_major_release.First_kind_name.ToString(); this.Label2.Text = engage_major_release.Second_kind_name.ToString(); this.Label3.Text = engage_major_release.Third_kind_name.ToString(); this.Label4.Text = engage_major_release.Major_kind_name.ToString(); this.Label5.Text = engage_major_release.Major_name.ToString(); this.DropDownList4.SelectedValue = engage_major_release.Engage_type.ToString(); this.TextBox1.Text = engage_major_release.Human_amount.ToString(); this.TextBox2.Text = engage_major_release.Deadline.ToString(); this.TextBox3.Text = engage_major_release.Changer.ToString(); this.TextBox4.Text = engage_major_release.Change_time.ToString(); this.TextBox5.Text = engage_major_release.Major_describe.ToString(); this.TextBox6.Text = engage_major_release.Engage_required.ToString(); }