top.aspx.cs
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:1k
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Web;
- using System.Web.SessionState;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.HtmlControls;
- using qminoa.DA;
- namespace qminoa.Webs
- {
- /// <summary>
- /// top1 的摘要说明。
- /// </summary>
- public class top: System.Web.UI.Page
- {
- protected System.Web.UI.WebControls.DataList dltTab;
-
- private void Page_Load(object sender, System.EventArgs e)
- {
- }
- #region Web Form Designer generated code
- override protected void OnInit(EventArgs e)
- {
- //
- // CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
- //
- InitializeComponent();
- base.OnInit(e);
- }
-
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- this.Load += new System.EventHandler(this.Page_Load);
- this.Init += new System.EventHandler(this.top1_Init);
- }
- #endregion
- private void top1_Init(object sender, System.EventArgs e)
- {
- string ID = Request.QueryString["id"];
- DataTable Tabs = (new CatalogsDB()).GetTab(ID);
- int count=Tabs.Rows.Count;
- dltTab.Width=count*50;
- dltTab.DataSource = Tabs;
- dltTab.DataBind();
- }
- private void dltTab_SelectedIndexChanged(object sender, System.EventArgs e)
- {
-
- }
- }
- }