iam이 특정 값을 가진 그리드를 채우기 위해 특정 사용자를 삭제 한 후에 response.redirect를 사용하고 있습니다. 그러나 오류가 발생합니다. lblError.Text = 코드가 최적화 되었기 때문에 표현식을 평가할 수 없습니다. 네이티브 프레임이 호출 스택의 맨 위에 있습니다. 때문에이 오류 스피 삭제를 확인 어떤 도움이 이해할 수있을 것이다에게Asp.net Response.Redirect
코드를 못하고의
: - (참 chk.Checked ==) {
isDeleted=oFTE.DeleteUserRoleMapDetails(row.Cells[1].Text);
if (isDeleted == 0)
{
lblError.Visible = true;
lblError.ForeColor = System.Drawing.Color.Red;
lblError.Text = "User Role Map deletion failed.";
}
else if (isDeleted == 1)
{
lblError.Visible = true;
lblError.ForeColor = System.Drawing.Color.Red;
//Response.Redirect("userRoleMap.aspx");
Session["Msg"] = "User Role Map deleted successfully.";
Response.Redirect("userRoleMap.aspx",false);
//lblError.Text = "User Role Map deleted successfully.";
break;
}
}
if (iRowCount == gridViewResults.Rows.Count)
{
lblError.Visible = true;
lblError.ForeColor = System.Drawing.Color.Red;
lblError.Text = "Please select a row to delete.";
}
}
}
}
catch (Exception ex)
{
lblError.Visible = true;
lblError.ForeColor = System.Drawing.Color.Red;
lblError.Text = ex.Message.ToString();
}
}
코드를 게시 할 수 있습니까> – Chandu
몇 가지 코드를 보여주세요! 추가 실행을 막기 위해 response.redirect를 false로 두 번째 매개 변수로 호출하고 있습니까? response.redirect (url, false) –
이 질문은 많이되었습니다, 당신은 이들을 이미 확인 했습니까 : http://stackoverflow.com/search?q=Unable+to+evaluate+expression+because+the+code+is+ + + + + + 네이티브 + 프레임 + + + + + + + + + + 호출 + 스택 –