Web/Contacts.aspx.cs

(完整代码) 1004B

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;

public partial class Contacts : System.Web.UI.Page
{
    public string contact = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string sql = "select contact from vaisi_foundation where id=1";
            OleDbDataReader reader = SqlHelper.GetScalarList(sql);
            Vaisi_foundationModel found = null;
            if (reader.Read())
            {
                found = new Vaisi_foundationModel();
                found.Contact = (string)reader["contact"];
                reader.Close();
            }
            contact = found.Contact;
        }
        catch (Exception)
        {
            ClientScript.RegisterStartupScript(Page.GetType(), "", string.Format("<script>alert('数据异常')</script>"));
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。