Business and Technology Consulting Organization in Mumbai

Electronic Transformation Globally Technology Solution IT Consultancy Service Provider

Asp.net Interview Questions Answer

What are ASHX files? What are HttpHandlers? Where can they be configured?
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.
To use the handle we need to register the handler in web.config
< configuration>
< system.web>
< httpHandlers>
< add verb="*" path="handler.aspx" type="ETG.Base.Applications.ConsoleApp.HttpHandlerExample,HandlerTest"/>
< /httpHandlers>
< /system.web>
< /configuration>
Explain how PostBacks work, on both the client-side and server-side. How do I chain my own JavaScript into the client side without losing PostBack functionality?
Compare and contrast LoadLibrary(), CoCreateInstance(), CreateObject() and Assembly.Load().
How does IIS communicate at runtime with ASP.NET? Where is ASP.NET at runtime in IIS5/ IIS6/ IIS7
Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe. Also read IIS
A button in a webform is class or object? If it is object than which is class for that object?
its is not an object ... it is event function ..., It belong to the class form (ex. frmRegistration ).. in asp each and every web form referred as a class.....
What is Appdomain ?
Isolated environment where application executes, single CLR operating system process can contain multiple application domains. There are advantages to having application domains within a single process.
  • Lower system cost - many application domains can be contained within a single system process.
  • Each application domain can have different security access levels assigned to them, all within a single process.
  • Code in one AppDomain cannot directly access code in another AppDomain.
  • The application in an AppDomain can be stopped without affecting the state of another AppDomain running in the same process.
  • An Exception in on AppDomain will not affect other AppDomains or crash the entire process that hosts the AppDomains
  • Explain about Generics?
    Generics are the new feature in the c# 2.0. They introduce the concept of Type parameter. This makes it possible to classes and methods that differs the specification of one or more types until the class or method is declared and used by the code, which will be using it. We can declare a generic class like this
    public class GenericClass
    { void Add(T input) { }
    }
    We create an instance of the generic class like this
    GenericClass list2 = new GenericClass();
    How generic is different from the ArrayList class?
    The System.Collection.ArrayList can be used with any objectn, but no type checking is done when objects are passed to methods. You have to manually cast objects back to our type when retrieving; which makes the code harder.
    Can a Structure inherit a Class ? or Class inherit a Structure ?
    Structure inherit a Class? NO, Class can inherit only from either class or from interface.
    Class inherit a Structure ? NO
    Struct is sealed type, so class cannot inherit from Struct, so no protected variable alloed inside struct
    for example :
    public struct BaseSchool
    {
    protected string OriginalLocation { get; set; } // this line will not compile.
    private string Newlocation { get; set; }
    public int SchoolId { get; set; }
    }
    Leave your comment.

    Reduce your Dialy IT Cost, Consult with us
    Stay healthy in recession

    Advertisement
    Sponsored by

    HR Recruitment & Process Management System
    Jewellery production process management software
    Share
    ©2009 ETG Consultancy, All Rights Reserved Privacy Policy | Terms & Conditions
    Asp.net, Ado.net, .Net Remoting, .Net Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML