AdminManger/ShowComment.aspx.cs
(完整代码) 1KBusing 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 AdminManger_ShowComment : System.Web.UI.Page
{
SqlHelper sqloperate = new SqlHelper();
SqlConnection sqlconn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
sqlconn.Open();
if (!IsPostBack)
{
string sqlstrshow = "select * from CommentInfo where id='" + Request["id"].ToString() + "'";
SqlDataAdapter myapter = new SqlDataAdapter(sqlstrshow, sqlconn);
DataSet mydset = new DataSet();
myapter.Fill(mydset, "CommentInfo");
DataRowView mydrview = mydset.Tables["CommentInfo"].DefaultView[0];
Label1.Text = Convert.ToString(mydrview.Row["leibie"]);
Label2.Text = Convert.ToString(mydrview.Row["Titiles"]);
Label6.Text = Convert.ToString(mydrview.Row["shiyongXinDe"]);
Label5.Text = Convert.ToString(mydrview.Row["Adduser"]);
}
sqlconn.Close();
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
