ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

I was a bad person and just started working on my Cool Tips and Tricks talk for the PDC this week.  My official reason for waiting was that I was holding off working on content until the other 18 ASP.NET Whidbey talks were done -- so that I could make sure to avoid any duplication of content.  For those who have never been to one of my tips and tricks talks before, the basic structure I use is a slide/demo/slide/demo format.  The emphasis is on cool stuff that can you can easily put into most applications.

Origionally I was a little worried that I wouldn't have enough content for the talk -- given that so much cool stuff is covered in-depth elsewhere.  Thankfully after about 30 minutes more of thinking, though, I was able to dig up a number of goodies to share.  Below are some of the things I'll be showing in my 60 minutes (note: I'm deliberately not showing any of the stuff covered elsewhere in the other 18 talks):

-- Cross Page Postback between pages.  Yup -- you can now do it.  And it is easy.

-- Using ValidationGroups.  You can now have validator controls optionally validate depending on which button on the page is pushed.  You can group validation rules into “groups“ so that all controls within that group fire or don't fire.

-- Building workflow on a page using the new asp:Wizard control.  Handle next/back, step1->n workflows easily now (no funky state management tricks for controls required).

-- Using the new Image Generation Service and asp:DynamicImage server control.  Show databinding a photo-album where all images are stored in the database, and bound to the asp:DynamicImage control within a asp:DataList template.  No code required.

-- Url Rewriting using the new UrlMapping Service.  Build vanity urls on your site (/products/shoes.aspx is re-written to really be processed by /products/productcatalog.aspx?id=shoes -- but the customer never knows it).  Talk about how this makes http.sys kernel level caching possible for dynamic pages.

-- Using the new SiteCounter service to efficiently log and record usage patterns on a site (page views, clicks on important links, ad banner click and impressions tracking).  Build some reports that show off how to look at the data.

-- Building a simple content management system with the FileSystemProvider.  Show how you can store your .aspx pages inside your own custom database now (complete with code and code-behind) -- and how you can configure ASP.NET to pull and execute the content (and still dynamically compile it if appropriate) from places other than the file-system.

-- “No Compile” Pages.  Enable administrators to lock down what code is allowed (or not) for portions of a site.  Talk about scenarios with tens of thousands of content pages (but still with server controls + master pages -- just no code allowed) -- and how these can also all now be served without dynamic compiling each one at runtime (avoiding a perf hit on the first request -- as well as reducing memory usage on the server.

-- Using the ASP.NET Forms Authentication architecture and the new Membership and Role Management system to provide security authentication/authorization to non-ASP.NET pages/resources.  My plan is to show a classic ASP site where we add login/role management support using ASP.NET.  I'm also going to probably show PHP or JSP protected using ASP.NET as well.

-- Client-script goodies.  Basically eliminate the need for the Black-Belt Web Forms talk that I currently give occasionally on Everett.  Show automatically maintaining scroll postions during postback, controling default buttons and focus, programmatically setting focus on controls on the server, and easily handling client-side click events using server control buttons.

-- Build-Providers.  Talk about the ability to add declarative types into your “code” directory and have them automatically compiled as part of your website (with full intellisense inside Visual Studio).  Talk briefly about the extensibility model on how to add your own files (example: a .pdf file could become a strongly typed object that you could program against), and about the cool model this enables when used with partial types for end-user extensibility.  Show using a .wsdl file I got from Google.com to integrate Google searching into a site as a web-service bound to an ASP.NET data control.

-- RSS Blog Reader.  Show how to build a simple RSS Blog Reader from scratch using the new asp:XmlDatasource control, the asp:DataList server control, and our new XPath binding support for hierarchical data structures.  Close the talk with a new ASP.NET reader working off of this blog.

Note: I'm still fine-tweaking what I'm going to show (and might need to cut one or two things if time gets tight), but hopefully there will be enough interesting and otherwise hidden things above to have people leave happy.  Obviously the coolest features will be the ones in the 18 dedicated talks -- but this talk should hopefully be a nice near the end of the conference talk which shows some remaining loose end features that are fun.

 

Published Wednesday, October 22, 2003 12:06 PM by ScottGu

Comments

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Wednesday, October 22, 2003 3:16 PM by Scott Galloway
Scott, are you going to show any Pet Tricks / make any avaliable for use with the PDC bits?

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Wednesday, October 22, 2003 3:32 PM by Scott Galloway
Oh, incidentally, looks like a fantastic presentation...especially looking forward to (oddly) the Url Rewriting stuff...will you be posting source for these items on your site - I can't get to the PDC?

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Wednesday, October 22, 2003 5:29 PM by ScottGu
Yep -- I'll post all the source after the talk (along with powerpoints). We'll be doing that for all of the PDC content.

Thanks,

Scott

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Wednesday, October 22, 2003 5:32 PM by Thomas Tomiczek
I will curse you for some stuff (like your membership - way too limited), but I LOVE LOVE LOVE the FileSystemProvider (finally, this was missing), and some other items.

Well done. VERY well done.

# Scott Guthrie blogs about some of the new Whidbey features...

Wednesday, October 22, 2003 6:17 PM by TrackBack

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Wednesday, October 22, 2003 7:09 PM by Kevin Dente
Pardon me whilst I wipe the drool off my chin. The data source, dynamic image, and post-to stuff sound particularly tasty right now, as I'm struggling with similar issues right now. Can't wait.

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Wednesday, October 22, 2003 8:59 PM by Norlan
I WANT MY WHIDBEY NOWWWWWWWW...........

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, October 23, 2003 12:56 AM by Peter
Hi!

ScottGu wrote:

"I'll post all the source after the talk (along with powerpoints)"

That is cool! but there will be freely available also Whidbey preview from PDC? Otherwise how one can try demos?

thanks,
Peter

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, October 23, 2003 12:56 AM by Peter
Hi!

ScottGu wrote:

"I'll post all the source after the talk (along with powerpoints)"

That is cool! but there will be freely available also Whidbey preview from PDC? Otherwise how one can try demos?

thanks,
Peter

# What ASP.Net Whidbey could be!

Thursday, October 23, 2003 6:55 AM by TrackBack

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, October 23, 2003 4:12 PM by Scott Galloway
'will be freely available also Whidbey preview from PDC? Otherwise how one can try demos?'

Wild guess...wait until the first public beta...but if it goes the same way as the original .NET release, the SDK MAY be avaialble before VS.NET.

# Whidbey Alpha - don't expect too much...

Friday, October 24, 2003 4:09 PM by TrackBack

# C# 2.0 language specifications are now available

Saturday, October 25, 2003 9:07 AM by TrackBack

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Monday, October 27, 2003 8:34 AM by Asbjørn Ulsberg
How much of this new functionality, especially the asp:Wizard and such, require the client to support and have turned on JavaScript? I find the current ASP.NET version to rely too much upon JavaScript support in the client, so stuff like paging (not custom) in DataGrids don't work without it, etc.

Has Microsoft thought about this, or are they content as long as ASP.NET works in IE with all properties turned on?

# ASP.NET 2.0 Preview

Monday, October 27, 2003 12:07 PM by TrackBack

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, November 20, 2003 7:07 PM by Fanta
Are the slides/code yet available? thx

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, November 20, 2003 7:09 PM by scottgu@microsoft.com
The slides and demos are available now at:

http://www.asp.net/whidbey/pdc.aspx?tabindex=0&tabid=1

Enjoy!

- Scott

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, January 15, 2004 12:42 PM by jkjk
kiljloin

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Friday, February 13, 2004 5:34 AM by fff
fff

# re: ASP.NET Whidbey Cool Tips and Tricks Talk Coming Along

Thursday, June 24, 2004 8:42 AM by online casino
hot game

# FileSystemProvider??? If ScottGu says so...

Friday, February 11, 2005 8:56 PM by TrackBack
FileSystemProvider??? If ScottGu says so...