Saturday, May 23, 2009

What’s New In Visual Studio 2010 ASP.NET 4.0

Microsoft has released Visual Studio 2010 and ASP.NET 4.0 beta 1 recently, I felt there are some amazing features which can help developers improve productivity.

Please have look at screen shot of new feature below.

1) New Start page where you have 3 tabs, one is Welcome where we can find welcome note, feedback etc, second tab is project where you can create open projects, third one is Visual Studio tab where you have MSDN, community links

image

2) Target Multiple Versions of .NET: we can build project on different version of .NET versions and also navigation of projects selection is improved.

image

3) Code Snippets: this is one of the best feature I felt in Visual Studio 2010 ASP.NET 4.0, type control name like button and press tab you will button control tag is generated for you similarly when you type script and press tab you will see script tags are created for you.

image

image

4) FormView Improvements, normally when you use FormView Control it will be rendering HTML with Table tag now by default RenderTable = False if you want you can make it True this is still kept for compatible issues.

5) Improved intelligence, now you can filter the intelligence result by pressing Ctrl+Alt+Space

image

image

6) ViewState changes: Now ViewState of a control is by default inherit, that means you can set page level view state and under page all control can inherit its ViewState, if you want to set ViewState to one control separate then you can set for individual control.

This can be done using ViewStateMode = “Inherit” / “Disable” / “Enable”

image

7) ASP.NET provides multiple ways of generating ClientID. You set a way of ClientID in following ways.
Legacy : The ClientID value is generated by concatenating the ID values of each parent naming container with the ID value of the control. In data-binding scenarios where multiple instances of a control are rendered, an incrementing value is inserted in front of the control's ID value. Each segment is separated by an underscore character (_). This algorithm was used in versions of ASP.NET earlier than ASP.NET 4.0.
Static : The ClientID value is set to the value of the ID property. If the control is a naming container, the control is used as the top of the hierarchy of naming containers for any controls that it contains.
Predictable : This algorithm is used for controls that are in data-bound controls. The ClientID value is generated by concatenating the ClientID value of the parent naming container with the ID value of the control. If the control is a data-bound control that generates multiple rows, the value of the data field specified in the ClientIDRowSuffix property is added at the end. For the GridView control, multiple data fields can be specified. If the ClientIDRowSuffix property is blank, a sequential number is added at the end instead of a data-field value. Each segment is separated by an underscore character (_).
Inherit : The control inherits the ClientIDMode setting of its parent control.

image

These are very few of new features I will be posting more very soon.

Hope this helps

Tags: What's New in Visual Studio 2010, ASP.NET 4.0

1 comment:

  1. i am copy cd but copied song not play plzzz responce and any software dowloading tel me

    ReplyDelete