Web/MasterPage.master.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Xml;
public partial class MasterPage : System.Web.UI.MasterPage
{
private XmlDocument xmlDoc;
public string qq1 = "", qq2 = "", qq3 = "", ww1 = "", ww2 = "", ww3 = "";
protected void Page_Load(object sender, EventArgs e)
{
bind();//关键字...
bind_1();//客服
}
private void bind()
{
string sql = "select * from vaisi_main where id=1 ";
OleDbDataReader reader = SqlHelper.GetScalarList(sql);
if (reader.Read())
{
HtmlMeta tag = new HtmlMeta();
tag.Name = "keywords";
tag.Content = (string)reader["keywords"];
this.head.Controls.Add(tag);
tag = new HtmlMeta();
tag.Name = "Description";
tag.Content = (string)reader["description"];
this.head.Controls.Add(tag);
Page.Title = Page.Header.Title + (string)reader["title"];
reader.Close();
}
}
private void bind_1()
{
xmlDoc = new XmlDocument();
xmlDoc.Load(Server.MapPath("WebImg/Img/Kefu.xml"));
XmlNodeList nodelist = xmlDoc.SelectSingleNode("kefu").ChildNodes;
foreach (XmlNode xn in nodelist)
{
XmlElement xe = (XmlElement)xn;
if (xe.GetAttribute("name") == "caonima")
{
XmlNodeList nls = xe.ChildNodes;
foreach (XmlNode xn1 in nls)
{
XmlElement xe2 = (XmlElement)xn1;
if (xe2.Name == "cao1")
{
qq1 = xe2.InnerText;
}
else if (xe2.Name == "cao2")
{
ww1 = xe2.InnerText;
}
else if (xe2.Name == "cao3")
后面还有 20 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。