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
In a Repeater control how one can provide an alternating color scheme ?
Explain diff between dataset and datareader?
What is server side session?
How do I know asp.net mvc version? : Asp.Net MVC
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
What is applicatio domain?
What are the events in a page life cycle?
To redirect the user to another page which method do we use without performing a round trip to the client?
What is ispostback method in asp.net?
Explain what are the advantages of asp.net mvc framework? : asp.net mvc
What do you mean by serialize?
Explain the difference between web user control and web custom control?
Is asp.net 64-bit enabled? How?
Can more than one person use the same login?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?