Click here to Skip to main content
15,886,038 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have inserted a dataset to my asp.net 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.net but I wonder how to use them in asp.net.

I am simply tring to use through filling the TableAdapter, as


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


but dsSQs (my dataset name) does not snow the table name when I press . as we do in vb.net winforms.

I want to get no. of rows that come under given parameter. e.g vrExamIDSetPaper

Plesae help.
Thanks
Posted
Comments
♥…ЯҠ…♥ 2-Jan-14 23:39pm    
Here ASP.Net refers to C#?
Karthik_Mahalingam 3-Jan-14 1:30am    
"Me." refers VB.net :)
♥…ЯҠ…♥ 3-Jan-14 2:19am    
My bad :( I do not know VB.Net
Karthik_Mahalingam 3-Jan-14 3:43am    
:).. even i too,
i know this only thing.
"this" will be used in c#
"Me" in vb
:)
♥…ЯҠ…♥ 3-Jan-14 5:05am    
No one knows everything right ;-)

1 solution

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
 
Share this answer
 
Comments
Furqan Sehgal 3-Jan-14 3:27am    
Does not work !! pressing . after my dataset does not show Tables. If I write it, it generates error
Furqan Sehgal 3-Jan-14 5:02am    
Does not work ! after my dataset name, when I press . it does not accept Tables(0)
SarveshShukla 7-Jan-14 5:15am    
the syntax i mentioned is of c#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900