简体   繁体   中英

What are the useful new ASP.NET features in the .NET Framework 3.5?

I've kept up to date with new features in the C# language as it's moved from version 1 through version 3. I haven't done such a good job keeping up to date with ASP.NET. I feel like some of the post version 1 features are not so good (eg the AJAX framework) or are just not that useful to me (eg the membership framework). Can anyone recommend any new killer ASP.NET features that might have gone unnoticed?

For ASP.NET, you have a lot of improvements:

  • split view (code and design)
  • faster switching between code and design view
  • embedded master pages (one master page in another)
  • javascript debugging

Anyway most of the useful stuff are really in the meat of the language, and for .NET 3.5 the new language features for C# 3.0 will be (and yes, I find ALL of them useful)

  • anonymous objects
  • automatic properties
  • object initializers
  • collection initializers (inline initialization for collections)
  • implicit typing (var keyword)
  • lambda expressions
  • LINQ
  • Extension methods

I might have forgotten a few, but I think this is about most of the new cool and useful stuff.

Check out the MVC framework which is built ontop of 3.5. Big improvement over the traditional webforms model.

我还在学习ASP.net,所以我无法准确地告诉你,但如果你浏览http://www.asp.net/learn/,你可能会发现一些新的宝石,甚至还有3.5节。

ListView and its friend DataPager are probably worth looking at, but they're hardly "Killer" features.

Things outside of ASP.NET specifically (LINQ, for example) are probably more likely to be get the "Killer" commendation.

Its the MVC framework . Without 3.5, there is no MVC. Without MVC, ASP.NET is a PITA.

Master Pages

(of course, these are in there from version 2.0)

Nested master pages are new in 3.5. I haven't used them yet, but I can only imagine they could turn into a hidious nightmare if not used very carefully.

You only have to look at the order in which the events are fired in a page that uses a master page to think 'urgh'.

I don't think the MVC Framework is quite ready for prime time yet

Just an FYI, this site is built in MVC. I also have 2 apps in production on mvc, I would argue that its definitely ready for prime time.

@IainMH嵌套的主页总是由ASP.NET支持,而不是由设计者支持。

As others have said, there's a good list at www.asp.net/learn . I think the biggest ASP.NET specific changes are:

  • Official ASP.NET AJAX integration
  • ListView (much better than the GridView / DataView in that they let you write out clean HTML)
  • Big improvements to the IDE for CSS / HTML editing
  • Javascript debugging

Note that ASP.NET MVC is not released yet, and was definitely not included with ASP.NET 3.5.

Here's a brief list of my favourites:

  • LINQ
  • Extension Methods
  • Lambda Methods

And I don't actually use ASP.NET, but ASP.NET AJAX is now included in 3.5 too and ASP.NET MVC is included in 3.5 SP1.

I don't think the MVC Framework is quite ready for prime time yet, though I definitely plan to use it sometime next year. I love the clean URLs, clean XHTML (web forms can really spew out some nasty HTML) and the ability to create controller actions with no associated view.

I've been using Master Pages since they were released and they've been a big help. I do really dislike the way the master pages add the nasty prefixes to the control IDs. It makes for some ugly CSS. I think the MVC Framework may eliminate this problem though.

Any other killer features?

The split design/code view is pretty cool. It's not perfect yet, but it's pretty cool. Also editing in the design view now edits your css there and then.

还必须考虑动态数据

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM