Reuse code the NavBar.ascx
Hi
I am in chapter 12, page 464. The Excerise tells me to put all the code for my navbar user control in a code behind. When i tell the navbar to inherit from the code behind file i get an error "The directive 'Page' is unknown.". I think this is because another page with a Page directive is calling the User Control so I would whind up with two Page directives on one page. What is the resolution?
Thanks
|