FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

ASP.NET INTERVIEW QUESTION & ANSWERS

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 :
  • SAO (server activated object)
  • CAO (Client activated object)
Your Name Your Email-ID
Your Answer
 
102. Define Server Activated Object(SAO)?
  SAO - Server Activated Object has two modes are :
  • Single call
  • Singleton

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.
Your Name Your Email-ID
Your Answer
 
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.
Your Name Your Email-ID
Your Answer
 
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.
For example: you have connection string= \"some connection string\" in each of your page, what happens when you have to change your connection string, you need to change it in all pages which is tedious. To avoid this problem you can specify your connection string in web.config and change it here at this only location when necccessary.

Your Name Your Email-ID
Your Answer
 
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.

Your Name Your Email-ID
Your Answer