ใช้ระบบ
ใช้ System.collections;
ใช้ System.ComponentModel;
ใช้ System.data;
ใช้ System.data.sqlclient;
ใช้ System.Drawing;
ใช้ System.web;
ใช้ System.web.sessionstate;
ใช้ system.web.ui;
ใช้ System.web.ui.webcontrols;
การใช้ System.web.ui.htmlcontrols;
เนมสเปซ CJ168.WEB
-
/// <summary>
/// คำอธิบายสรุปสำหรับ 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 += ใหม่ system.eventhandler (page_init);
-
โมฆะส่วนตัว page_load (ผู้ส่งวัตถุ, system.eventargs e)
-
// ใส่รหัสผู้ใช้เพื่อเริ่มต้นหน้าเว็บที่นี่
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 + 期;
-
อื่น
-
lbmaginfo.text = 参数有错;
-
binddata (intmagid, intmagyear, intyearissue);
-
เป็นโมฆะ BindData (int magid, int magyear, int yearissue)
-
cj168.dataaccess.magsdb showmagissuecat = ใหม่ cj168.dataaccess.magsdb ();
DatalistMagCat.Datasource = showmagissuecat.getMagissueCat (Magid, Magyear, Yearissue);
DatalistMagcat.databind ();
-
สาธารณะ sqldatareader getThreadMessages ()
-
// รับรายการข้อความสนทนาสำหรับโมดูล
//aspnetportal.discussiondb อภิปราย = ใหม่ aspnetportal.discussiondb ();
// sqldataReader dr = disction.getThreadMessages (toplevellist.datakeys [toplevellist.selectedIndex] .toString ());
cj168.dataaccess.magsdb showmagissuecat = ใหม่ cj168.dataaccess.magsdb ();
sqldatareader dr = showmagissuecat.getmagissuecat (1, 2001, 1);
// ส่งคืนดาต้าวิวที่กรอง
คืนดร.;
-
โมฆะสาธารณะ Datalist_itemCommand (ผู้ส่งวัตถุ, DatalistCommandEventArgs E)
-
String cmd = ((LinkButton) E.CommandSource) .CommandName;
ถ้า (cmd == เลือก)
DatalistMagCat.SelectedIndex = E.Item.ItemIndex;
binddata (intmagid, intmagyear, intyearissue);
-
โมฆะสาธารณะ Datalist_CancelCommand (ผู้ส่งวัตถุ, DatalistCommandEventArgs E)
-
DatalistMagCat.SelectedIndex = -1;
binddata (intmagid, intmagyear, intyearissue);
-
โมฆะส่วนตัว PAGE_INIT (ผู้ส่งวัตถุ EventArgs E)
-
-
// codegen: การโทรนี้เป็นสิ่งจำเป็นโดยนักออกแบบเว็บฟอร์ม ASP.NET
-
เริ่มต้นคอมเพล็กซ์ ();
-
#REGION Web Form Designer สร้างรหัส
/// <summary>
/// วิธีการที่จำเป็นสำหรับการสนับสนุนผู้ออกแบบ - อย่าแก้ไข
/// เนื้อหาของวิธีนี้กับตัวแก้ไขรหัส
/// </summary>
โมฆะส่วนตัวเริ่มต้นคอมเม้นต์ ()
-
this.load += new System.eventHandler (this.page_load);
-
#endregion
-
-