Sie sind auf Seite 1von 3

.Net Question What are Web Services?

Web services are application components Web services communicate using open protocols Web services are self-contained and self-describing Web services can be discovered using UDDI Web services can be used by other applications XML is the basis for Web services

What is SOAP?
SOAP is an XML-based protocol to let applications exchange information over HTTP. Or more simple: SOAP is a protocol for accessing a Web Service.

SOAP stands for Simple Object Access Protocol SOAP is a communication protocol SOAP is a format for sending messages SOAP is designed to communicate via Internet SOAP is platform independent SOAP is language independent SOAP is based on XML SOAP is simple and extensible SOAP allows you to get around firewalls SOAP is a W3C standard

Abstract Class 1.It can contain Concrete methods(methods with implementation) So in other words, Abstract class can contain methods with both implemetaion and without implementation 2.Multiple inheritance is not possible in case of abstract class 3.Access Specifiers are been Supported in abstract class

Interface 1.Does not contain any concrete methods 2.Multiple Inheritance is possible with interface 3.Access Specifiers are not supported in Interface

Feature Multiple inheritance

Interface A class may inherit several interfaces.

Abstract class A class may inherit only one abstract class.

Where is the View state Data stored?


ViewState data is stored in the hidden field. When the page is submitted to the server, the data is sent to the server in the form of hidden fields for each control. If th viewstate of the control is enable true, te value is retained on the post back to the client when the page is post backed.

Difference between Dataset and Data reader?. Dataset Object Read/Write access Support multiple table from different databases Disconnected mode Bind to multiple controls Forward and backward scanning Slower access to data Greater overhead to enable additional features Supported by visual studio .net tools Data Reader Object Read only access Supports a single table based on a single sql queries of one database Connect mode Bind to single control Forward only scanning of data Faster access to data Lightweight object with very little overhead Must be manually coded

What is different between Execute Reader, Execute Non Query and Execute Scalar ?. Execute Reader : Use for accessing data,It provides a forward only, read-only, connected recordset. Execute Non Query : Use for data manipulation, such as insert, update, delete. Execute Scalar : Use for retrieving 1 row 1 column value i.e. single value.

What is the Global.asax used for? The Global.asax (including the Global.asax.cs file) is used to implement application and session level events.

Two types of configuration files supported by ASP.Net ?.

Configuration files are used to control and manage the behavior of a web application.

Machine.config Web.config

Enumeration ?.
The enum keyword is used to declare an enumeration, a distinct type consisting of a set of named constants called the enumerator list default, the first enumerator has the value 0, and the value of each successive enumerator is increased by 1 enum Days {Sat, Sun, Mon, Tue, Wed, Thu, Fri}; enum Days {Sat=1, Sun, Mon, Tue, Wed, Thu, Fri};

Database Questions magic tables ?. While using triggers these Inserted & Deleted tables (called as magic tables) will be created automatically. When we insert any record then that record will be added into this Inserted table initially, similarly while updating a record a new entry will be inserted into Inserted table & old value will be inserted into Deleted table.
Interfaces in C # provide a way to achieve runtime polymorphism. Using interfaces we can invoke functions from different classes through the same Interface reference, whereas using virtual functions we can invoke functions from different classes in the same inheritance hierarchy through the same reference. Before things start getting difficult let me start using simple and short examples to explain the concept of interfaces. Here's a short example that shows you what an interface looks like.

http://www.codeproject.com/Articles/18743/Interfaces-in-C-For-Beginners

Das könnte Ihnen auch gefallen