commend.aspx.cs
来自「小说网(c#)版源程序,学习还是不错滴,大家可以下载下来看看.」· CS 代码 · 共 40 行
CS
40 行
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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;
public partial class manage_commend : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["commend"] != null && Regular.IsId(Request.QueryString["commend"].ToString()))
{
SqlStore.SqlCommend(int.Parse(Request.QueryString["commend"].ToString()));
Response.Redirect("commend.aspx");
}
if (Request.QueryString["delcommendid"] != null && Regular.IsId(Request.QueryString["delcommendid"].ToString()))
{
SqlStore.SqlCommendDel(int.Parse(Request.QueryString["delcommendid"].ToString()));
Response.Redirect("commend.aspx");
}
DataTable table = SqlStore.SqlNormal("novel_commend_read");
this.List_Commend.DataSource = table;
this.List_Commend.DataBind();
}
protected void Button_Add_Click(object sender, EventArgs e)
{
string topicid=this.Text_Topicid.Text;
if (Regular.IsId(topicid))
{
SqlStore.SqlCommendNovel(int.Parse(topicid));
Response.Redirect("commend.aspx");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?