⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commend.aspx.cs

📁 小说网(c#)版源程序,学习还是不错滴,大家可以下载下来看看.
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -