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

Is it possible to use two versions of assembly at the same time?If possible explain with code?

3 Answers   Tech Mahindra,


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

0 Answers   Honeywell, Wipro,


Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close()

4 Answers   Techno Solutions,


What is cached data phone?

0 Answers  


hi guys do u know how to go one page to one page to another page plz tell me any of u know

3 Answers  






What is the maximum length of textbox

1 Answers  


What is _viewstart?

0 Answers  


which is the new version of IIS SERVER

1 Answers  


Can you change a master page dynamically at runtime? How?

0 Answers  


What is the use of Administration tool in Asp.net 2.0?

2 Answers  


Explain weak typing and strong typing.

0 Answers  


Differnce between Control an View State

1 Answers   Proteans,


Categories