62,047
社区成员
发帖
与我相关
我的任务
分享
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
pro.Text = dd.Rows[0]["title"].ToString();
Askk.Text = dd.Rows[0]["description"].ToString();
ZLYY.Text = dd.Rows[0]["content"].ToString();
Session["FYT"] = 0;
}
}
protected DataTable dd
{
get
{
string title = Request["Title"].ToString().Trim();
DataTable dc = new articleDAL().GetListByChannelName(title, 0, " updated desc").Tables[0];
return dc;
}
}
protected void No_Click(object sender, EventArgs e)
{
int snum = int.Parse(Session["FYT"].ToString()) + 1;
pro.Text = dd.Rows[snum]["title"].ToString();
Askk.Text = dd.Rows[snum]["description"].ToString();
ZLYY.Text = dd.Rows[snum]["content"].ToString();
Session["FYT"] = snum;
}