首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

帮帮忙,该怎么解决

2012-12-22 
帮帮忙 protected void btnSave_Click(object sender, EventArgs e)DCEntities dc new DCEntities()int

帮帮忙

 protected void btnSave_Click(object sender, EventArgs e)       
      DCEntities dc = new DCEntities();           
             int id = int.Parse(Request["id"]);            
            var result = (from a in dc.VM_SYS_Config
                          where a.ConfigID == id
                          select a).Single();
            result.ConfigName = txtConfigName.Text;
            result.ConfigDescription = txtConfigDescription.Text;
            result.ConfigType = Convert.ToInt32(ddlConfigType.SelectedValue);
            result.ConfigLevel = Convert.ToInt32(ddlConfigLevel.SelectedValue);
            result.ConfigValue = txtareaContent.Value;
            dc.SaveChanges();
            ui.AlertRedirect(this, "修改成功", "ConfigInfo.aspx");
}

大神们帮帮忙,这是修改的方法,那里不对,就是修改不了
[解决办法]
提示什么错误
[解决办法]
不说是什么错误,怎么帮你?

热点排行