标签:
1 Operation op = new Operation(); 2 public string header = string.Empty; 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 DataTable dt = op.queryMenu(); 6 foreach (DataRow dr in dt.Rows) 7 { 8 header += "<a href=‘Category.aspx?menuID=" + dr["menuID"].ToString() + "‘ class=‘menu‘ target=‘_blank‘>" + dr["menuTitle"].ToString() + "</a>"; 9 } 10 }
源错误:
行 9: {
行 10: DataTable dt = op.queryMenu();
行 11: foreach (System.Data.DataRow dr in dt.Rows)
行 12: {
行 13: header += "<a href=‘Category.aspx?menuID=" + dr["menuID"].ToString() + "‘ class=‘menu‘ target=‘_blank‘>" + dr["menuTitle"].ToString() + "</a>";
|
源文件: d:\myweb\nc\webheader.ascx.cs 行: 11
标签:
原文地址:http://www.cnblogs.com/srsheng/p/4642911.html