Thursday, November 11, 2010

ASP.Net Interview Questions

ext>>
What is the difference between login controls and Forms authentication?
Latest answer: Forms authentication can be easily implemented using login controls without writing any code. Login control performs functions like prompting for user credentials, validating them and issuing authentication just as the FormsAuthentication class...............
Read answer
What is Fragment Caching in ASP.NET?
Latest answer: Fragment caching refers to the caching of individual user controls within a Web Form. Each user control can have independent cache durations and implementations of how the caching behavior is to be applied.............
Read answer
What is partial classess in .net?
Latest answer: Partial classes allow us to divide the class definition into multiple files (physically). Logically, all the partial classes are treated as a single file by the compiler............
Read answer
Explain how to pass a querystring from an .asp page to aspx page.
Latest answer: FromHTMLinasppage:Test Query String
From server side code: <%response.redirect "webform1.aspx?id=11"%>...............
Read answer

What is a ViewState?
Latest answer: Viewstate is used to maintain or retain values on postback. It helps in preserving a page. Viewstate is internally maintained as a hidden field in encrypted form along with a key............
Read answer
What is the difference between src and Code-Behind?
Latest answer: Src: is a way mention the name of the code-behind class to dynamically compile on the request for a page. ...............
Read answer
What is the difference between URL and URI?
Latest answer: URI - Uniform Resource Identifier: it’s a string and its responsibility is to identify a resource by meta-information. It gives information about only one resource............
Read answer
What is the Pre-Compilation feature of ASP.NET 2.0?
Latest answer: It is a process where things that can be handled before compilation are prepared in order to reduce the deployment time, response time, increase safety. It’s main aim to boost performance.............
Read answer
How can we create custom controls in ASP.NET?
Latest answer: Custom controls are user defined controls. They can be created by grouping existing controls, by deriving the control from System.Web.UI.WebControls..........
Read answer
What is an application domain?
Latest answer: An operating system process can have many ongoing application domains. Application Domains keep an application separate. All objects created within the same application scope are created within the same application domain...........
Read answer
Explain the two different types of remote object creation mode in .NET. [Hint SAO and CAO]
Latest answer: SAO Server Activated Object (call mode): lasts the lifetime of the server. They are activated as SingleCall/Singleton objects. It makes objects stateless...........
Read answer
Describe SAO architecture of Remoting.
Latest answer: Remoting has at least three sections:-
1. Server
2. Client: This connects to the hosted remoting object
3. Common Interface between client and the server .i.e. the channel..........
Read answer
Explain Singleton architecture of Remoting.
Latest answer: Singleton architecture is to be used when all the applications have to use or share same data...........
Read answer
Define LeaseTime, SponsorshipTime, RenewOnCallTime, LeaseManagePollTime.
Latest answer: The LeaseTime property protects the object so that the garbage collector does not destroy it as remoting objects are beyond the scope of the garbage collector. Every object created has a default leasetime for which it will be activated..........
Read answer
Briefly explain how to specify remoting parameters using config files.
Latest answer: The remoting parameters can be specified through both programming and in config files. All the settings defined in config files are placed under ...........
Read answer

