An Update on Base Page Classes in Whidbey from Scott G

A month or so ago I posted about some problems I was having with base page classes when I converted an existing application to .NET 2.0, as well as some potential work arounds.  At the time I "reported" the bug it sounded like I was mostly out of luck and would just need to manually update my pages to fit the new "model".  Today I came across Scott Guthrie's "Compatability Testing with ASP.NET 2.0" post which states the following:

Custom Page Base Classes that code-behind classes derive from that declare controls as field declarations.  Because of the changes to the code-behind model, users who have migrated apps to V2 sometimes see null reference exceptions when accessing these fields on the “grandparent” base-class because the .aspx compiler can’t correctly wire-up the control references to the fields.  We’ve now added support for this in V2, and the migration wizard will automatically configure code-behind classes that use custom base classes appropriately for you.

Sounds reasonable :-)

# re: An Update on Base Page Classes in Whidbey from Scott G

Thursday, May 12, 2005 2:57 AM by Sean Chase    
That's cool. But, how are you supposed to implement this from scratch in V2? I think I missed that part. :-)

# re: An Update on Base Page Classes in Whidbey from Scott G

Thursday, May 12, 2005 3:11 AM by Steve    
Yeah, I still don't know the answer to that. MasterPages was mentioned but I don't see how it would provide the same functionality. I'll get back to you when I start building things from scratch and find this out :)

# re: An Update on Base Page Classes in Whidbey from Scott G

Thursday, May 12, 2005 8:29 AM by scottgu@microsoft.com    
You'll still be able to use the same pattern with V2 (have a base class with field declarations that wire up to controls). No code changes are required in the base class. The one addition we are adding is an extra directive attribute you set which will allow ASP.NET to more easily find the base class. This directive will be new for RTM, and the migration wizard will automatically set it for existing projects that utilize a custom base class model.

Hope this helps,

Scott

# re: An Update on Base Page Classes in Whidbey from Scott G

Thursday, May 12, 2005 11:43 AM by Steve    
Thanks Scott! Sounds like a solid solution. Glad to hear I won't need to use the "workarounds" that we had discussed.

# Link Listing - May 12, 2005

Thursday, May 12, 2005 1:51 PM by Christopher Steen    
Link Listing - May 12, 2005

# re: An Update on Base Page Classes in Whidbey from Scott G

Monday, February 05, 2007 11:42 AM by igi    
pretty e perverse luoghi sexy lesbiche infermiere free filmsex penetrazioni dure mature maiale mature collants fichette bionde depilate vacche culo ingoio sperma gratis foto tennis russe reggi figha infermiere fotogallery mamme gratis ragazze e ditalini video tettone grtis massaggiare la figa clisteri shop maiale pps babbo natale sexsi

# re: An Update on Base Page Classes in Whidbey from Scott G

Tuesday, February 20, 2007 3:49 AM by quqayo    

# re: An Update on Base Page Classes in Whidbey from Scott G

Monday, March 19, 2007 7:50 AM by huit    

# re: An Update on Base Page Classes in Whidbey from Scott G

Tuesday, March 20, 2007 10:42 AM by Bozo    

# re: An Update on Base Page Classes in Whidbey from Scott G

Wednesday, March 21, 2007 12:40 PM by ala    
favoloso amatoriali merda intimo sexiwerrp donne vecchie grasse vecchi lecca cazzi selen scopata tedesco merda sentimentale esotiche stranezze clip preposterous lesbiche pompino donne vecchie arrapate scopate con madri filmati pornografici fighette spogliarello nellappartamento vecchie pelose gratis vecchie troie sfondate festa mamma 2002 goodly cameriera dildo attractive ragazze sex le pi grazioso ragazze masturbate fotografie seni seghe sentimento ragazze fotti la mistress perfetta tette mania

Post a Comment

 
 
Prove you're not a spammer: 
1 + 1 =