Article
    C#
    ADO.Net
    .NET
    ASP.Net & Web Forms
    Custom Controls
    Web Development
    Exception Handling
    XML
    Database
    Security in .Net
    Testing
    Web Services
    Windows Services
    Windows Controls
    WCF
    AJAX
    WPF
    XAML
    Reporting
    Setup
    VB.Net
    LINQ
    JQuery
    SilverLight
    JavaScript
    HTML5
    Crystal Report
    Cloud Computing
    Share Point
    Visual C++
    MVC
    Android
    PHP
    Java
    HTML
    WordPress
    Joomla
    Products
    Drupal
    Windows Phone
    JSON
    LightSwitch
    iPhone/iPad
    Ruby on Rails
    IIS 7
    Windows 8
    CSS/CSS3
    Excel
    MS Access
    Shortcut Keys
    Visual SourceSafe
    Team Foundation Server
    API(s)
    Sencha-Touch
    Single Page App
    Bootstrap
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Top Contributor
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog

Home >> ASP.Net & Web Forms >> .Net 4.0
.Net 4.0
.Net 4.0


by Amit Singh on 11/27/2010 8:57:31 PM

Views: 5432       Comments: 8

.Net 4.0

.Net 4.0 is latest technology and it provide Extra features then previous version. There are added new features in this section of .net as given

o   Application Compatibility and Development

o   Managed Extensibility Framework

o   Networking

o   Web

o   Client

o   Data

o   Windows communication foundation

o   Windows workflow foundation etc.

Main Features in .Net

o   Routing concept in .Net

o   Page.MetaKeyword and Page.Description Properties

o   More data services in WCF

o   Output Caching Extensibility

o   Session State Compression

o   Improvements on Microsoft Ajax Library

o   Adding new Syntax for Html Encode

o   Response.RedirectPermanent method

o   Increase URL character length

o   Auto start ASP.Net application

o   Web Config file refactoring

o   Predictable ClientId

Routing concept in .Net

The routing engine can decouple the URL in an incoming HTTP request from the physical Web Form that responds to the request, allowing you to build friendly URLs for your Web applications. In ASP.Net 4.0, adding some more class like MapPageRoute in Route class.

How use the routing check this link

http://www.mindstick.com/Articles/9992a0bc-90f5-4f04-823a-31f901b61643/

Page.MetaKeyword and Page.Description Properties

ASP.NET 4.0 is the addition of two properties to the Page class, MetaKeywords and MetaDescription. These two properties represent corresponding Meta tags in your page.

ASP.NET 4.0, there are two new properties in the code behind file;

Page.MetaDescription – equivalent to Meta name “description”

Page.MetaKeywords – equivalent to Meta name “keywords”

More data services in WCF

ADO.NET Data Service has been renamed to WCF Data Services, and has the following new features

o   Data binding.

o   Counting entities in an entity set.

o   Server-driven paging.

o   Query projections.

o   Custom data service providers.

o   Streaming of binary resources.

Output Caching Extensibility

To create a custom output-cache provider, a class which derived from System.Web.Caching.OutputCacheProvider has to be created in ASP.NET 4.0. There are four public methods which you have to override in order to provide your own implementation for add, remove, retrieve and update functionality.

Check this blog:

http://www.mindstick.com/Blog/43/Caching%20in%20asp.net

Session State Compression

The ASP.NET session state is a mechanism to maintain session-specific data through subsequent requests.

Compression can be enabled by setting the compressionEnable to true in the web.config file. In this example, the session-state data will be serialized / desterilized using System.IO.Compression.GZipStream.

 

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

Improvements on Microsoft Ajax Library

There are some significant improvements in the Ajax Library in the ASP.NET 4.0 as

o   Scrip Loader – the new script loader control enable developers to load all the required scripts only once.

o   JQuery IntegrationJQuery is very popular third party javascript library.

o   Client Datasource- it Support all consuming data (dataview in WCF apllication) work asynchronously in Ajax.

Adding new Syntax for Html Encode

Html Encode method encodes a particular string to be displayed in a browser. It helps in many cases. In previous version we use Server.HtmlEncode(String)  as

<p><%=Server.HtmlEncode(strData); %> or

<%=HttpUtility.UrlEncode(strData); %></p>

But in Asp.net 4.0 we use as  <%: strData %>, it is similar to above

Response.RedirectPermanent method

 This new method similar to Response.Redirect() but contain some more benefits. Syntax of this method as Response.RedirectPermanent (String Url);

Increase URL character length

In previous version, URL contains maximum length of 260 characters in length, but in latest version we set the maximum length of URL by this property: maxQueryStringLength and maxRequestPathLength.

For example:

<httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" />

Auto start ASP.Net application

In ASP.NET 4.0, we add the Startmode=”always running” properties in application pool in config file.

Web Config file refactoring

In asp.net 4.0, main element is saved into machine config. And web config are work as secure manner because it contains less data or empty.

Predictable ClientId

ASP.NET 4 now supports a new ClientIDMode property for server control. This property indicates how the Client ID should be generated to a particular control when they render. Client ID has been an important property of the server controls.

New ClientIDRowSuffix property on databound controls also gives a similar functionality when rendering an each data item. Once you set the relevant databound property to ClientIDRowSuffix, the value will be added as a suffix to individual row elements. We write as ClientIDRowSuffix=”State” in control.

 

This is the important feature which is add in .net 4.0. There are many other beneficial features add in ASP.Net we can see on Microsoft site.

Report Abuse Form
Reason:    
 


.Net framework 4.0
by James 5/20/2011 4:26:11 AM
Its really useful to understand feature of .Net framework 4.0
Thanks.
Report Abuse

.Net 4.0
by Awadhendra Tiwari 5/20/2011 4:29:47 AM

Really its helpful.

Thanks,

Report Abuse

What is URL Redirection
by anil babu 7/30/2012 11:48:59 PM

Give me one simple example in this concept

Response.RedirectPermanent method

Report Abuse

Re: What is URL Redirection
by Arun Singh 8/1/2012 9:09:33 AM
Hi Anil,
Please check out the following link it might be useful for you.
http://www.mindstick.com/Blog/330/ASP%20Net%204%20SEO%20Improvements
Report Abuse

URL Redirection
by anil babu 8/1/2012 5:45:02 PM
What is URL REDIRECTION?How can i use this concept in my .net?
my task is i have generated one url like this "http://example.com/"
I am passing one pearameter like "http://example.com/Empno=1"
I want to display Ename(Editmode) from Database table that corresponding "Empno"
plz Help me Give me one simple example

I am new this concepts
plz Help me send source code to my mailID:mandla.anilbabu@gmail.com
Report Abuse

Thanks you
by anil babu 8/1/2012 6:10:24 PM
Help me 
Report Abuse

Anil, welcome to MindStick Developer Section
by Haider M Rizvi 8/3/2012 1:42:27 AM

Hi Anil,

As you have questions in your mind and you want to get solved in very less amount of time so you can prefer our Forums as this is not the right place to ask questions.

Here is the link of our forum:

http://www.mindstick.com/mindForum/Topic.aspx

Thanks.

Report Abuse

Thank you so much
by anil babu 8/7/2012 1:13:07 AM
Thank you so much,
Hi,

I am asking one question 

My task is I have  one url like this "http://example.com"

I am passing one parameter alog with url like "http://example.com/Tagid=12345"

I want to display SiteName(ColumnName)in database table value(EX:www.asp.net) correspondind Tagid number

I want to Final Result is

IActual URL is:"http://example.com/Tagid=12345"
I want to open "www.asp.net" this url website corresponding tagId(column)value

I want to display::"http://example.com/?Tagid=12345\www.asp.net"

"www.asp.net" This value comming from DATABASE TABLE

Table Information

Tagid            SiteName

12345            http://www.asp.net

43215            http://www.microsoft.com

54666            http://www.c#corner.com

Report Abuse
Title :
Comment :
Text ColorBackground Color
BoldItalicUnderline
LeftCenterRightJustify
Ordered ListBulleted List
IndentOutdent
Horizontal Rule
SubscriptSuperscript
HyperlinkImage
Design ModeDesign
View HtmlHtml
     
 
Latest Article by Amit SinghRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Latest BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Top Viewed ArticlesRSS Feed
    
    
    
    
    
    
    
    
    
    
Top Viewed BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
Latest Interview QuestionsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Total Online Users: 5006
Advertisement
MindStick DataConver
Advertise with Us
  
Copyright © 2014MindStick. All Rights Reserved.