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
}
}
//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
}
}
| 对此文章发表了评论 |

