Web/MasterPage.master.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wld.DBCore;
public partial class template_nongye_MasterPage : System.Web.UI.MasterPage
{
public string companyname = string.Empty;
public string address = string.Empty;
public string fax = string.Empty;
public string tel = string.Empty;
public string bah = string.Empty;
public string gzh1 = string.Empty;
public string gzh2 = string.Empty;
public string catagory = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
DBHelperSql bll = new DBHelperSql();
DataTable t = bll.Select("select * from webset");
DataTable c = bll.Select("select * from catagory order by sort desc");
if (t.Rows.Count > 0)
{
companyname = t.Rows[0]["Txtqymc"].ToString();
address = t.Rows[0]["Txtaddress"].ToString();
fax = t.Rows[0]["Txtfax"].ToString();
tel = t.Rows[0]["Txttel"].ToString();
bah = t.Rows[0]["TxtwebBAH"].ToString();
gzh1 = "<img class=\"erweima\" src=" + t.Rows[0]["Txtgzh1"].ToString() + " />";
gzh2 = "<img class=\"erweima\" src=" + t.Rows[0]["Txtgzh2"].ToString() + " />";
}
if (c.Rows.Count > 0)
{
for (int i = 0; i < c.Rows.Count; i++)
catagory += "<li><a href=\"ListShow.aspx?type=" + c.Rows[i]["id"].ToString()+ "\">"+c.Rows[i]["catagoryName"].ToString()+"</a></li>";
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
