30分:AJAX 中UpdatePanel的一个问题!(最好是理论辅助实际代码解决问题,)O(∩_∩)O谢谢
error information:"Sys.WebForms.PageRequestManagerParserErrorException : The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, httpModules, or server trace is enabled. Details: Error parsing near 'itle||Untitle Page| <script language='ja'."
场景:母版页中一个ScriptManager1,内容页中一个UpdatePanel1,嵌套GridView、Button,
事件1:((LinkButton)(e.Row.Cells[3].Controls[0])).Attributes.Add("onclick", "return confirm('确定删除该软件类别信息吗?如果删除对程序其他操作有影响,慎重!')");------------------------>出错
事件2:tring strSoftwareKind = this.TextBoxSoftwareKind.Text.Trim();
try
{
//查看是否存在相同项目
if (SoftwareKind.GetReInsertInfo(strSoftwareKind))
{
//WebMessageBox.Show("已经添加了该项目!请核对后在操作!");
}
else
{
if (this.ButtonAdd.Text == "保存")
{
SoftwareKind.GetInsertInfo(strSoftwareKind);//调用方法实现软件类别的添加操作
}
else if (this.ButtonAdd.Text == "修改")
{//查看是否存在相同项目
if (SoftwareKind.GetReInsertInfo(strSoftwareKind))
{
//WebMessageBox.Show("已经添加了该项目!请核对后再操作!");
}
else
{
SoftwareKind.GetUpdateInfo(strSoftwareKind, m_strID);//调用方法实现软件类别的添加操作
}
}
GetGridViewInf();//刷新界面
}
}
catch (Exception ee)
{
//WebMessageBox.Show("添加失败");
WebMessageBox.Show(ee.Message);
}--------------------------->出错