Skip to main content

ASP.NET 3.5 VS 4.0

As we all know, ASP.NET 3.5 has introduced with the following main new features

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. 

Comments

Popular posts from this blog

Text Ideas in Design - Turn Typography into exciting designs!

Text Ideas in Design  - Turn Typography into exciting designs! TEXT THAT CREATES BACKGROUNDS   Tiling, gradients,  bokeh  and text design interlink to form an interesting background. Bokeh is the photographic blur effect to get a soft, out-of-focus look. Extremely effective and relevant use of handwritten text to form a background and an image. The ad for Australia Post says “If you really want to touch someone, send them a letter.”  The visual shows this literally – a letter hugging a girl. EXTRA-LARGE HEADLINES Looks like designers are having themselves a field day with big, bold headlines.  The kind that stop you in your tracks and make you read. This site has the outsized headline in lower case and the content in all caps in a smart yet simple design that optimizes the use of color and type. Courtesy:  LemonDesign    Here every word begins with the letter ‘A’ which takes center-stage in no uncertain terms.  ...

Web Design Ideas

ooking for something to add a little punch to your website design and make it stand apart?  We bring you some ideas to trigger your creative thoughts and entice the user into your site. Use single page design - keep it simple Create unusual icons  – let your imagination come into play Use attractive navigation  – try out something different Draw on circular elements  to attract the viewer - soften hard lines and angles Use good-looking textures Use CSS3 to create animations, transforms and transitions  –  a great alternative to Flash Try out unusual designs for forms Single Page Design Click here for some great ideas on single page designs! Just Dot This scrolling single-page website uses a simple concept – ideas coming to life on a blackboard, with all the changes, scribbles and erasing that refine the process of ideation. The white and red chalk sketches and typography highlight the site’s promise of “Brilliant ideas come to life”. The J...

Dynamic Grid Output Script Using PHP + MySQL Array Data

<?php // Include database connection include_once  'connect_to_mysql.php' ; // SQL query to interact with info from our database $sql  =  mysql_query ( "SELECT id, member_name FROM member_table ORDER BY id DESC LIMIT 15" );  $i  =  0 ; // Establish the output variable $dyn_table  =  '<table border="1" cellpadding="10">' ; while( $row  =  mysql_fetch_array ( $sql )){          $id  =  $row [ "id" ];      $member_name  =  $row [ "member_name" ];         if ( $i  %  3  ==  0 ) {  // if $i is divisible by our target number (in this case "3")          $dyn...