日期:2014-05-16  浏览次数:20904 次

字符串的语法错误 在查询表达式 '1=1 and NType='tzgg order by NOrderNum asc, NAddTime desc' 中
 public partial class index1 : System.Web.UI.Page
    {
        private InfoBLL infobll = new InfoBLL();
        private AboutBLL aboutbll = new AboutBLL();
        protected String type
        {
            get
            {
                return Request.QueryString["type"];
            }
            set
            {
                type = value;
            }
        }
        private int page
        {

            get
            {
                if (!String.IsNullOrEmpty(Request["page"]))
                {
                    return Int32.Parse(Request.QueryString["page"] + "");
                }
                return 1;
            }
            set
            {
                page = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }
        private void BindData()
        {
            rep_list1.DataSource = infobll.GetInfoList("and NType='tzgg");
            //rep_list1.DataSource = rep_list1.GetList("6", "");
      &nb