在asp.net中使用数据集

编程入门 行业动态 更新时间:2024-10-14 04:30:05
本文介绍了在asp中使用数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在我的asp网页上插入了一个数据集,使用Add New Item>>数据集。我已将其与数据库中的表格绑定,并通过右键单击预览数据预览数据但是问题是通过代码预览数据。 我对使用vb中的数据集,但我想知道如何在asp中使用它们。 我只是想通过填充TableAdapter来使用它们,因为

Hi, I have inserted a dataset to my asp webpage, using Add New Item >> Dataset. I have bound it with my table in DB and also previewed data by right clicking Preview Data BUT the problem is previewing data through code. I am quite familiar with using the datasets in vb but I wonder how to use them in asp. I am simply tring to use through filling the TableAdapter, as

Me.TblSQsTableAdapter.Fill(Me.DsSQs.tblSQs, vrExamIDSetPaper)

但是当我按下时,dsSQs(我的数据集名称)不会使表名下雪。正如我们在vb winforms中所做的那样。 我想得到否定。给定参数下的行数。例如vrExamIDSetPaper Plesae帮助。 谢谢

but dsSQs (my dataset name) does not snow the table name when I press . as we do in vb winforms. I want to get no. of rows that come under given parameter. e.g vrExamIDSetPaper Plesae help. Thanks

推荐答案

你不是获取表名,因为它是非类型化数据集,只能在类型化数据集中获取表名。 尝试使用YourDataset.Tables [0] .Rows.Count 查找总行数 You are not getting table name because it is untyped dataset and you get table names only in typed dataset. try to use YourDataset.Tables[0].Rows.Count to find total no of rows

更多推荐

在asp.net中使用数据集

本文发布于:2023-11-25 00:28:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627560.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   asp   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!