web/BusinessNewsdetial.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 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;
using System.Data.SqlClient;
using US.Dal;
using US.CommonLib;
using US.Bll;
using US.Model;
using US.DBUtility;
public partial class BusinessNewsdetial : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int id = Convert.ToInt32(Request.QueryString["id"].ToString());
SqlDataReader drr = SQLHelper.ExecuteReader(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select vc_EndTime from BusinessNews where i_BNId='" + id + "'", null);
drr.Read();
if (drr.GetValue(0).ToString() == "")
{
SqlDataReader dr = SQLHelper.ExecuteReader(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select * from BusinessNews where i_BNId='" + id + "'", null);
if (dr.Read())
{
TextBox1.Text = dr.GetValue(1).ToString();
TextBox2.Text = dr.GetValue(2).ToString();
TextBox3.Text = dr.GetValue(3).ToString();
TextBox4.Text = dr.GetValue(4).ToString();
TextBox5.Text = dr.GetValue(5).ToString();
TextBox6.Text = dr.GetValue(6).ToString();
TextBox7.Text = dr.GetValue(7).ToString();
TextBox8.Text = dr.GetValue(8).ToString();
TextBox9.Text = dr.GetValue(9).ToString();
TextBox10.Text = dr.GetValue(10).ToString();
TextBox11.Text = dr.GetValue(11).ToString();
TextBox12.Text = dr.GetValue(12).ToString();
TextBox13.Text = Convert.ToDateTime(dr.GetValue(13).ToString()).ToString("yyyy-MM-dd");
TextBox14.Text = "";
TextBox15.Text = dr.GetValue(15).ToString();
TextBox16.Text = dr.GetValue(16).ToString();
TextBox17.Text = dr.GetValue(17).ToString();
TextBox19.Text = dr.GetValue(18).ToString();
TextBox20.Text = dr.GetValue(19).ToString();
TextBox21.Text = dr.GetValue(20).ToString();
TextBox22.Text = dr.GetValue(21).ToString();
TextBox23.Text = dr.GetValue(22).ToString();
TextBox24.Text = dr.GetValue(23).ToString();
TextBox25.Text = dr.GetValue(24).ToString();
}
}
else
{
SqlDataReader dr = SQLHelper.ExecuteReader(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select * from BusinessNews where i_BNId='" + id + "'", null);
if (dr.Read())
后面还有 34 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
