what is the use of untyped data set ?

Answers were Sorted based on User's Feedback



what is the use of untyped data set ?..

Answer / rahul

Dataset are two types 1.Typed dataset
2. Untyped dataset.

In typed dataset we've autocompletion and intelisense of vs.
and also data's from datset are cached in xml format.

But in untyped dataset, it just connect with the database
and it doesn't support any other features of Vs.

Is This Answer Correct ?    3 Yes 2 No

what is the use of untyped data set ?..

Answer / 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

what is the use of untyped data set ?..

Answer / rahul bhatnagar

Sorry for the above answer---
This is correct one...

Type Dataset
You will get type mismatch and other errors at compile time.


UnType Dataset
You will get type mismatch and other errors at runtime.

Example :

string custid;
custid=dsetcust.customer(0).customerid;


untyped dataset
string custid;
custid=Convert.toString(dsetcust.customer(0).customerid);

Is This Answer Correct ?    1 Yes 1 No

what is the use of untyped data set ?..

Answer / nidhi garg

in untyped dataset, it just connect with the database
and it doesn't support any intellisence features of Vs.

Is This Answer Correct ?    0 Yes 1 No

what is the use of untyped data set ?..

Answer / rahul bhatnagar

UnType Dataset
You will get type mismatch and other errors at compile time.


Type Dataset
You will get type mismatch and other errors at runtime.

Example :

string custid;
custid=dsetcust.customer(0).customerid;


untyped dataset
string custid;
custid=Convert.toString(dsetcust.customer(0).customerid);

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

What are the Types of session management in ASP.NET

0 Answers   Microsoft,


What is web configuration file and how to use in web application

0 Answers   MCN Solutions,


What is redirecting behavior?

0 Answers  


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

0 Answers  


What is difference between view and partial view?

0 Answers  






What is the flow of processing of the request? : asp.net mvc

0 Answers  


How can you achieve nested Masterpages in 2.0?

1 Answers   Microsoft,


What is use of <% %> in asp.net?

0 Answers  


I have a DataGrid in which two of the columns are editable...i want to update the backend table with the newly edited data of the datagrid. How to do this please help me.

1 Answers   MS Technosoft, Wipro,


what is SAP fullform

161 Answers   A3Logics, Amazon, DFD, Federal Mogul, Hol Info, IBM, Infosys, Jai Ganesh, Kesri Metal, Lupin, Microsoft, RPG, SAP Labs, SRS Group, TCS, Videocon,


SessionState - type of sessionstate and when and how to use it

1 Answers   Syntel,


i have a register form & in that form i have a 2 textboxes for entering name&age.my doubt is that how can i provide error message like "invalid entry" when user enter a invalid name/age(eg:user enter name as #%%%##daff,and age as 1000.)in that textboxes.I want code.

3 Answers  


Categories