Free Jobs
Reference




ASP.NET 4.0 Interview Questions Answers

For more advanced and tough ASP.NET 4.0 Interview Questions Click Here



Q1. What is Web.config File Refactoring in ASP.NET 4.0
This means most of the elements of web.config has been moved to machine.config. So we get more cleaner and easy to maintain web.config.
The newly created web.config is almost empty with only .net target Framework information in System.web tag AS below:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation targetFramework="4.0" />
</system.web>
</configuration>

Q2. What is Extensible Output Caching improvement in ASP.NET 4.0
Before .NET 4.0 Output Caching or Page lavel caching could be done by storing the page
Data in memeory only.Now with ASP.NET 4.0 Output Caching Extendability, we can store the cached
data optionally to other persistent storage such as database or cloud storage etc.

Q3. What is Auto-Start Web Applications in ASP.NET 4.0
To keep the ASP.NET application always in start like mode
we have options in ASP.NET 4.O to do setting in applicationHost.config of IIS.
The path of the file is C:\Windows\System32\inetsrv\config\applicationHost.config
In this file in the "StartMode" Tag set the value as "AlwaysRunning" to activate Auto-Start.

Q4. What is Response.RedirectPermanent(string url) method in ASP.NET 4.0
Many Web applications sometimes move the pages to different servers. Thus old non working
links exists in Search engines.This is handled by the site owner by using Response.Redirect method to forward the request to
the new URL.Response.Redirect method results in extra round trip when user accessing the old URLs.
In ASP.NET 4.0 there is a new Response.RedirectPermanent(string url) method for Moved permanently requests handling.
This will help eliminating the unnecessary round trip to server and help in SEO for those urls.


Q5. What is Shrinking Session State in ASP.NET 4.0
In ASP.NET 4.0 we can compress session state data, for Session-state server
and Microsoft SQL server session mode, before serializing the session data so that network load to
transfer session data can be reduced.This can be done by setting the compressionEnable to true in
the web.config file as below:

<sessionState
mode="SqlServer"
sqlConnectionString="data source=Test;Initial Catalog=Test"
allowCustomSqlDatabase="true" compressionEnabled="true" />

Q6. What is URL Routing support in ASP.NET 4.0
In ASP.NET 4.0 Routing URL Routing support allows us to configure application to
accept a requested URL which actually doesn't map to physical files.
There are Three main components of ASP.NET 4.0 URL Routing.
RoutingHandler ,RouteTable and Expression Builders RoutingHandler is a normal HTTPHandler,
which is responsible for looking into all the incoming URL requests.
Expression Builders are provided with ASP.NET 4.0 to facilitate Routing.
By using URL Routing we can create URL renaming to meaning ful URL so that it will help in SEO.
Like the following URL http://www.abc.com/products.aspx?Id=2 can be replaced by
http://www.abc.com/products/laptop

Q7. What is New ASP.NET Chart Control in ASP.NET 4.0
There is a new ASP.NET chart control in Framework 4.0.
This control makes it easy to create visually appealing statistical
or financial analysis tools in a browser.

Q8. What is New New Field Templates for URLs and E-mail Addresses in ASP.NET 4.0
ASP.NET 4.o introduces new built-in field templates, EmailAddress.ascx
and Url.ascx.Both the templates will be used for fields that
are marked for EmailAddress or Url using the DataTypeAttribute
attribute thus making the coding easier.


Q9. What is BackGround Garbage collection in ASP NET 4
BackGround Garbage collection is the new offering on .NET 4.0
This kind of garbage colletion is performed autometically on a dedicated thread .

Q10. What is DLR or Dynamic Language Runtime in ASP NET 4
DLR or Dynamic Language Runtime in ASP NET 4 is a new feature that adds services for
dynamic languages to the common language runtime (CLR).
The DLR also add dynamic features to statically typed languages.
Examples of statically typed languages are C# and Visual Basic
Examples of dynamic languages are Lisp, Smalltalk, JavaScript, PHP etc.



For more advanced and tough .NET 4.0 Interview Questions Click Here












www.freejobsreference.com Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)