What is marshalling? Explain types of marshalling.
Latest answer: Marshaling is a process of transforming or serializing data from one application domain and exporting it to another application domain...........
Read answer
What is ObjRef object in remoting?
Latest answer: ObjRef is a searializable object returned by Marshal() that knows about location of the remote object, host name, port number, and object name........
Read answer
Explain the steps of acquiring a proxy object in web services.
Latest answer: Every service listed has a URI pointing to the service's DISCO or WSDL document, which is needed to access the webservice and its 'webmethod" methods..........
Read answer
Explain the steps to create a web services and consume it.
Latest answer: Create a new website by selecting "ASP.NET Web Site" and giving it a suitable name. service.cs file appears inside the solution with a default webmethod named as "HelloWorld()"........
Read answer
Explain the difference between cache object and application object.
Latest answer: Application Object: Application variable/object stores an Object with a scope of availability of the entire Application unless explicitly destroyed.............
Read answer
What is Cache Callback in Cache?
Latest answer: The cache object has dependencies e.g. relationships to the file it stores. Cache items remove the object when these dependencies change. As a work around we would need to simply execute a callback method............
Read answer
What is Scavenging?
Latest answer: A process where items are removed from cache in order to free the memory based on their priority. A property called "CacheItemPriority" is used to figure out the priority of each item inside the cache...........
Read answer
Explain the types of Caching using Cache object of ASP.NET.
Latest answer: Page output: Is used to fetch information or data at page level. It is best used when the site is mainly static. Used by declaring the output page directive............
Read answer
Show with an example how to Cache different version of same page using ASP.NET Cache object.
Latest answer: The ways to cache different versions on the same page using ASP.NET cache object is using OutputCache object............
Read answer
Explain how to implement Fragment Cache.
Latest answer: Fragment cache is to store user controls individually within a web form in cache instead of the whole webform as such. The idea is to simply have different cache parameters for different user controls.............
Read answer
Explain the various modes of storing ASP.NET session.
Latest answer: Types of sessions: InProc: The default way to use sessions. InProc is the fastest way to store and access sessions...........
Read answer
What are the benefits and limitations of using hidden fields?
Latest answer: Advantages: Easy to implement, Hidden fields are supported by all browsers, Enables faster access of information because data is stored on client side............
Read answer
What are the benefits and limitations of using Hidden Frames?
Latest answer: Advantages: Hidden frames allow you to cache more than one data field, The ability to cache and access data items stored in different hidden forms...........
Read answer
What are benefits and limitations of using Cookies?
Latest answer: Advantages: They are simple to use. Light in size, thus occupy less memory. Stores server information on client side. Data need not to be sent back to server........
Read answer
What is QueryString and what are benefits and limitations of using querystring?
Latest answer: Querystring is way to transfer information from one page to another through the URL........
Read answer
What is Absolute and Sliding expiration in .NET?
Latest answer: Absolute and sliding expiration are two Time based expiration strategies. Absolute Expiration: Cache in this case expires at a fixed specified date or time..............
Read answer
Explain the concepts and capabilities of cross page posting.
Latest answer: Cross-page posting is done at the control level. It is possible to create a page that posts to different pages depending on what button the user clicks on. It is handled by done by changing the postbackurl property of the controls..........
Read answer
Explain how to access ViewState value of this page in the next page.
Latest answer: PreviousPage property is set to the page property of the nest page to access the viewstate value of the page in the next page. Page poster = this.PreviousPage;..........
Read answer
What is SQL Cache Dependency in ASP.NET?
Latest answer: SQL Cache Dependency in ASP.NET: It is the mechanism where the cache object gets invalidated when the related data or the related resource is modified.........
Read answer
Explain the concepts of Post Cache Substitution in .NET
Latest answer: Post Cache Substitution: It works opposite to fragment caching. The entire page is cached, except what is to be kept dynamic. When [OutputCache] attribute is used, the page is cached............
Read answer
Explain the use of localization and Globalization.
Latest answer: Users of different countries, use different languages and others settings like currency, and dates. Therefore, applications are needed to be configurable as per the required settings based on cultures, regions, countries........
Read answer
Explain the concepts of CODE Page approach. What are the disadvantages of this approach?
Latest answer: Code Page was used before Unicode came into existence. It was a technique to represent characters in different languages..........
Read answer
What are resource files and explain how do we generate resource files?
Latest answer: Resource files are files in XML format. They contain all the resources needed by an application. These files can be used to store string, bitmaps, icons, fonts........
Read answer
What are Satellite assemblies and how to generate Satellite assemblies?
Latest answer: To support the feature of multiple languages, we need to create different modules that are customized on the basis of localization. These assemblies created on the basis of different modules are knows as satellite assemblies...........
Read answer
Define AL.EXE and RESGEN.EXE.
Latest answer: Al.exe: It embeds the resources into a satellite assembly. It takes the resources in .resources binary format.......
Read answer
Explain the concepts of resource manager class.
Latest answer: ResourceManager class: It provides convenient access to resources that are culture-correct. The access is provided at run time.........
Read answer
What is Windows communication foundation, WCF?
Latest answer: WCF is a framework that builds applications that can inter-communicate based on service oriented architecture consuming secure and reliable web services.............
Read answer
Explain the important principle of SOA.
Latest answer: A service-oriented architecture is collection of services which communicate with one another other......
Read answer
Explain the components of WCF - Service class, Hosting environment, END point.
Latest answer: WCF Service is composed of three components: Service class: It implements the service needed, Host environment: is an environment that hosts the developed service.............
Read answer
Difference between WCF and Web Services.
Latest answer: WCF can create services similar in concept to ASMX, but has much more capabilities. WCF is much more efficient than ASP.Net coz it is implemented on pipeline............
Read answer
What are different bindings supported by WCF?
Latest answer: BasicHttpBinding, WSHttpBinding, WSDualHttpBinding.......
Read answer
What is duplex contract in WCF?
Latest answer: Duplex contract: It enables clients and servers to communicate with each other. The calls can be initiated independently of the other one.............
Read answer
Explain the different transaction isolation levels in WCF.
Latest answer: Read Uncommitted: - Also known as Dirty isolation level. It makes sure that corrupt Data cannot be read. This is the lowest isolation level............
Read answer
What are Volatile and Dead letter queues?
Latest answer: Volatile Queues: There are scenarios in the project when you want the message to deliver in proper time. The timely delivery of message is very more important and to ensure they are not lost is important too. Volatile queues are used for such purposes.............
Read answer
What is Windows workflow foundation?
Latest answer: Windows Workflow Foundation (WF): It is a platform for building, managing and executing workflow-enabled applications, for designing and implementing a programming model ..........
Read answer
Explain the types of Workflow in Windows Workflow Foundation.
Latest answer: There are 3 types of workflows in WWF: Sequential Workflow: The sequential workflow style executes a set of contained activities in order, one by one and does not provide an option to go back to any step...........
Read answer
What are XOML files? Explain their uses.
Latest answer: XOML is an acronym for Extensible Object Markup Language. XOML files are the markup files. They are used to declare the workflow and are then compiled with the file containing the implementation logic..............
Read answer
How to make an application offline in ASP.NET 2.0.
Latest answer: Microsoft's Internet Information Services web server software is used to make an application offline. The IIS is instructed to route all incoming requests for the web site to another URL automatically........
Read answer
What are script injection attacks?
Latest answer: Script injection attacks called Cross-site scripting (XSS) attacks exploit vulnerabilities in Web page validation by injecting client-side script code.............
Read answer
What is Authentication in ASP.NET?
Latest answer: Authentication is the process of verifying user’s details and find if the user is a valid user to the system or not. This process of authentication is needed to provide authority to the user........
Read answer
What is Authorization in ASP.NET?
Latest answer: Authorization is a process that takes place based on the authentication of the user. Once authenticated, based on user’s credentials, it is determined what rights des a user have...........
Read answer
What is the difference between login controls and Forms authentication?
Login controls are part of ASP. Net’s UI controls collection which allows users to enter their username and password to login to a website/application. They provide login solution without the need of writing code...........
Read answer
What is Fragment Caching in ASP.NET?
Fragment caching does not cache a WebForm, rather it allows for caching of individual user controls within a Web Form, where each control can have different cache duration and behavior...........
Read answer
What is partial classess in .net?
.Net2.0 supports the concept of partial classes which is unlike the concept of one class one file. In .Net technology, one can define a single class over multiple files using the concept of partial classes............
Read answer
Explain how to pass a querystring from an .asp page to aspx page.
Yes you can do it using ahyperlink
Click to go to aspx .............
Read answer