在asp.net中我修改信息时,值丢失! 在asp.net中我修改信息时,值丢失,保存的还是以前没改过的值,是怎么回事啊?那位大哥遇到过,告诉我一下,Thank you!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if (option == "Modify") { int FigureId = int.Parse(Request.QueryString["FigureId"].ToString()); figure = GDOCVFigure.Retrieve(FigureId); if (figure != null) { figure.Company = txtCompany.Text.Trim(); figure.Duty = txtDuty.Text; figure.FigureName = txtName.Text; if (txtUserID.Text != "") { figure.UserId = int.Parse(txtUserID.Text); } figure.FigureIntro = txtIntro.Text; figure.FigurePhotoUrl = FileUrl; if (radioMan.Checked) { figure.FigureGender = true; } else figure.FigureGender = false; if (BRCVFigure.Instance.UpdateFigure(figure)) { ShowClientMessegeBox("修改成功"); //Response.Redirect("Admin_Figure.aspx"); } else ShowClientMessegeBox("修改失败"); } 调试了的,它就是显示修改成功,在写入时写的就是没改之前的值,也就是说我后来在textbox中写的值不作用,我也不知道时怎么回事,看又看不出来! 获取gridview中指定控件的值[ 随便写的代码。点击删除的按钮的时候出错了。 讨论下OO编程与数据库编程 怎样在web.config文件中配置哪个页面缓存 无限级分类问题,存储过程带output,怎么使用DataReader? 超级急。 请问:Visual Basic.net那里有的下载啊? asp.net母版页生成的ID太长太难看怎么办? 网页中的控件被遮住,如何解决? 求助HtmlAgilityPack删除子节点的问题 请问怎样把一个Double型的数转换成只有两位小数的数? 奇怪问题 马上给分 动态显示问题(着急!!!!!)
{
int FigureId = int.Parse(Request.QueryString["FigureId"].ToString());
figure = GDOCVFigure.Retrieve(FigureId);
if (figure != null)
{
figure.Company = txtCompany.Text.Trim();
figure.Duty = txtDuty.Text;
figure.FigureName = txtName.Text;
if (txtUserID.Text != "")
{
figure.UserId = int.Parse(txtUserID.Text);
}
figure.FigureIntro = txtIntro.Text;
figure.FigurePhotoUrl = FileUrl;
if (radioMan.Checked)
{
figure.FigureGender = true;
}
else
figure.FigureGender = false; if (BRCVFigure.Instance.UpdateFigure(figure))
{
ShowClientMessegeBox("修改成功");
//Response.Redirect("Admin_Figure.aspx");
}
else
ShowClientMessegeBox("修改失败");
}