📄 default2.aspx.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;
namespace novel
{
public partial class default2 : System.Web.UI.Page
{
DB_Class pdb = new DB_Class();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int chapterid = Convert.ToInt32(Request.QueryString["chapterid"]);
GetList_chap(chapterid);
}
}
public void GetList_chap(int chapterid)
{
List_topic.DataSource = pdb.dst("select title from novel_topic where topicid in (select novel_chapter9.topicid from novel_chapter9 where chapterid=" + chapterid + ") ").Tables[0].DefaultView;
List_topic.DataBind();
List_content.DataSource = pdb.dst("select chapter,path from novel_chapter9 where chapterid=" + chapterid + " ").Tables[0].DefaultView;
List_content.DataBind();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -