Default.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//该源码下载自www.51aspx.com(51aspx.com)
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
showDay.Text = MyCalendar.SelectedDate.ToLocalTime().ToShortDateString().ToString();
}
public string GetTable()
{
SqlData da = new SqlData();
string strCmd = "select * from Diary order by DateTime desc";
SqlDataReader sdr = da.ExceRead(strCmd);
string strTable = null;
strTable = "<Table class=read>";
while (sdr.Read())
{
strTable += "<tr><th style=width: 100px; height: 17px>标题:</th><th style=width: 100px; height: 17px>" + sdr["Title"].ToString() + "</th></th>";
strTable += "<tr><td style=width: 100px; height: 17px>内容:</td><td style=width: 100px>" + sdr["Body"] + "</td></tr>";
strTable += "<tr><td style=width: 100px; height: 17px>发表时间:</td><td style=width: 100px>" + sdr["DateTime"] + "</td></tr>";
}
strTable += "</Table>";
return strTable;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
