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
What are the differences between the response.write() and response.output.write()?
Explain server-side scripting?
How can u debug your .net application?
What is difference between view state and session state?
What is the use of execute non query in asp.net?
What is the difference between custom controls and user controls?
What is datagrid asp.net?
Which is better session or viewstate?
How are sessions stored?
What are strong names?
Briefly describe the role of global.asax?
Securitywise What are the Enhancements in 2.0?
If 200 is for all successful operation then why do we have 201 response codes?
How does session authentication work?
How do you create a master page?