Web/Manage_Vaisi/ServiceEdit.aspx.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 Ext.Net;
using System.Data.OleDb;
using System.Data;
public partial class Manage_Vaisi_ServiceEdit : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Vaisi_User"] == null)
{
X.Redirect("Login.aspx", "登录超时,请重新登录...");
}
if (!X.IsAjaxRequest)
{
Bind();
}
X.AddScript("editor.remove().create();");
}
public void Bind()
{
try
{
string sql = "select service from vaisi_foundation where id=1";
OleDbDataReader reader = SqlHelper.GetScalarList(sql);
Vaisi_foundationModel found = null;
if (reader.Read())
{
found = new Vaisi_foundationModel();
found.Service = (string)reader["service"];
reader.Close();
}
this.TextBox1.Text = found.Service;
}
catch (Exception)
{
X.Msg.Show(new MessageBoxConfig
{
Title = "系统数据错误",
Message = "请稍候再试~或联系开发技术人员!",
Buttons = MessageBox.Button.OK,
Icon = MessageBox.Icon.WARNING,
}
);
}
}
protected void Service_Click(object sender, DirectEventArgs e)
{
try
{
string sql = "update vaisi_foundation set [service]='" + this.TextBox1.Text + "'";
int sum = SqlHelper.ExecuteNonQuery(sql, CommandType.Text);
if (sum == 1)
{
后面还有 27 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。