Essay/AuthorIndex.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
namespace Essay
{
public partial class AuthorIndex : System.Web.UI.Page
{
public string sql = "Data Source=. ;Trusted_Connection=SSPI;Initial Catalog=Essay";
protected void Page_Load(object sender, EventArgs e)
{
string CID=Session["AuthorID"].ToString();
SqlConnection conn = new SqlConnection(sql);
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.Text;
cmd.CommandText = "Select Status from Authors where AuthorID='"+CID+"'";
SqlDataReader dr = cmd.ExecuteReader();
dr.Read();
string status = dr["Status"].ToString();
this.ApplyStatus.Visible = false;
this.AbstractSatus.Visible = false;
this.EssayStatus.Visible = false;
this.LStatus.Text = status;
if (status == "已报名")
{
this.ApplyStatus.Visible = true;
}
else if (status == "已完成摘要投稿")
{
this.AbstractSatus.Visible = true;
}
else {
this.EssayStatus.Visible = true;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
