ASP.NET INTERVIEW QUESTION & ANSWERS
DOT Net
TAGS
101. | What are the different types of remoting object creation mode in .NET? |
---|---|
There are two different ways in which object can be created using remoting are :
|
102. | Define Server Activated Object(SAO)? |
---|---|
SAO - Server Activated Object has two modes are :
Single object is created with every method call thus making object stateless. Singleton is created only once and the object is shared with all clients. |
103. | Define Client Activated Object(SAO)? |
---|---|
The creation request is sent from the client side.Client holds a proxy to the server object created on server. |
104. | What is use of web.config? |
---|---|
Web.config is used connect database from front end to back end.
Web.config is used to maintain the App settings instead of static variables. |
Posted by Vijayender. (Jun 20, 2013) | |
It is used to set the application specific settings, and maintenance will be easy. |
105. | What is the MapPath method used for? |
---|---|
MapPath retrieves the full path of a physical directory, given the name of a virtual directory. Always use MapPath wherever possible; this way, you can change the physical location of your Web project without having to change your code. |
Posted by Rukasana H Dange. (Jan 17, 2014) | |
The MapPath method maps a specified path to a physical path. |