what is the use of untyped data set ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
what is difference between User Control,Custom Contro1,Web server control and template controls
Explain the steps needed to be performed in order to create an animation in xaml?
Give an example appropriate use forweb service as opposed to a non-serviced .NET component
What New Features comes with ASP.NET Web API 2.0?
1. What is Connection Pooling…? 2. Maintaining Sessions in ASP.NET 3. ASP.NET page lifecycle. 4. Can we store objects in sessions. 5. What is AJAX..? 6. Serialization/Deserialization. Why we use serialization and Deserialization…? 7. What are Arrays and Arraylist..? 8. Difference between Authentication and Authorization…? 9. Difference between abstract class and Interfaces 10. What is a view..? Does a view contain data..? 11. What are triggers..? 12. What are transactions..? 13. What is Metaview (oracle)..? 14. What is Inheritance..? How can we call a method from the base class..? 15. Can an abstract class have zero abstract methods..? 16. How to read from Message Queue..? 17. What is Metadata..? 18. You would prefer to have business logic in c# or DB Side..? Why…?
1 Answers Franklin Templeton, Sky InfoTech,
what is Repeater Control, When it is used,How it is used, what type of template is used for repeater control?
which is the new version of IIS SERVER
Can we throw exception from catch block ?
4 Answers Accenture, BirlaSoft,
What are session cookies?
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()
How many types of session in ASP.NET
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
0 Answers Sans Pareil IT Services,