Re: Global application Masterpages and Intellisense



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.

-Brock
http://staff.develop.com/ballen


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.



.



Relevant Pages

  • Global application Masterpages and Intellisense
    ... Added a .master file with 3 contentplaceholder controls. ... Added an aspx file with the @Page directive parameter ... I couldnt get the intellisense work for my .aspx pages and the previous ...
    (microsoft.public.dotnet.framework.aspnet)
  • Contents does not show in Designer/Design
    ... I can modify my .aspx file to add and/or change controls and they show up OK ... I can't use the designer to drag controls on to a page because the ... I have a .master file and understand that the part of the page should be ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Bug In Visual Studio.NET
    ... If you don't stick the script tag into the aspx file, ... >> The Bug, ... >> inside it insert a field required validator and a textbox, ... >> on button click set the tables visible property to true. ...
    (microsoft.public.vsnet.general)
  • intellisense and javascript
    ... I read that in VS 2008 I can have intellisense also on my .js file ... If in my .aspx file write: ... there when I try to write getM... ... May be must I set some other options for enable that feature? ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP.NET Instellisense
    ... Unlike for Windows or Console application, I'm not getting the Intellisense when I'm working in an .aspx file or in a code behind file ...
    (microsoft.public.dotnet.framework.aspnet)