admin/Product/productbigclass.aspx.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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;
public partial class admin_Product_productbigclass : System.Web.UI.Page
{
//private int recordamount = 0; //表中的记录总数
//private int pagesieze = 5; //每页显示多少条记录
//private int pagecount = 0; //共需要分多少页
//private int curpageindex = 0; //当前是第几页
protected void Page_Load(object sender, EventArgs e)
{
//第一次请求该页时初始化recordamount、pagesieze、pagecount这3个值,这3个值在以后的显示中都不会改变
if (!this.IsPostBack)
{
// bind();
}
#region
////与应用程序不同的地方是此处一定要把当前页面的索引值和分页总数的值存储起来,因为//网页跳转过程中跳转入口的不确定性,后面随时要用到,所以必须单独存储。
////curpageindex、pagecount这2个值在“首页、上一页、下一页、尾页”这4个按钮的事件中需要使用,所以应该在每次加载时都为这2个参数赋值
//curpageindex = int.Parse(this.lblcurpageindex.Text);
//pagecount = int.Parse(this.lblpagecount.Text);
#endregion
}
#region
// //为下拉列表添加选择项
// public static string Num1, Num2, Num3;
// //进行数据的处理
// private void ListItem1()
// {
// for (int i = 0; i < Convert.ToInt32(Num1); i++)
// {
// this.DropDownList2.Items.Add(Convert.ToString(Convert.ToInt32(i) + 1));
// }
// }
// string str = "Data Source=.;Initial Catalog=Mediafood;UID=sa;pwd=";
// public void News()
// {
// this.DropDownList2.Items.Clear();
// this.ListItem1();//向下拉列表中添加分页数
// int page = Convert.ToInt32(this.Label2.Text);
// SqlConnection scon = new SqlConnection(str);
// SqlCommand com = new SqlCommand("select * from News order by id desc", scon);
// SqlDataAdapter sda = new SqlDataAdapter(com);
// DataSet ds = new DataSet();
// sda.Fill(ds, "News");
// PagedDataSource pds = new PagedDataSource();//对用于分页的类的引用
后面还有 234 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。