CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  ASP.NET

ASP.NET如何创建文章标题列表控件?

楼主lnwuyaowei(风可以追我)2004-12-01 00:34:44 在 .NET技术 / ASP.NET 提问

如题,希望给出详细的步骤,及需要注意的问题。 问题点数:20、回复次数:3Top

1 楼46539492(男儿当自强(http://blog.csdn.net/46539492/))回复于 2004-12-01 08:41:19 得分 5

用datagrid呀。  
  ---------------------  
  <asp:datagrid    
  id=dg  
  runat="server"  
  BorderWidth="0"  
  autocustompaging="true"  
  AutoGenerateColumns="false"  
  showheader=true  
  headerstyle-backcolor="#aa56a1"  
  cellpadding=2  
  cellspacing=1  
  allowpaging=true  
  backcolor=#ffcc99  
  width=100%   >  
  <pagerstyle   visible=false/>  
  <columns>  
  <asp:templatecolumn  
  headertext="删除"  
  headerstyle-height=23  
  headerstyle-width=5%  
  itemstyle-backcolor=#ffffff  
  itemstyle-horizontalalign=center>  
  <itemtemplate>  
  <input   type='checkbox'   name="chk"   value='<%#databinder.eval(container.dataitem,"renoteid")%>'>  
  </itemtemplate>  
  </asp:templatecolumn>  
  <asp:templatecolumn  
  headertext="标题"  
  headerstyle-width=13%  
  itemstyle-backcolor=#ffffff  
  >  
  <itemtemplate>  
  <a   href=tecview.aspx?noteid=<%#   databinder.eval(container.dataitem,"noteid")%>   target="_blank"><%#container.dataitem("title")%></a>  
  </itemtemplate>  
  </asp:templatecolumn>  
  <asp:templatecolumn  
  headertext="内容"  
  headerstyle-width=45%  
  itemstyle-backcolor=#ffffff  
  >  
  <itemtemplate>  
  <%#container.dataitem("content")%>  
  </itemtemplate>  
  </asp:templatecolumn>  
  <asp:templatecolumn  
  headertext="ip"  
  headerstyle-width=12%  
  itemstyle-backcolor=#ffffff  
  >  
  <itemtemplate>  
  <%#container.dataitem("ip")%>  
  </itemtemplate>  
  </asp:templatecolumn>  
  <asp:templatecolumn  
  headertext="时间"  
  headerstyle-width=13%  
  itemstyle-backcolor=#ffffff  
  >  
  <itemtemplate>  
  <%#container.dataitem("ttime")%>  
  </itemtemplate>  
  </asp:templatecolumn>  
  </columns>  
  </asp:datagrid>Top

2 楼conquersky(conquersky V)回复于 2004-12-01 08:48:30 得分 5

用datalist   datagrid   很容易实现Top

3 楼forideal(我心飞翔)回复于 2004-12-01 08:57:03 得分 10

用DataList或DataGrid创建成用户控件或include(建议使用用户控件,可以在控件页面中使用asp.net的高速缓存),在需要的aspx页面中调用它就是了。Top

相关问题

  • 点标题可自动按升序或降序排序的数据列表控件是什么?
  • 有关列表控件
  • mshflexgrid 控件的列标题
  • 请问PB中实现象ASP中的Selected下拉列表用什么控件啊?是Dropdownlistbox吗?但是...
  • 关于asp控件
  • 请教下拉列表控件
  • 谁有列表控件的例程?
  • 关于列表控件的问题
  • 列表控件的制作(给分)
  • 那里有文件列表框控件?

关键词

  • asp.net

得分解答快速导航

  • 帖主:lnwuyaowei
  • 46539492
  • conquersky
  • forideal

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo