日期:2014-05-18 浏览次数:20411 次
浏览次数:<script language=javascript src="../../Review.aspx?id=67"></script>
protected void Page_Load(object sender, EventArgs e) { string Hits; int wyxID = int.Parse(Request.QueryString["id"].ToString()); string strConn = ConfigurationManager.ConnectionStrings["SperConnectionString1"].ToString(); SqlConnection ConnSql = new SqlConnection(strConn); ConnSql.Open(); string strSQL = "SELECT * FROM wyx_text WHERE wyx_id=" + wyxID; SqlCommand cmd = new SqlCommand(strSQL, ConnSql); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { Hits += dr["wyx_hits"].ToString(); } dr.Close(); Response.Write("document.write('" + Hits + "');"); }
protected void Page_Load(object sender, EventArgs e)
{
string Hits="";
int wyxID = int.Parse(Request.QueryString["id"].ToString());
string strConn = ConfigurationManager.ConnectionStrings["SperConnectionString1"].ToString();
SqlConnection ConnSql = new SqlConnection(strConn);
ConnSql.Open();
string strSQL = "SELECT * FROM wyx_text WHERE wyx_id=" + wyxID;
SqlCommand cmd = new SqlCommand(strSQL, ConnSql);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
Hits += dr["wyx_hits"].ToString();
}
dr.Close();
Response.Write("document.write('" + Hits + "');");
}