Global application Masterpages and Intellisense

T

tool

Hi all,

I Followed these steps :

1. Added a .master file with 3 contentplaceholder controls.
2. Added an aspx file with the @Page directive parameter
'MasterPageFile' set to my .master file.
3. Added an asp:Content in the page.

intellisense in my .aspx file worked and the application ran and
compiled correctly.

1. Deleted the 'MasterPageFile' parameter from @Page directive and
added <pages masterPageFile="locationofthe.master file" > under the
<system.web> node of the web.config.

I couldnt get the intellisense work for my .aspx pages and the previous
<asp:Content> controls are marked 'red'. Intellisense could not
recognize 'asp' namespace inside the .aspx file and intellisense itself
is compromised. However, i could compile entire solution and the
application still ran correctly.

Is this a bug ??

Thanks in advance.
 
B

Brock Allen

Yes, this is a known bug in Visual Studio 2005. The official work around
is to put back in the <@Page MasterPageFile="..." %> during development and
then rmeove it prior to checking the file back into source control. I know,
it's crummy. Anyway, they say it will be fixed in the next release.
 

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,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top