| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1504 人关注过本帖
标题:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值
只看楼主 加入收藏
夜龙魂
Rank: 2
等 级:论坛游民
帖 子:130
专家分:65
注 册:2009-9-24
结帖率:57.14%
收藏
 问题点数:0 回复次数:0 
由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值
try
            {
                double imoney = Convert.ToDouble(this.txtimoney.Text);
                double rmoney = Convert.ToDouble(this.txtrmoney.Text);
                string times = DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString();
                string sql = "insert into customertable values('" + this.ddlname.Text + "','" + this.txtclientco.Text + "','" + this.txtclientitem.Text + "'," + imoney + ",'" + this.txtclienttime.Text + "'," + rmoney + ",'" + this.txtrtime.Text + "','" + this.txtnum.Text + "','" + this.ddlxiaozu.Text + "','" + times + "')";
                SqlConnection conn = new SqlConnection(Common.connection);
                conn.Open();
                SqlCommand command = new SqlCommand(sql, conn);
                int flag = 0;
                flag = command.ExecuteNonQuery();
                string sql1 = "select count(*) from cnum where cbianhao='" + this.txtnum.Text + "'";
                SqlCommand command1 = new SqlCommand(sql1, conn);
                SqlDataReader dr1 = command1.ExecuteReader();
                int num = 0;
                if (dr1.Read())
                {
                    num = Convert.ToInt32(dr1[0]);
                    dr1.Close();
                }
                if (num <= 0)
                {
                    string sql2 = "insert into cnum values('" + txtnum.Text + "')";
                    SqlCommand command2 = new SqlCommand(sql2,conn);
                    command2.ExecuteNonQuery();
                }
                if (flag > 0)
                {
                    Response.Redirect("hit.aspx");
                }
                else
                {
                    this.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script>alert('添加失败请重新检查不要非法操作')" + "</scirpt>");
                }
               
                conn.Close();
            }
            catch (Exception ex)
            {
                string message = ex.Message.ToString();
                Response.Write("<script language='javascript'>alert('" + message + "')" + "</script>");
            }
        }

由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值
搜索更多相关主题的帖子: 表达 代码 框架 堆栈 
2009-11-17 12:49
快速回复:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026272 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved