Pages

Tuesday, 18 December 2012

ASP.Net Interview Question and Answers

What is ASP.NET?
  ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server.
ASP.NET provides increased performance by running compiled code.
2. What is the difference between Classic ASP and ASP.Net?
 
    ASP is Interpreted language based on scripting languages like Jscript or VBScript.
  • ASP has Mixed HTML and coding logic.
  • Limited development and debugging tools available.
  • Limited OOPS support.
  • Limited session and application state management.
  • ASP.Net is supported by compiler and has compiled language support.
  • Separate code and design logic possible.
  • Variety of compilers and tools available including the Visual studio.Net.
  • Completely Object Oriented.
  • Complete session and application state management.
  • Full XML Support for easy data exchange.
3. What is Difference between Namespace and Assembly?
  Namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.
4. What is the difference between early binding and late binding?
  Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding.
5. What is the difference between ASP Session State and ASP.Net Session State?
  ASP session state relies on cookies, Serialize all requests from a client, does not survive process shutdown, Can not maintained across machines in a Web farm.
6. What is the difference between ASP Session and ASP.NET Session?
  Asp.net session supports cookie less session & it can span across multiple servers.
7. What is reflection?
  All .NET compilers produce metadata about the types defined in the modules they produce. This metadata is packaged along with the module (modules in turn are packaged together in assemblies), and can be accessed by a mechanism called reflection.
The System.Reflection namespace contains classes that can be used to interrogate the types for a module/assembly.
8. What is the difference between Server.Transfer and response.Redirect?
  The Server.Transfer () method stops the current page from executing, and runs the content on the specified page, when the execution is complete the control is passed back to the calling page.
While the Response.Redirect () method transfers the control on the specified page and the control is never passed back to calling page after execution.

No comments:

Post a Comment