vs2005 page inheritance and general oddities
-
ive just took the plunge with vs2005 from vs2003 and there are a couple of things that are truly boggling me! 1. i like to have a page called 'basepage' in which i add lots of useful functions. every page i add to my project inherits from basepage so it has easy access to all my pre-built functions. i have created my basepage but it does not appear in the intellisense list after the 'inherits' statement when i type and it does not appear to be known as a class. why is this???? its driving me nuts!!! 2. i like to setup namespace imports for heavily used namespaces such as system.data.sqlclient and system.text. i cannot find the utility to do this where it used to be nor does the help give me any clues. please help a very flummoxed vs2005 noob!:doh:
---Guy H (;-)---
-
ive just took the plunge with vs2005 from vs2003 and there are a couple of things that are truly boggling me! 1. i like to have a page called 'basepage' in which i add lots of useful functions. every page i add to my project inherits from basepage so it has easy access to all my pre-built functions. i have created my basepage but it does not appear in the intellisense list after the 'inherits' statement when i type and it does not appear to be known as a class. why is this???? its driving me nuts!!! 2. i like to setup namespace imports for heavily used namespaces such as system.data.sqlclient and system.text. i cannot find the utility to do this where it used to be nor does the help give me any clues. please help a very flummoxed vs2005 noob!:doh:
---Guy H (;-)---
-
Hi there, 1. Where do you define the
basepage
class? In the App_Code folder or a seperate project? Do you try to compile the project before using it? 2. You can define the namespaces in the namespaces Element for pages[^]hi thanks for your reply. the basepage inheritance seems to work now :confused: which baffles me even more. thanks for the namespace tip, ive got it sussed now cheers! :-D
---Guy H (;-)---