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
Explain about asp.net caching?
What is a runtime version?
What is true about application service provider?
How to handle errors in Web API?
What is session object? Describe in detail.
What is difference between cache and session?
What language does asp.net use?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
Where sessions are stored?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
Will the asp.net validators run in server side or client side?
What is OSI layer? Explain different layers.
Any disadvantages in Dataset and in reflection ?
How to create events for a control?
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.