日期:2014-05-17  浏览次数:20945 次

!!!!!!!!!!!!11求解
string id = Guid.NewGuid().ToString();
  string[] list = context.Request["maininfo"].Split('#');
  TicketRequestionDT ds = new TicketRequestionDT();
  TicketRequestionDT.TicketRequestionRow rowFlow = null;
  bool bIsExist = false;




  if (string.IsNullOrEmpty(context.Request["typeinfo"]))
  {
  rowFlow.InstanceID = "00000000-0000-0000-0000-00000000";
  ds.TicketRequestion.Rows.Add(rowFlow);
  }

到最后一行的时候说是 无法设置列“TicketRequestionID”。此值违反了此列的 MaxLength 限制。

  TicketRequestionID是对应数据库表的主键




------解决方案--------------------
TicketRequestionID有长度限制,去数据库看看多长,你的赋值,超过了规定长度
------解决方案--------------------
提示已经很明显了吧