在后台cs文件中有个函数:[code]publicstringgetStyle(objectstyle){if((int)style==1){return"文字";}return"图片";}[/code]在前台的Repeater中要这样调用,[code]<%#this.getStyle(Eval("link_style"))%>[/code]...
http://www.jb51.net//article/15546.htm
1、foreach (Control c in this.rptTables.Controls){ CheckBox cbx = (CheckBox)c.FindControl("cbxId"); TextBox tbx = (TextBox)c.FindControl("tbxTableName"); if (cbx != nu...
http://www.jb51.net//article/15406.htm
1、foreach (Control c in this.rptTables.Controls){ CheckBox cbx = (CheckBox)c.FindControl("cbxId"); TextBox tbx = (TextBox)c.FindControl("tbxTableName"); if (cbx != nu...
http://www.jb51.net//article/15319.htm
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using Sy...
http://www.jb51.net//article/2467.htm
摘要:了解 ASP.NET 用于显示数据的三个控件: DataGrid、DataList 和 Repeater。 这些控件中的每一个都有独特的特性以及相关的优点和缺点。 创建显示数据的 ASP.NET 应用程序时,为这项工作选择正确的控件非常重要。 正如将在本文中所看到的一样,选择使用 DataGrid、DataList 还是 Repeater,要权衡下面三个因素: 可用性、开发时间和性能。 (12 页打印页)简介自从出现了像 ...
http://www.jb51.net//article/2455.htm
一、程序功能: 为Repeater实现分页 二、窗体设计: 1、新建ASP.NETWeb应用程序,命名为Repeater2,保存路径为http://192.168.0.1/Repeater2(注:我机子上的网站的IP是192.168.0.1的主目录是D:\web文件夹)然后点击确定。 2、向窗体添加一个3行一列的表,向表的第一行中添加一个Repeater控件,向表的第二行中添加两个Label控件向表的第三行中添加四个Button按钮。 3、切换到HTML代码窗口,在<asp:Repeaterid="Repeater1"runat="server">和</asp:Repea...
http://www.jb51.net//article/2454.htm
共有:6/10,当前1/1页
[首页] [上一页]
1
[下一页] [尾页]
转到:
