SlideShare a Scribd company logo
1 of 4
Download to read offline
Difference between ASP.NET 3.5 and ASP.NET 4.0

     S.No   ASP.NET 3.5                  ASP.NET 4.0

     1      Whether Client data can      Whether Client data can be directly
            be directly accessed ?       accessed ?
            In ASP.NET 3.5, the data     In ASP.NET 4, the data from the client side can
            from the client side         be directly accessed using client data view and
            cannot be directly           client data context objects.
            accessed. The client side
            data can only be             Following methods are available in ASP.NET
            accessed using script        4.0 to access Client data directly,
            manager’s Page               1) Client data controls
            methods,                     2) Client templates
            interface named              3) Client data context
            ICallbackEventHandler
            or by using the
            component
            XMLHttpHandler.

     2      Whether we can set           Whether we can set MetaTags
            MetaTags                     (Keywords,Description) in the Page
            (Keywords,Description)       Directive?
            in the Page Directive?       The meta keywords and meta
            In ASP.NET 3.5, two meta     description is really useful for SEO
            tags can be used, one        optimization of the web page. In
            with name as keywords        ASP.NET 4, the keywords and
            and other with name as       description can be included as part of page
            description to record the    directive itself.
            keywords and description
            for SEO purpose.             Please look at MetaTags for ASP.NET 4.0

            Please look at MetaTags
            for ASP.NET 3.5

     3      Whether ViewState can        Whether ViewState can be applied at the
            be applied at the            Control level ?
            Control level ?              In ASP.NET 4, ViewState mechanism is
            ASP.NET 3.5                  improved to set ViewState at the Contol level
            EnableViewState property     besides at the page level set by
            cannot be used to apply      EnableViewState property in ASP.NET 3.5 .Its
            ViewState at the Control     default value is Inherit and acceptable values
            level.It is mainly used at   are Enabled,Disabled and Inherit.
            the page level.Its default
            value is True and its
            acceptable values ae
            True and False.

     4      How ASP.NET 3.5              How ASP.NET 4.0 identifies ClientID ?
            identifies ClientID ?        In ASP.NET 4, a property called
            In ASP.NET 3.5, ClientId     ClientIDMode is newly introduced to identify
            property has to be used      and record the ClientId easily.
to find the dynamically
    generated client id.        ClientIDMode has following values.
                                AutoID – Same as ASP.NET 3.5
                                Static – There won’t be any separate clientid
                                generated at run time
                                Predictable-These are used particularly in
                                datacontrols. Format is like clientIDrowsuffix
                                with the clientid vlaue
                                Inherit- This value specifies that a control’s ID
                                generation is the same as its parent.



                                The default value of ClientIDMode for a page is
                                Predictable. The default value of ClientIDMode
                                for a control is Inherit. Because the default for
                                controls is Inherit, the default generation mode
                                is Predictable.

5   Whether permanent           Whether permanent redirection is possible
    redirection is possible     or not ?
    or not ?                    ASP.Net 4.0 introduced a new URL redirection
    There is no                 method RedirectPermanent() which avoids
    RedirectPermanent()         round trips.
    method available in
    ASP.NET 3.5.                We can implement this as shown below:
    Redirect method is less
    useful than the             RedirectPermanent("/newpath/newpage.aspx");
    RedirectPermanent
    method. It will cause       RedirectPermanent returns a 301 HTTP
    search engine results to    response—it redirects permanently to another
    be less current, and this   location. Search engines such as Google and
    can also impact             Bing will change their indexes to point to the
    performance because         new page directly. To call RedirectPermanent
    visitors will not be        you will need to get the Response object from
    accessing the best URL.     the HttpContext.
    Redirect may be most        Then, you can call RedirectPermanent: if you
    useful for login pages or   pass false as the second parameter, you can
    more complex situations.    perform further actions and avoid an exception.


6   Output Caching              Output Caching Enhancement:
    Enhancement:                ASP.NET 4 adds an extensibility point to output
    OutPut Cache in ASP.Net     caching that enables you to configure one or
    3.5 has a limitation -      more custom output-cache providers. Output-
    generated content always    cache providers can use any storage
    has to be stored in         mechanism to persist HTML content. This
    memory, and on servers      makes it possible to create custom output-
    that are experiencing       cache providers for diverse persistence
    heavy traffic, the memory   mechanisms, which can include local or remote
    consumed by output          disks, cloud storage, and distributed cache
    caching can compete with    engines.
memory demands from
             other portions of a Web       In order to know how to implement Custom
             application.                  Output Caching, please refer to the following
                                           URL,

                                           http://www.technologymaterial.com/QAndADeta
                                           ils.aspx?qid=3&type=aspnet4

      7      QueryExtender Control         QueryExtender Control for filtering the data
             for filtering the data        returned by EntityDataSource and
             returned by                   LinqDataSource controls:
             EntityDataSource and          QueryExtender Control is an add-on to the
             LinqDataSource                DataSource Controls: EntityDataSource and
             controls:                     LinqDataSource. QueryExtender is used to
             There is no                   filter the data returned by these controls. As the
             QueryExtender control         QueryExtender control relies on LINQ, the filter
             available in ASP.NET 3.5      is applied on the database server before the
             to filter the data returned   data is sent to the page, which results in very
             by DataSource                 efficient operations.
             Controls( EntityDataSourc
             e and LinqDataSource).It      i.e., QueryExtender Control is intended to be
             has to explicitly use         used to create filters for data that is retrieved
             'Where clause' in the data    from a data source, without using an explicit
             source.                       Where clause in the data source. The control
                                           can be used to filter data in the markup of a
                                           Web page by using declarative syntax.

                                           Please look at QueryExtender Control in
                                           ASP.NET 4.0

MetaTags for ASP.NET 3.5:
 <meta name="keywords" content="These, are, my, keywords" />
 <meta name="description" content="This is the description of my page" />

MetaTags for ASP.NET 4.0:

 < %@ Page Language="C#" CodeFile="Default.aspx.cs"
 Inherits="_Default"
 Keywords="Keyword1,Key2,Key3,etc"
 Description="description" %>

QueryExtender Control in ASP.NET 4.0:

<asp:LinqDataSource ID="dataSource" runat="server"> TableName="Products">

</asp:LinqDataSource> <asp:QueryExtender TargetControlID="dataSource"
runat="server"> <asp:SearchExpression DataFields="ProductName,
Supplier.CompanyName" SearchType="StartsWith"> <asp:ControlParameter
ControlID="TextBoxSearch" /> </asp:SearchExpression> </asp:QueryExtender>
References:

http://www.rapidprogramming.com/questions-answers/What-is-the-difference-between-
ASP-NET-4-and-ASP-NET-3-5--720

http://rahulgbhatia.wordpress.com/2011/11/04/main-differences-between-asp-net-3-5-and-
asp-net-4-0/

http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-enableviewstate-and.html

http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientid.aspx

http://www.technologymaterial.com/QAndA2.aspx?type=aspnet4

http://www.dotnetperls.com/redirect

http://www.codeproject.com/Articles/79742/How-to-Using-the-ASP-NET-4-QueryExtender-
Control

http://www.technologymaterial.com/QAndADetails.aspx?qid=8&type=aspnet4

And, further updates on difference between questions and answers, please visit my
blog @ http://onlydifferencefaqs.blogspot.in/

More Related Content

More from Umar Ali

Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1 Umar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sitesUmar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamilUmar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamilUmar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trendsUmar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1 Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1 Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search enginesUmar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences ListUmar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlightUmar Ali
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#Umar Ali
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templatesUmar Ali
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerableUmar Ali
 
Differences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsDifferences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsUmar Ali
 
Ruby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcRuby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcUmar Ali
 

More from Umar Ali (20)

Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerable
 
Differences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsDifferences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methods
 
Ruby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcRuby on rails vs asp.net mvc
Ruby on rails vs asp.net mvc
 

Recently uploaded

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 

Recently uploaded (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 

Difference between ASP.NET 3.5 and ASP.NET 4.0

  • 1. Difference between ASP.NET 3.5 and ASP.NET 4.0 S.No ASP.NET 3.5 ASP.NET 4.0 1 Whether Client data can Whether Client data can be directly be directly accessed ? accessed ? In ASP.NET 3.5, the data In ASP.NET 4, the data from the client side can from the client side be directly accessed using client data view and cannot be directly client data context objects. accessed. The client side data can only be Following methods are available in ASP.NET accessed using script 4.0 to access Client data directly, manager’s Page 1) Client data controls methods, 2) Client templates interface named 3) Client data context ICallbackEventHandler or by using the component XMLHttpHandler. 2 Whether we can set Whether we can set MetaTags MetaTags (Keywords,Description) in the Page (Keywords,Description) Directive? in the Page Directive? The meta keywords and meta In ASP.NET 3.5, two meta description is really useful for SEO tags can be used, one optimization of the web page. In with name as keywords ASP.NET 4, the keywords and and other with name as description can be included as part of page description to record the directive itself. keywords and description for SEO purpose. Please look at MetaTags for ASP.NET 4.0 Please look at MetaTags for ASP.NET 3.5 3 Whether ViewState can Whether ViewState can be applied at the be applied at the Control level ? Control level ? In ASP.NET 4, ViewState mechanism is ASP.NET 3.5 improved to set ViewState at the Contol level EnableViewState property besides at the page level set by cannot be used to apply EnableViewState property in ASP.NET 3.5 .Its ViewState at the Control default value is Inherit and acceptable values level.It is mainly used at are Enabled,Disabled and Inherit. the page level.Its default value is True and its acceptable values ae True and False. 4 How ASP.NET 3.5 How ASP.NET 4.0 identifies ClientID ? identifies ClientID ? In ASP.NET 4, a property called In ASP.NET 3.5, ClientId ClientIDMode is newly introduced to identify property has to be used and record the ClientId easily.
  • 2. to find the dynamically generated client id. ClientIDMode has following values. AutoID – Same as ASP.NET 3.5 Static – There won’t be any separate clientid generated at run time Predictable-These are used particularly in datacontrols. Format is like clientIDrowsuffix with the clientid vlaue Inherit- This value specifies that a control’s ID generation is the same as its parent. The default value of ClientIDMode for a page is Predictable. The default value of ClientIDMode for a control is Inherit. Because the default for controls is Inherit, the default generation mode is Predictable. 5 Whether permanent Whether permanent redirection is possible redirection is possible or not ? or not ? ASP.Net 4.0 introduced a new URL redirection There is no method RedirectPermanent() which avoids RedirectPermanent() round trips. method available in ASP.NET 3.5. We can implement this as shown below: Redirect method is less useful than the RedirectPermanent("/newpath/newpage.aspx"); RedirectPermanent method. It will cause RedirectPermanent returns a 301 HTTP search engine results to response—it redirects permanently to another be less current, and this location. Search engines such as Google and can also impact Bing will change their indexes to point to the performance because new page directly. To call RedirectPermanent visitors will not be you will need to get the Response object from accessing the best URL. the HttpContext. Redirect may be most Then, you can call RedirectPermanent: if you useful for login pages or pass false as the second parameter, you can more complex situations. perform further actions and avoid an exception. 6 Output Caching Output Caching Enhancement: Enhancement: ASP.NET 4 adds an extensibility point to output OutPut Cache in ASP.Net caching that enables you to configure one or 3.5 has a limitation - more custom output-cache providers. Output- generated content always cache providers can use any storage has to be stored in mechanism to persist HTML content. This memory, and on servers makes it possible to create custom output- that are experiencing cache providers for diverse persistence heavy traffic, the memory mechanisms, which can include local or remote consumed by output disks, cloud storage, and distributed cache caching can compete with engines.
  • 3. memory demands from other portions of a Web In order to know how to implement Custom application. Output Caching, please refer to the following URL, http://www.technologymaterial.com/QAndADeta ils.aspx?qid=3&type=aspnet4 7 QueryExtender Control QueryExtender Control for filtering the data for filtering the data returned by EntityDataSource and returned by LinqDataSource controls: EntityDataSource and QueryExtender Control is an add-on to the LinqDataSource DataSource Controls: EntityDataSource and controls: LinqDataSource. QueryExtender is used to There is no filter the data returned by these controls. As the QueryExtender control QueryExtender control relies on LINQ, the filter available in ASP.NET 3.5 is applied on the database server before the to filter the data returned data is sent to the page, which results in very by DataSource efficient operations. Controls( EntityDataSourc e and LinqDataSource).It i.e., QueryExtender Control is intended to be has to explicitly use used to create filters for data that is retrieved 'Where clause' in the data from a data source, without using an explicit source. Where clause in the data source. The control can be used to filter data in the markup of a Web page by using declarative syntax. Please look at QueryExtender Control in ASP.NET 4.0 MetaTags for ASP.NET 3.5: <meta name="keywords" content="These, are, my, keywords" /> <meta name="description" content="This is the description of my page" /> MetaTags for ASP.NET 4.0: < %@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="_Default" Keywords="Keyword1,Key2,Key3,etc" Description="description" %> QueryExtender Control in ASP.NET 4.0: <asp:LinqDataSource ID="dataSource" runat="server"> TableName="Products"> </asp:LinqDataSource> <asp:QueryExtender TargetControlID="dataSource" runat="server"> <asp:SearchExpression DataFields="ProductName, Supplier.CompanyName" SearchType="StartsWith"> <asp:ControlParameter ControlID="TextBoxSearch" /> </asp:SearchExpression> </asp:QueryExtender>