473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Global application Masterpages and Intellisense

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.

Jun 11 '06 #1
1 1289
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.

Jun 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ronnie | last post by:
I've created a simple web application using VS2005 Beta 2. Basically, I've added a Web Form and a Global.asax file. In my Global.asax, I create a method like: public static void TestGlobal()...
8
by: Thomas Coleman | last post by:
Ok, I've obviously discovered that Global.aspx has been completely changed in ..NET 2.0. However, I haven't figured out how to declare a constant that's available to any page in my application...
11
by: Marc | last post by:
Hello. Apologies if this is the wrong group. I have created a class called "page" which i would like to add to the global.asax and then call from any control within the website. I have currently...
0
by: John Holmes | last post by:
I have a website that consists of numerous ASP.NET applications (each referred to as a website in VS 2005) which I'd like to have share a master page. My directory structure on the website is like...
6
by: Mark Rae | last post by:
Hi, When you create a new web site in VS.NET 2005, it doesn't contain a Global.asax file by default and, when you add one manually, it creates a Global.asax file with in-line code e.g. <%@...
1
by: deathtospam | last post by:
In Visual Studio.NET 2005, I've created a new website ("New Web Site...") and added global.asax to the root directory by right-clicking on the top-level object and selecting "Add New Item... Global...
0
by: markric | last post by:
Good day, I have an ASP.NET application / website with the following type of structure: + wwwroot + company site + masterpages + product1 + product2
6
by: =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?= | last post by:
I have two masterpages in a web application. One is used for the login and logout pages. The other is used for all other pages in the application. The difference between the two masterpages is...
11
by: Sylvia A. | last post by:
How can I define global classes in web application ? Classes can be set to session variables ? Thanks
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.