国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

part1: ShowIssueCat.aspx.cs

2024-05-04 11:06:27
字體:
來源:轉載
供稿:網友


using system;
using system.collections;
using system.componentmodel;
using system.data;
using system.data.sqlclient;
using system.drawing;
using system.web;
using system.web.sessionstate;
using system.web.ui;
using system.web.ui.webcontrols;
using system.web.ui.htmlcontrols;

namespace cj168.web
{
/// <summary>
/// summary description for showissuecat.
/// </summary>
public class showissuecat : system.web.ui.page
{
  protected system.web.ui.webcontrols.label lbmaginfo;
  protected system.web.ui.webcontrols.datalist datalistmagcat;
  protected system.web.ui.webcontrols.datalist datalisttest;
  protected system.web.ui.webcontrols.linkbutton linkbutton;
  int intmagid;
  int intmagyear;
  int intyearissue;

  public showissuecat()
  {
   page.init += new system.eventhandler(page_init);
  }
  private void page_load(object sender, system.eventargs e)
  {
   // put user code to initialize the page here
   string strmagname = request.params["magname"].tostring();
   string strmagid = request.params["magid"].tostring();
   string strmagyear = request.params["magyear"].tostring();
   string stryearissue = request.params["yearissue"].tostring();
   
   if (strmagname != string.empty && strmagid != string.empty  && strmagyear != string.empty && stryearissue != string.empty)
   {
    intmagid = int32.parse(strmagid);
    intmagyear = int32.parse(strmagyear);
    intyearissue = int32.parse(stryearissue);
    lbmaginfo.text = strmagname + " " + strmagyear + "年度 第" + stryearissue + "期";
   }
   else
   {
    lbmaginfo.text = "參數有錯";
   }
   binddata(intmagid, intmagyear, intyearissue);
   
  }
  void binddata(int magid, int magyear, int yearissue)
  {
   
   cj168.dataaccess.magsdb showmagissuecat = new cj168.dataaccess.magsdb();
   datalistmagcat.datasource = showmagissuecat.getmagissuecat(magid, magyear, yearissue);
   datalistmagcat.databind();
   
  }
  
  public sqldatareader getthreadmessages()
  {
   // obtain a list of discussion messages for the module
   //aspnetportal.discussiondb discuss = new aspnetportal.discussiondb();
   //sqldatareader dr = discuss.getthreadmessages(toplevellist.datakeys[toplevellist.selectedindex].tostring());
   cj168.dataaccess.magsdb showmagissuecat = new cj168.dataaccess.magsdb();
   sqldatareader dr = showmagissuecat.getmagissuecat(1, 2001, 1);
   // return the filtered dataview
   return dr;
  }


  public void datalist_itemcommand(object sender, datalistcommandeventargs e)
  {
   string cmd = ((linkbutton)e.commandsource).commandname;
   if (cmd == "select")
    datalistmagcat.selectedindex = e.item.itemindex;
   binddata(intmagid, intmagyear, intyearissue);
  }
  public void datalist_cancelcommand(object sender, datalistcommandeventargs e)
  {
   datalistmagcat.selectedindex = -1;
   binddata(intmagid, intmagyear, intyearissue);
  }
  private void page_init(object sender, eventargs e)
  {
   //
   // codegen: this call is required by the asp.net web form designer.
   //
   initializecomponent();
  }
  #region web form designer generated code
  /// <summary>
  /// required method for designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void initializecomponent()
  {    
   this.load += new system.eventhandler(this.page_load);
  }
  #endregion
}
}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 屯留县| 定安县| 屏东县| 临洮县| 威信县| 南皮县| 丘北县| 诸暨市| 神农架林区| 那曲县| 东乌珠穆沁旗| 丁青县| 亚东县| 富顺县| 望都县| 临夏市| 凤山市| 沛县| 呼和浩特市| 武隆县| 岐山县| 榆树市| 饶河县| 读书| 塔城市| 民勤县| 鄱阳县| 安陆市| 太白县| 临潭县| 遵化市| 普兰店市| 泗水县| 临颍县| 建德市| 大化| 筠连县| 涞源县| 扬州市| 江陵县| 上犹县|