I am trying out the new visual Studio 2008. When I first tried to open my
existing project(VS 2005), I immediately noticed that all my intellisense
and
formatting was gone, in the VBscript ****tion of my file(HTML was intact).
Strangely the code was still working and still compiled perfectly. Playing
around, I found out that it was the statement "include file......." that
was
caussing the problem. If I removed it and put the inclded code right in my
current source, eerything was back to normal.
I re****ted the bug to Micosoft team and they replied to me that it was
working as designed because VS208 DOES NOTsup****t included file. I found
it
extremely ackward since include file is one of the root of "best coding
pratice" in order to avoid code duplication. Their answer also talk about
using Master Page instead. So I transfered all the code in the include to
a
Master Page but it does not work. My current file does not "see" what is
declared in the Master page. Reading about the concept, it looks like
Master
Page are used only to share formatting and not code.
So my question is then: how and where should I put mu common declarations
so
they can be used by multiple sources?
Thanks