|
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/30d84c9f/424ff89a/ |
?#pragma checksum "D:\wwwroot\nuoya\wwwroot\index.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B65673A755F9813688D35EE989F2B6F1"
#line 1 "D:\wwwroot\nuoya\wwwroot\index.aspx.cs"
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DataTable dts14 = DBHelper.GetDataSet("select top 1 * from banner order by sort asc,id desc");
Repeater14.DataSource = dts14;
Repeater14.DataBind();
DataTable dts1 = DBHelper.GetDataSet("select * from xia where id=44 order by sort asc,id desc");
Repeater1.DataSource = dts1;
Repeater1.DataBind();
DataTable dts2 = DBHelper.GetDataSet("select * from xia where id=57 order by sort asc,id desc");
Repeater2.DataSource = dts2;
Repeater2.DataBind();
DataTable dts3 = DBHelper.GetDataSet("select * from xia where id=58 order by sort asc,id desc");
Repeater3.DataSource = dts3;
Repeater3.DataBind();
}
/// <summary>
/// 为网站设置关键字的搜索
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public static string getwebInfo(string id)
{
OLEControl mc = new OLEControl();
DataTable dt1 = DBHelper.GetDataSet("select * from t_configs where id=" + id + "");
StringBuilder sb = new StringBuilder();
// DataTable dt = mc.ExecuteDataTable("select * from t_configs where id=" + id + "");
foreach (DataRow dr in dt1.Rows)
{
sb.Append("<title>");
sb.Append(dr["name"]);
sb.Append("</title>");
sb.Append("<meta name=\"keywords\" content=\"");
sb.Append(dr["keyword"]);
sb.Append("\" />");
sb.Append("<meta name=\"description\" content=\"");
sb.Append(dr["content"]);
sb.Append("\" />");
}
return sb.ToString();
}
}
#line default
#line hidden