Advertisements
Home > ASP.NET > Main Differences between ASP.NET 3.5 and ASP.NET 4.0.

Main Differences between ASP.NET 3.5 and ASP.NET 4.0.


ASP.NET 3.5 is having the following main features which are not availablle in the prior releases

1) AJAX integration
2) LINQ
3) Automatic Properties
4) Lambda expressions

I hope it would be useful for everyone to know about the differences about asp.net 3.5 and its next version asp.net 4.0

Because of space consumption I’ll list only some of them here.

1) Client Data access:

ASP.NET 3.5: There is no direct method to access data from client side. We can go for any of these methods

1) Pagemethods of script manager
2) ICallbackEventHandler interface
3) XMLHttphanlder component

ASP.NET 4.0: In this framework there is an inbuilt feature for this. Following are the methods to implement them.

1) Client data controls
2) Client templates
3) Client data context

i.e we can access the data through client data view & data context objects from client side.

2) Setting Meta keyword and Meta description:

Meta keywords and description are really useful for getting listed in search engine.

ASP.NET 3.5: It has a feature to add meta as following tag

 <meta name="keywords" content="These, are, my, keywords" /> 
 <meta name="description" content="This is the description of my page" /> 

ASP.NET 4.0: Here we can add the keywords and description in Page directives itself as shown below.

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

3) Enableviewstage property for each control

ASP.NET 3.5: this property has two values “True” or “false”

ASP.NET 4.0: ViewStateMode property takes an enumeration that has three values: Enabled, Disabled, and Inherit.
Here inherit is the default value for child controls of a control.

4) Setting Client IDs

Some times ClientID property creates head ach for the programmers.

ASP.NET 3.5: We have to use ClientID property to find out the id which is dynamically generated

ASP.NET 4.0: The new ClientIDMode property is introduced to minimize the issues of earlier versions of ASP.NET.

It 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.

Advertisements
Categories: ASP.NET
  1. May 31, 2013 at 9:41 am

    You could definitely see your expertise in the work you write.

    The world hopes for more passionate writers like you
    who are not afraid to say how they believe. All the time go after your heart.

  2. June 4, 2013 at 5:22 am

    Thanks !

  3. July 22, 2013 at 5:00 pm

    Thanks for sharing your info. I truly appreciate your efforts and I am waiting for your next post thanks once again.

  4. Prem Luhana
    January 2, 2014 at 8:07 pm

    thanks for sharing .

  5. March 17, 2014 at 11:29 am

    booƙmarked!!, I love your blog!

  6. June 10, 2014 at 10:52 pm

    I’m impressed, I must say. Rarely do I come across a blog that’s both equally educative
    and entertaining, and without a doubt, you’ve hit
    the nail on the head. The problem is something which too few men and
    women are speaking intelligently about. I’m very happy that I found this during my search for something
    regarding this.

  1. February 22, 2013 at 12:35 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: