ST_message.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace ST_GROUP.Blog
{
/// <summary>
/// ST_message 的摘要说明。
/// </summary>
public partial class ST_message : System.Web.UI.Page
{
public string ST_tcolor;
protected System.Web.UI.HtmlControls.HtmlForm show;
public string ST_bgcolor;
OleDbConnection ST_myConn;
protected void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if (Request.Cookies["colors"]!=null)
{
string ST_test = Request.Cookies["colors"].Value;
String[] ST_colorList = ST_test.Split(new char[] { ',' });
ST_bgcolor = ST_colorList[0];
ST_tcolor = ST_colorList[1];
}
else
{
ST_bgcolor = "#FFDE94";
ST_tcolor = "#efe3ce";
}
ST_msg_Bind();
Page.DataBind();
}
public void ST_msg_Bind()
{
string ST_dns = ConfigurationSettings.AppSettings["conn"];
string ST_msg_sql = "select * from ST_message order by ST_mdate desc";
ST_myConn = new OleDbConnection(ST_dns);
OleDbDataAdapter ST_msgCmd = new OleDbDataAdapter(ST_msg_sql,ST_myConn);
DataSet ST_ds = new DataSet();
ST_msgCmd.Fill(ST_ds,"留言列表");
messagelist.DataSource = new DataView(ST_ds.Tables[0]);
messagelist.DataBind();
}
后面还有 51 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
