918博天堂

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/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/712bd9e6/ca967f19/App_Web_5cuam4wq.15.cs
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\newlist.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D9C4437C953ACCA2284408F24C576A5EFA607A81"

#line 1 "D:\wwwroot\bgsciences\wwwroot\newlist.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 newlist : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.Title = "科研动态-广州铂晋生物科技有限公司";
            Bind("lg = 1 and types = 1");
            BindCount("lg = 1 and types = 1");

        }
    }
    //绑定步骤
    private void Bind(string where)
    {
        this.InfoList.DataSource = sqltool.getData_PageFromTwoTable1(this.AspNetPager1.PageSize, this.AspNetPager1.CurrentPageIndex, " id,title,regtime ", "TB_News", "" + where + "", 1, "orders", "id");
        this.InfoList.DataBind();
    }
    private void BindCount(string where)
    {
        int count = sqltool.SelectCountByTCW("TB_News", "*", "" + where + "");
        this.AspNetPager1.RecordCount = count;
    }
    //分页事务
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        Bind("lg = 1 and types = 1");
        BindCount("lg = 1 and types = 1");

    }


    protected string sublength(string str)
    {
        string strresult = str;
        if (strresult != "")
        {
            if (strresult.Length > 40)
            {
                strresult = strresult.Substring(0, 40);
            }
        }
        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