ASP.NET 2.0 Question:
Download Questions PDF

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

ASP.NET 2.0 Interview Question
ASP.NET 2.0 Interview Question

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 Interview Questions And Answers PDF

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?