>
 Thursday, November 17, 2005
« DevConnections ADX352: Beyond Drag & Dro... | Main | Dev Connections APF301: Performance Tuni... »

This talk was jammed with advice on building a professional ASP.NET app, and we covered a lot of ground in 1 hour...but I know you want more...so here it is, samples, references to articles...dig in!

  • Main Sample - This code samples illustrates many of the points in this talk, but below I'm adding specific references for more details
  • Master Pages Article - I wrote this MSDN article long ago, and they will post an update to it in the next week on the release bits...code samples on this site are up to date on RTM
  • Dynamic Navigation - extra code sample
  • Data Binding & Caching - my other blog entry with data samples
  • Localization - my other blog entry with globalization references
  • Security Articles
  • Scalability and Consistency - MSDN article based on .NET 1.1, employing Enterprise Services and transactions

 

11/17/2005 1:46 AM ASP.NET | DevConnections | Speaking/Events  | Comments [3]  |  View reactions  |  Trackback
Friday, November 18, 2005 7:25:26 PM (GMT Standard Time, UTC+00:00)
Michele...

In this talk you (very quickly) showed us attendees how you avoid having to create your own base "Page" class (which to wire in Theme and MasterPage selection), which was to put some code in the global.asax

So i downloaded the GalleryDemo just now and am looking at the asax page, and see "private void p_PreInit", but don't see how/where that is wired into the application, p.PreInit += p_PreInit is in the code block above that, buts its all commented out :-(

(Side note, whats the VB.NET equiv to "p.PreInit += p_PreInit"?)

Thanks in advance
Friday, November 18, 2005 8:34:43 PM (GMT Standard Time, UTC+00:00)
I have updated the sample, thanks for the heads up it was a demo version that wasn't completely put back together!

I don't recommend making a base page class, for the manageability of the dev process. Instead, an HTTP handler that decouples common behavior for all requests. I've talked about handlers before, you can read up on them here: http://www.dotnetdashboard.net/sessions/handlers.aspx

What I did show is how to hook into the page PreInit event, so you can set the theme early in the page lifecycle but AFTER the runtime sets its defaults. You want to be sure and override what the default is, so the hook has to be right before the page controls are built.

The equivalent is AddHandler() in VB.NET.
Tuesday, December 04, 2007 6:50:34 AM (GMT Standard Time, UTC+00:00)
apwjxmheg fyghksn mtqkocp bzpcjdos ypajxhnce rldxyzfkb lwaitvnpf
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

    ON THIS PAGE
    SEARCH
    CATEGORIES
    ARCHIVES
    BLOGROLL

Designed by NUKEATION STUDIOS