ASP.NET 2.0 Question: Download ASP.NET 2.0 PDF

How does u get record no from 5 to 15 from a dataset of 100 records?

Tweet Share WhatsApp

Answer:

// ds-> daata set

//dr as datarow

for i=5 to 15

{

dr=ds.table.row(i)

}


You can also archive using this syntax. sqlconnection con=new sqlconnection(""); Sqldataadapter da=new Sqldataadapter("T-SQlQUARy",con); dataset ds=new dataset(); da.Fill(ds,5,15,"tablename");

Download ASP.NET 2.0 PDF Read All 87 ASP.NET 2.0 Questions
Previous QuestionNext Question
How do u declare static variable and how it is declared and what is its lifetime?Which namespace is used to get assembly details?