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
Describe the events in the life cycle of a web application.
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
Explain what is an assembly?
Explain the difference between Repeater and Data list control in ASP.NET?
How do you change the session time-out value?
How many types of file extensions for razor views in ASP.Net MVC?
What is asp.net mvc5? : Asp.Net MVC
What are the steps involved to fill a dataset?
How does a content page differ from a master page?
How do we assign page-specific attributes?
Mention the namespace that is used to include .net data provider for sql server in .net code?
What is data cache in sql server?
How can you enable impersonation in the web.config file?
Is session server side or client side?
What are directives in asp.net? List down all the important directives.