|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/712bd9e6/ca967f19/ |
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\newshow.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "B350A2C0AC17D7DA49A09A3D4667255C7A1944BE"
#line 1 "D:\wwwroot\bgsciences\wwwroot\newshow.aspx.cs"
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
public partial class newshow : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!string.IsNullOrEmpty(Request.QueryString["id"]))
{
BindData(Request.QueryString["id"]);
}
}
}
protected void BindData(string id)
{
DataTable dt = SQLServerHelper.ExecuteTable("select *,(select sname from TB_NewClass where id = TB_News.types) as typename from TB_News where id = " + id);
if (dt != null && dt.Rows.Count > 0)
{
this.Title = dt.Rows[0]["title"].ToString() + "-新闻动态-广州铂晋生物科技有限公司";
lt_type.Text = "> <a href=\"/newlist.aspx?t=" + dt.Rows[0]["types"] + "\"><span class=\"wz3\">" + dt.Rows[0]["typename"] + "</span></a>";
lt_name.Text = dt.Rows[0]["title"].ToString();
lt_date.Text = Convert.ToDateTime(dt.Rows[0]["regtime"].ToString()).ToString("yyyy-MM-dd");
lt_count.Text = dt.Rows[0]["clickcount"].ToString();
lt_content.Text = dt.Rows[0]["contents"].ToString();
string sql = "update TB_News set clickcount = (clickcount + 1) where id = " + id;
SQLServerHelper.execNonQuery(sql);
}
}
protected string sublength(string str)
{
string strresult = str;
if (strresult != "")
{
if (strresult.Length > 10)
{
strresult = strresult.Substring(0, 10);
}
}
return strresult;
}
protected string BindContactByType(int type)
{
string strcontent = string.Empty;
DataTable dt = SQLServerHelper.ExecuteTable("select contents from TB_About where lg = 1 and types = " + type + "");
if (dt.Rows.Count > 0)
{
strcontent = dt.Rows[0]["contents"].ToString();
}
return strcontent;
}
}
#line default
#line hidden