Web Developer 2005 - Where has all the code gone ?

G

Goofy

OK, Thanks

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

Regards - G
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top