Web Developer 2005 - Where has all the code gone ?

  • Thread starter Thread starter Goofy
  • Start date Start date
OK, Thanks

And by the way, those articles were pretty good, so thanks for those URL's

Regards - G
 
in the aspx page, just like in version 1.

in version 1, the aspx page inherited from the codebehind. in this case
the aspx could see and public or protected variables from the
codebehind, but the codebehind could not see any aspx variables. to
allow the codebehind to acces controls in the aspx page, they were
declared in the codebehind as protected, and inheritied by the aspx page.

the difference in version 2, is with partial classes, the codebehind and
the aspx code are like one source file (though they can be different
languages), so they can see each others variables. thus the declaring
controls as protected and hooking events is not needed.

-- bruce (sqlwork.com)
 
Back
Top