Skip to main content

ASP.NET 3.5 interview questions with answers

The IHttpHandler and IHttpHandlerFactory interfaces ?

The IHttpHandler interface is implemented by all the handlers. The interface consists of one property called IsReusable. The IsReusable property gets a value indicating whether another request can use the IHttpHandler instance. The method ProcessRequest() allows you to process the current request. This is the core place where all your code goes. This method receives a parameter of type HttpContext using which you can access the intrinsic objects such as Request and Response. The IHttpHandlerFactory interface consists of two methods - GetHandler and ReleaseHandler. The GetHandler() method instantiates the required HTTP handler based on some condition and returns it back to ASP.NET. The ReleaseHandler() method allows the factory to reuse an existing handler.

Does .NET CLR and SQL SERVER run in different process?

Dot Net CLR and all .net realtes application and Sql Server run in same process or we can say that that on the same address because there is no issue of speed because if these two process are run in different process then there may be a speed issue created one process goes fast and other slow may create the problem.

What do you mean by three-tier architecture?

The three-tier architecture was comes into existence to improve management of code and contents and to improve the performance of the web based applications. There are mainly three layers in three-tier architecture. the are define as follows

(1)Presentation
(2)Business Logic

(3)Database

(1)First layer Presentation contains mainly the interface code, and this is shown to user. This code could contain any technology that can be used on the client side like HTML, JavaScript or VBScript etc.

(2)Second layer is Business Logic which contains all the code of the server-side .This layer have code to interact with database and to query, manipulate, pass data to user interface and handle any input from the UI as well.

(3)Third layer Data represents the data store like MS Access, SQL Server, an XML file, an Excel file or even a text file containing data also some additional database are also added to that layers.

Describe the Provider Model in ASP.NET 2.0?

The Provider model in ASP.NET 2.0 is based on the Provider Design Pattern that was created in the year 2002 and later implemented in the .NET Framework 2.0.

The Provider Model supports automatic creation of users and their respective roles by creating entries of them directly in the SQL Server (May even use MS Access and other custom data sources). So actually, this model also supports automatically creating the user table's schema.

The Provider model has 2 security providers in it: Membership provider and Role Provider. The membership provider saves inside it the user name (id) and corresponding passwords, whereas the Role provider stores the Roles of the users.

For SQL Server, the SqlMembershipProvider is used, while for MS Access, the AccessMembershipProvider is used. The Security settings may be set using the website adminstration tool. Automatically, the AccessMembershipProvider creates a Microsoft Access database file named aspnetdb.mdb inside the application's App_Data folder. This contains 10 tables.

Explain about Generics?

Generics are not a completely new construct; similar concepts exist with other languages. For example, C++ templates can be compared to generics. However, there's a big difference between C++ templates and .NET generics. With C++ templates the source code of the template is required when a template is instantiated with a specific type. Contrary to C++ templates, generics are not only a construct of the C# language; generics are defined with the CLR. This makes it possible to instantiate generics with a specific type in Visual Basic even though the generic class was defined with C#.

 

Comments

Popular Posts

DOT NET Interview Questions with Answers

When not to use Design Patterns? Do not use design patterns in any of the following situations. • When the software being designed would not change with time. • When the requirements of the source code of the application are unique. If any of the above applies in the current software design, there is no need to apply design patterns in the current design and increase unnecessary complexity in the design. When to use Design Patterns? Design Patterns are particularly useful in one of the following scenarios. • When the software application would change in due course of time. • When the application contains source code that involves object creation and event notification. Benefits of Design Patterns: The following are some of the major advantages of using Design Patterns in software development. • Flexibility • Adaptability to change • Reusability What are Design Patterns? A Design Pattern essentially consists of a p...

Unlock Exclusive Dining & Luxury Stay Privileges with Club Marriott!

 Love luxury dining, premium hotel stays, and curated resort experiences? Club Marriott offers top-tier membership perks across participating Marriott hotels and resorts, giving you exclusive access to incredible dining privileges and room savings. If you’ve been waiting for the perfect time to join, now you can claim an exclusive welcome bonus! Why Join Club Marriott? ๐Ÿฝ️ Exclusive Dining Perks: Enjoy steep discounts on dining, beverages, and lavish buffet spreads. ๐Ÿจ Luxury Stay Privileges: Special rates and vouchers on room stays and weekend getaways. ๐Ÿ’ณ Instant Welcome Gift: Get ₹1,000 e-Cash credited to your account when you sign up using a member invitation code! How to Claim Your ₹1,000 Welcome Gift: Sign Up for Club Marriott: Register your membership through the official portal. Use Referral Code: Enter the unique code MK018404 during sign-up to unlock your ₹1,000 e-Cash welcome bonus. Start Enjoying Rewards: Redeem your e-Cash and enjoy world-class hospitality, f...

Get Farm-Fresh Produce Delivered (Plus Free Perks!) with Handpickd

Tired of grocery store produce that spoils after just a couple of days?   say hello to Handpickd —the zero-inventory grocery app that delivers farm-fresh fruits, vegetables, and daily essentials straight from the farm to your doorstep overnight. No cold storage, no middleman warehouses—just freshly harvested produce delivered the next morning. Why You’ll Love Handpickd: ๐ŸŒฝ Farm-to-Doorstep Freshness: Sourced overnight so your fruits and veggies taste better and last longer. ๐Ÿงผ Hygienic & Clean: Ozone-cleaned, chemical-free, and carefully hand-picked produce. ๐Ÿ’ฐ Exclusive Referral Rewards: Earn rewards on every order when you sign up today! How to Get Started & Claim Your Bonus: Download & Join: Use the referral link below to get started: ๐Ÿ‘‰ Sign Up for Handpickd & Claim Your Bonus Rewards Order Your Essentials: Choose from farm-fresh veggies, seasonal fruits, dairy, and daily staples. Enjoy Next-Day Delivery: Get fresh, high-quality groceries delive...

Reboot Restore Rx

Reboot Restore Rx™ is a Freeware utility that makes it easy to maintain PC's in small public access computing environments (classrooms, computer labs, kiosks, internet cafes, libraries, etc.). Every time you restart the PC's - they will automatically reset to your desired baseline settings. Advanced Technology designed for small public access computing environments. Its features include- Restore on Reboot Reset to Baseline on PC Start Up or Hard Reset One-Click Instant Updates VMWare Support Protects the MBR Works below Windows Mini OS Access Restore from unbootable Windows Supports Windows 2000, XP, Vista, Windows 7 & 8 (all 32 and 64 bit versions) http://www.horizondatasys.com/products_and_solutions.aspx?ProductId=18

Current Vacancies

  As part of our Employee Referral Scheme, currently we have the following vacancies available:   1] Lead Process Engineer – Graduate Engineer  with Min 15 years' experience  in oil and gas upstream projects .   2] Lead Electrical Engineer - Graduate Engineer  with Min 15 years' experience  in oil and gas upstream projects.   3] Senior Electrical Engineer - Graduate Engineer  with Min 10 years' experience  in LNG projects / Oil &Gas projects .   4] Senior Project Engineer - Graduate Engineer  with Min 12 years' experience  in oil and gas upstream projects with strong focus on Mechanical /Piping.   5] Senior Project Engineer - Graduate Engineer  with Min 12 years' experience  in LNG Projects .   6] Technical Safety Engineer - Graduate Engineer  with Min 6 years' experience  in oil and gas upstream projects .