在ASP.NET中访问DataGrid中所有控件的值
来源:互联网 发布:安卓网络电视直播软件 编辑:程序博客网 时间:2024/06/06 12:21
要在ASP.NET中访问DataGrid中所有控件的值,可以遍历DataGrid中每个控件:下面就是实现这一功能的aspx代码和脚本代码【VB.NET】:
" Next ResultField.Text = Result End Sub Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '在此处放置初始化页的用户代码 If Not Page.IsPostBack Then Dim data As ArrayList = New ArrayList() data.Add(New Person("Net_lover", 33, True)) data.Add(New Person("孟子E章", 28, True)) data.Add(New Person("精彩世界", 20, False)) data.Add(New Person("XML开发", 27, True)) MyDataGrid.DataSource = data MyDataGrid.DataBind() End If End SubEnd ClassPublic Class Person Private _Name As String Private _Age As Integer Private _IsGraduate As Boolean Public Sub New(ByVal Name As String, ByVal Age As Integer, ByVal IsGraduate As Boolean) _Name = Name _Age = Age _IsGraduate = IsGraduate End Sub Public Property Name() As String Get Return _Name End Get Set(ByVal Value As String) _Name = Value End Set End Property Public Property Age() As Integer Get Return _Age End Get Set(ByVal Value As Integer) _Age = Value End Set End Property Public Property IsGraduate() As Boolean Get Return _IsGraduate End Get Set(ByVal Value As Boolean) _IsGraduate = Value End Set End PropertyEnd Class
- 在ASP.NET中访问DataGrid中所有控件的值
- 在ASP.NET中访问DataGrid中所有控件的值
- 在ASP.NET中访问DataGrid中所有控件的值
- 在ASP.NET中访问DataGrid中所有控件的值
- 在ASP.NET中访问DataGrid中所有控件的值
- 在ASP.NET中访问DataGrid中所有控件的值
- ASP.NET中DataGrid控件的使用
- 在ASP 中实现ASP.Net 的DataGrid 功能
- ASP.NET中DataGrid控件应用技巧
- Asp.net中DataGrid控件的自定义分页
- Asp.net中DataGrid控件的自定义分页
- Asp.net中DataGrid控件的自定义分页
- Asp.net中DataGrid控件的自定义分页
- Asp.net中DataGrid控件的自定义分页
- Asp.net中DataGrid控件的自定义分页
- Asp.net中DataGrid控件的自定义分页
- asp.net 中一次性更新DATAGRID中所有记录
- asp.net中一次更新DATAGRID中所有记录
- 为DataGrid添加CheckBox控件
- 利用DataGrid编辑、修改、删除记录
- 利用RowFilter属性,将一个DataSet绑定到两个DataGrid
- 在DataGrid快速添加新行
- 一个功能齐全的DataGrid分页例子
- 在ASP.NET中访问DataGrid中所有控件的值
- 显示和隐藏DataGrid中的列
- 在DataGrid中为Footer添加自定义内容
- 利用ASP.NET DataGrid显示主次关系的数据
- 把Excel文件中的数据读入到DataGrid中
- 在.NET中杀死Word,Excel等进程
- GetLnkTargetPath
- jsp 中右键菜单的操作
- Web标准初体验