NEW FEATURES IN .Net 4.0
Q.1 : Application continue running even if IIS
is reset in asp.net 4.0
Yes,It is Possible if Application Built on in 4.0 Framework onwards.
Pre requisite is : IIS 7.5 And Windows Server 2008 R2.
Advantages: Web application Keeps running when IISRESET is run, for this you need to set the IIS Application Pool as Always Running in the applicationHost.config file . When the new IIS worker process is up the new changes starts reflecting.
c:\Windows\system32\inetsrv\config\applicationHost.config
c:\Windows\system32\inetsrv\config\applicationHost.config
Syntax:
Step:1
<application pool>
<add name = "Applicationpoolname" startmode="AlwaysRunning"/>
Step 2:
Next yo can specify Which application need to be prestarted, when IIS is setup.
Syntax:
<Sites>
<site name="mysite" id="1">
<application path='/"ServiceAutoStartEnabled="True" ServiceAutoStartProvider="prewarmcache"/>
</site>
</sites>
Q.2 :Metatags be send through Page.Meta Keyword and Page.MetaDescription of page Properitise.
Q.3 : Response.redirectpermanent() Vs Response.redirecttoRout()
Response.redirect() : Search engine will take this redirection as temporary (Status 302) and always keep the old page in its cache.
Response.redirectpermanent(): Asp.net engine will take the permanent redirection (status 302) and will remove the old page from its cache/Database and include a new page for better performanace on search.
Server.transfer(): Search Engine will be unaware of any direction that took place (status 200) and keep the old page in its cache.
Q.4 : What is Session Shrinking ?
Session Shrinking is concept of compressing the session object so that it reduce the webserver burden and improves the webserver performance.
Syntax: <sessionstate mode="sqlserver" CompressionEnabled="true">
Q.5 : Range of Allowable URL.
The Maximum url path length was 260 character in ASP.NET 3.5 ,But in asp.net 4.0 You can increase by httpruntime configuration attribute
Syntax:
<HttpRuntime>
Q.6: Dynamic Language Runtime (DLR)
DLR is a new features is introduced in Net 4.0 to implemented dynamic language such as python & Ruby on .Net Framework.
Q.7 : A new System.Dynamic Namespace has been Added.
System.Dynamic Namespace has been added in this version to support DLR Functionality.
Q.8 : Dynamic Keyword.
Q.9 : QueryExtender Control.
Which Provides filtering support for data scource control.
Q.10 : Improves Application Development & Development Support.
Q.11 : n-Process Side by Side Execution.
Q.12 : Managed Extensibility Framework (MEF).
a) Managed Extensibility Framework is a new library includes in .net 4.0 to create light weight and extensible applications.
b) The developer can use extensions without any configuration by the new MEF features.
c) MEF helps in reusing the extension more than one application.
d) System.componentModel.composition namespace is include in .net 4.0 which provides class that constitute the core of MEF.
Q.13 : Asp.Net Chart Controls.
In net 4.0 Approx. Inbuilt 40 types chart controls.
Q.14 : Zip operator in LINQ.
Zip is a new operator introduced in .net 4.0 that supports or merging two table into one table.
Q.15 : Auto Start Webpage.
Q.16 : Parallel Computing.
Q.17 : New Type of Breakpoint.
Q.18 : Benefit of Extensible output caching in 4.0
Q.19 : Asp.Net URL Routing ?
Asp.net 4.0 Allow Setting some Metatags through the page directives.
Syntax:
<%@ Pagelanguage="c#" Autoeventwiredup="true" codefile="dd.aspx" Metakeywords="net Questions " meta Description="Some Description"%>
Syntax:
<%@ Pagelanguage="c#" Autoeventwiredup="true" codefile="dd.aspx" Metakeywords="net Questions " meta Description="Some Description"%>
Q.3 : Response.redirectpermanent() Vs Response.redirecttoRout()
Response.redirect() : Search engine will take this redirection as temporary (Status 302) and always keep the old page in its cache.
Response.redirectpermanent(): Asp.net engine will take the permanent redirection (status 302) and will remove the old page from its cache/Database and include a new page for better performanace on search.
Server.transfer(): Search Engine will be unaware of any direction that took place (status 200) and keep the old page in its cache.
Q.4 : What is Session Shrinking ?
Session Shrinking is concept of compressing the session object so that it reduce the webserver burden and improves the webserver performance.
Syntax: <sessionstate mode="sqlserver" CompressionEnabled="true">
Q.5 : Range of Allowable URL.
The Maximum url path length was 260 character in ASP.NET 3.5 ,But in asp.net 4.0 You can increase by httpruntime configuration attribute
Syntax:
<HttpRuntime>
Q.6: Dynamic Language Runtime (DLR)
DLR is a new features is introduced in Net 4.0 to implemented dynamic language such as python & Ruby on .Net Framework.
Q.7 : A new System.Dynamic Namespace has been Added.
System.Dynamic Namespace has been added in this version to support DLR Functionality.
Q.8 : Dynamic Keyword.
Dynamic Keyword is introduced in c# 4.0 to indicate that all dynamic operations will be performed runtime.
Q.9 : QueryExtender Control.
Which Provides filtering support for data scource control.
Q.10 : Improves Application Development & Development Support.
Q.11 : n-Process Side by Side Execution.
Helps in Loading and starting multiple version .net framework (Multiple version of CLR)
Q.12 : Managed Extensibility Framework (MEF).
a) Managed Extensibility Framework is a new library includes in .net 4.0 to create light weight and extensible applications.
b) The developer can use extensions without any configuration by the new MEF features.
c) MEF helps in reusing the extension more than one application.
d) System.componentModel.composition namespace is include in .net 4.0 which provides class that constitute the core of MEF.
Q.13 : Asp.Net Chart Controls.
In net 4.0 Approx. Inbuilt 40 types chart controls.
Q.14 : Zip operator in LINQ.
Zip is a new operator introduced in .net 4.0 that supports or merging two table into one table.
Q.15 : Auto Start Webpage.
Q.16 : Parallel Computing.
Q.17 : New Type of Breakpoint.
Q.18 : Benefit of Extensible output caching in 4.0
Q.19 : Asp.Net URL Routing ?
good yaar.............................
ReplyDelete