Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How do you get records number from 5 to 15 in a dataset of 100 records? Write code.
How do you get records number from 5 to 15 in a dataset of 100 records? Write code.
✍: Guest
Answer1
DataSet ds1=new DataSet();
String strCon=â€data source=IBM-6BC8A0DACEF;initial catalog=pubs;integrated security=SSPI;persist†+†security info=False;user
id=sa;workstation id=IBM-6BC8A0DACEF;packet size=4096?;
String strCom1=â€SELECT * FROM employeeâ€;
SqlDataAdapter sqlDa1=new SqlDataAdapter(strCom1,strCon);
ds1.Tables.Add(â€employeeâ€);
sqlDa1.Fill(ds1,40,50,ds1.Tables[â€employeeâ€].TableName);
DataGrid dg1.DataSource=ds1.Tables[â€employeeâ€].DefaultView;
dg1.DataBind();
Answer2
OleDbConnection1.Open()
OleDbDataAdapter1.Fill(DataSet21, 5, 15, “tabâ€)
This will fill the dataset with the records starting at 5 to 15
2014-09-11, 1677👍, 0💬
Popular Posts:
How Do I Run JUnit Tests from Command Window? To run JUnit tests from a command window, you need to ...
What is the FP per day in your current company?
What’ is the sequence in which ASP.NET events are processed ? Following is the sequence in which the...
Can you explain in GSC and VAF in function points? In GSC (General System Characteristic) there are ...
.NET INTERVIEW QUESTIONS - How to prevent my .NET DLL to be decompiled? By design .NET embeds rich M...