Asp.Net Interview Question and Answers for Experienced

1. What is ASP?
 
  • Active Server Pages (ASP), also known as Classic ASP, is a Microsoft's server-side technology, which helps in creating dynamic and user- friendly Web pages.
  • It uses different scripting languages to create dynamic web pages, which can be run on any type of browser.
  • This web are built by using either VBScript or JavaScript and these Web pages have access to the same services as Windows application, including ADO (ActiveX Data Objects) for database access, SMPT (Simple Mail Transfer Protocol) for e-mail, and the entire COM (Component Object Model) structure used in the Windows environment.
  • ASP is implemented through a dynamic-link library (asp.dil) that is called by the IIS server when a Web page is requested from the server.
 
Your Name Your Email-ID
Your Answer
2. What is ASP.NET?
 
  • ASP.NET is a specification developed by Microsoft to create dynamic Web applications, Web sites, and Web services.
  • It is a part of .NET Framework.
  • You can create ASP.NET applications in most of the .NET compatible languages, such as Visual Basic, C#, and J#.
  • The ASP.NET compiles the Web pages and provides much better performance than scripting languages, such as VBScript.
  • The Web Forms support to create powerful forms–based Web pages.
  • You can use ASP.NET Web server controls to create interactive Web applications.
  • With the help of Web server controls, you can easily create a Web application.
 
Your Name Your Email-ID
Your Answer
3. How ASP is different from ASP.NET?
  Following are the points that differentiate ASP and ASP.NET
  • ASP cannot run on non Microsoft technology platforms, whereas ASP.NET can run on non Microsoft Platforms like Apache Web Server and many more.
  • In ASP, only two languages were available for scripting. VBScript and Jscript/Javascript, whereas in ASP.NET, any.NET language compliant can be used, including C# and VB.NET.
  • In ASP, the code is interpreted through Jscript or VBScript interpreter. In ASP.NET, the code is compiled into .NET classes and stored within assemblies. The execution of compiled code results in increasing performance.
  • Debugging ASP is comparatively difficult than debugging ASP.NET code as ASP.NET provides several debugging tools that automates the debugging process.
  • Deployed ASP applications are difficult to update. For updating or replacing a file in deployed application, IIS server needs to be shut down IIs and after replacing the file(s), it is restarted again. Whereas in ASP.NET, updating a file in deployed application doesn't require to stop the web server, instead the file is easily replaced by using the shadow copy mechanism provided by the Common Language Runtime (CLR).
  • In ASP, all directives have to be placed on the first line of a page. In ASP.NET, the directives may be placed anywhere in the file ASP has no inbuilt facility for validation of controls and manual coding is required to validate controls.
  • In ASP.NET, several built in validation controls are provided that are very easy to implement so no need to write code for validating controls.
 
Your Name Your Email-ID
Your Answer
4. What are the four types of Controls that can be added to the ASP.NET Pages?
 
  • HTML Server Controls
  • Web Server Controls
  • Validation Controls
  • Custom and User Controls
 
Your Name Your Email-ID
Your Answer
5. What are custom user controls in ASP.NET?
 
  • The custom user controls are the controls that are defined by developers.
  • These controls are a mixture of custom behavior and predefined behavior.
  • These controls work similar to other Web server controls.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 1 of 10