pro_detail.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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;
public partial class pro_detail : System.Web.UI.Page
{
public string nid, npic;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["id"] != null)
{
string sql;
sql = "select * from allpro where id=" + Request["id"].ToString().Trim();
getdata(sql);
// sql = "select * from pinglun where proid="+Request["id"].ToString().Trim();
// getdata2(sql);
}
}
}
private void getdata(string sql)
{
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
Label1.Text = result.Tables[0].Rows[0]["mc"].ToString().Trim();
Label2.Text = result.Tables[0].Rows[0]["price2"].ToString().Trim();
Label3.Text = result.Tables[0].Rows[0]["price1"].ToString().Trim();
Label4.Text = result.Tables[0].Rows[0]["mc"].ToString().Trim();
Label5.Text = result.Tables[0].Rows[0]["content"].ToString().Trim();
npic = result.Tables[0].Rows[0]["fn"].ToString().Trim();
nid = result.Tables[0].Rows[0]["id"].ToString().Trim();
Label7.Text = result.Tables[0].Rows[0]["lb"].ToString().Trim();
Label6.Text = result.Tables[0].Rows[0]["shuliang"].ToString().Trim();
}
}
}
//private void getdata2(string sql)
//{
// DataSet result = new DataSet();
// result = new Class1().hsggetdata(sql);
// if (result != null)
// {
// if (result.Tables[0].Rows.Count > 0)
// {
// DataGrid1.DataSource = result.Tables[0];
后面还有 39 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。