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

断点后 少传过来一个值 帮忙来看看,该怎么解决

2012-03-20 
断点后少传过来一个值帮忙来看看//新建按钮protected void btnAddItem_Click(object sender, EventArgs e)

断点后 少传过来一个值 帮忙来看看
//新建按钮
  protected void btnAddItem_Click(object sender, EventArgs e)
  {

  if (title_CH.Text != "" && title_EN.Text != "")
  {
  int uid = int.Parse(Request["id"]);
  int mod = int.Parse(type.SelectedValue);

  string modPath_CH = null;

  string modPath_EN = null;

  string editPath_CH = null;

  string editPath_EN = null;

  switch (mod)
  {
  case 0:

  modPath_CH = "content_CH";

  modPath_EN = "content_EN";

  editPath_CH = "contentConfig_CH.aspx";

  editPath_EN = "contentConfig_EN.aspx";

  break;

  case 1:

  modPath_CH = "txtList_CH";

  modPath_EN = "txtList_EN";

  editPath_CH = "txtListConfig_CH.aspx";

  editPath_EN = "txtListConfig_EN.aspx";

  break;

  case 2:

  modPath_CH = "imgList_CH";

  modPath_EN = "imgList_EN";

  editPath_CH = "imgListConfig_CH.aspx";

  editPath_EN = "imgListConfig_EN.aspx";

  break;
  }


  MenuList_BLL.MenuInsert(uid, title_CH.Text, title_EN.Text, modPath_CH, modPath_EN, editPath_CH, editPath_EN);
  ScriptManager.RegisterStartupScript(this, typeof(string), Guid.NewGuid().ToString(), "UpdateMenu(\"" + GetUlIDBySearchID(Request["id"]) + "\",\"" + Request["id"] + "\");", true);


断点后少传过来editPath_EN 的值 怎么回事

[解决办法]
看下MenuInsert方法里面的SQL语句对应没有

热点排行