http://cncode.com/SoftView.Asp?SoftID=116我的流言本源码 里边有分页的方法和你类似 .
解决方案 »
- 这个文字,如果是读取数据库,怎么改???
- 跨库查询后的数据该如何在一个rs里面显示出来
- 再次垦请大家帮忙看一下我公司网站是否能正常访问?
- 请问谁知道VS2005中后加载的datagrid控件的绑定“超链接列”能不能用编辑按钮修改啊?
- 为什么加了Response.Redirect("RegCatalog.aspx",false);后在该方法中的其他语句不执行???????
- 在窗体前弹出有选择对话框
- 都来看看、、[散分100]
- 求救!!基于微软asp.net的演示项目communicationstartkit
- 小问题,如何从一个字符转换到数字?如: 从'a'到他的asc码
- vs2017可以修改web项目的url端口号吗?
- 请问思归一个关于HttpContext.Current.Items和Cache的问题。
- 删除新闻分类时出现如下错误,请各位帮我看看!先谢谢了!100分!
http://www.mastercsharp.com/article.aspx?ArticleID=76&&TopicID=2
DataRepeater/DataList控件,我没有看看我的private void dataShow()
{
int StartIndex = CurrentPage*PageSize;
string sqlStr="select * from tblSoftInfo order by iId Desc,soft_DownTime Desc";
SqlDataAdapter da=new SqlDataAdapter(sqlStr,Conn);
DataSet ds=new DataSet();
da.Fill(ds,StartIndex,PageSize,"softInfo");
Conn.Close();
for(int i=0;i<ds.Tables["softInfo"].Rows.Count;i++)
{
TableRow r = new TableRow(); //新增行
r.Height=20;
TableCell c = new TableCell(); //新列
c.Height=20;
c.Width=400;
c.Controls.Add(new LiteralControl(" "+ds.Tables["softInfo"].Rows[i]["iId"].ToString()+".<a href='softInfo.aspx?id="+ds.Tables["softInfo"].Rows[i]["iId"].ToString()+"');>"+ds.Tables["softInfo"].Rows[i]["soft_Name"].ToString()+"</a> "));
r.Cells.Add(c);
TableCell c1 = new TableCell(); //新列
c1.Height=20;
c1.Width=100;
c1.Controls.Add(new LiteralControl("["+Convert.ToDateTime(ds.Tables["softInfo"].Rows[i]["soft_Date"].ToString()).ToString("yyyy-MM-dd")+"]"));
r.Cells.Add(c1);
Table1.Rows.Add(r);
}
}
if (!IsPostBack)
{}