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;
using System.Data.SqlClient;
public partial class datalist : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind();
}
}
protected void Bind()
{
SqlConnection con = DB.createConnection();
con.Open();
SqlDataAdapter sda = new SqlDataAdapter("select * from report where id<100", con);
DataSet ds = new DataSet();
sda.Fill(ds,"report");
DataList1.DataSource = ds;
DataList1.DataBind();
}
}
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;
using System.Data.SqlClient;
public partial class 新文件夹1_repeate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind();
}
}
protected void Bind()
{
SqlConnection con = DB.createConnection();
con.Open();
SqlDataAdapter sda = new SqlDataAdapter("select * from report where id<100", con);
DataSet ds = new DataSet();
sda.Fill(ds, "report");
Repeater1.DataSource = ds;
Repeater1.DataBind();
}
}