【发布时间】:2011-04-13 13:28:30
【问题描述】:
我收到此错误:无法评估表达式,因为代码已优化或本机框架位于调用堆栈顶部。
这是我遇到错误的代码。
if (Session["edit"].ToString() == "y" || Session["master"].ToString() == "y" || Session["del"].ToString() == "y")
{
btncancel.Text = "Cancel";
//txtprodesc.Text = txtpronm.Text = "";
ds = new DataSet();
ds =settcls.SelectallproductSuppliersetting();
if (ds.Tables[0].Rows.Count > 0)
{
btnsave.Enabled = btnedit.Enabled = false;
txtsetproductid.Visible = false;
txtpreid.Visible = true;
lbmsg.Visible = true;
lbmsg.Text = "Enter Productid";
txtpreid.Focus();
Response.Redirect(this.Page.AppRelativeVirtualPath);
}
【问题讨论】:
标签: asp.net