Answer Posted / m_dasharatham
An "untyped" dataset is an instance of the DataSet class
from the System.Data namespace. It’s called “untyped”
because all columns are provided as the base System.Object
type (“object” in C# and “Object” in VB.NET) and must be
coerced to the appropriate type, e.g.
void Form1_Load(object sender, EventArgs e) {
DataSet ds = new DataSet();
sqlDataAdapter1.Fill(ds);
foreach( DataRow row in ds.Tables[0].Rows ) {
string fname = (string)row["au_fname"];
bool contract = (bool)row["contract"];
string item =
string.Format("{0} has a contract: {1}", fname,
contract);
listBox1.Items.Add(item);
}
}
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Is oauth for authentication or authorization?
What are the namespaces used in asp.net mvc? : asp.net mvc
What is the use of web.config and machine.config files?
How do you do client-side validation in .net? How to disable validator control by client side javascript?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
Can one dll file contains the compiled code of more than one .net language?
Explain about Multi-Language integration?
Explain the server control events of asp.net ?
Explain the concept of MVC Scaffolding?
What are web server controls in asp.net?
Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?
How to use push notification?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
What is asp net application object?
What is the life cycle of an asp.net page?