using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient; //添加类库
public partial class showNews : System.Web.UI.Page
{
BaseClass bc = new BaseClass();
protected void Page_Load(object sender, EventArgs e)
{
DataSet ds = bc.GetDataSet("select * from tbNews", "news");
DataRow[] row = ds.Tables[0].Select("id="+Request.QueryString["id"]);
foreach (DataRow rs in row)
{
this.Page.Title = rs["title"].ToString();
Label1.Text = rs["title"].ToString();
TextBox1.Text =" "+ rs["content"].ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script language=javascript>window.close()</script>");
}
}
请教高手一下:那一句“红色”提示语法错误——语法错误:“=”运算符后缺少操作数。
怎么改?
谢谢!