Web/Manage_Vaisi/Main.aspx.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using System.Xml;
using System.Data;
using System.Data.OleDb;
public partial class Manage_Vaisi_Main : System.Web.UI.Page
{
private XmlDocument xmlDoc;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Vaisi_User"] == null)
{
X.Redirect("Login.aspx", "登录超时,请重新登录...");
}
if (!X.IsAjaxRequest)
{
bindmain();
}
}
private void bindmain()
{
try
{
string sql = "select * from vaisi_main where id=1";
OleDbDataReader reader = SqlHelper.GetScalarList(sql);
Vaisi_mainModel main = null;
if (reader.Read())
{
main = new Vaisi_mainModel();
main.Title = (string)reader["title"];
main.Keywords = (string)reader["keywords"];
main.Description = (string)reader["description"];
reader.Close();
}
this.TextField1.Text = main.Title;
this.TextField2.Text = main.Keywords;
this.TextField3.Text = main.Description;
}
catch (Exception)
{
X.Msg.Show(new MessageBoxConfig
{
Title = "系统数据错误",
Message = "请稍候再试~或联系开发技术人员!",
Buttons = MessageBox.Button.OK,
Icon = MessageBox.Icon.WARNING,
});
}
}
/// <summary>
/// 基本信息编辑
/// </summary>
后面还有 345 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。