473,786 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs.net not showing intellisense on a .aspx page that usesmasterpages .

Hi,

VS.NET is not showing me any intellisense on a page that references a
master page in the codebehind.

(the codebehind references a custom class that inherits from
web.ui.page, and that page sets the master page)

How can I fix this?
Jan 2 '08 #1
4 3491
Could you post your <@Pagetag and a few tags from that page?

It should be only the <@Pagetag and any other @ type tag and then 0 or
more <asp:Contenttag s. Is that the case?

--
Mohamad Elarabi
MCP, MCTS, MCPD.
"DotNetNewb ie" wrote:
Hi,

VS.NET is not showing me any intellisense on a page that references a
master page in the codebehind.

(the codebehind references a custom class that inherits from
web.ui.page, and that page sets the master page)

How can I fix this?
Jan 3 '08 #2
On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
<MohamadElarabi M...@discussion s.microsoft.com wrote:
Could you post your <@Pagetag and a few tags from that page?

It should be only the <@Pagetag and any other @ type tag and then 0 or
more <asp:Contenttag s. Is that the case?

--
Mohamad Elarabi
MCP, MCTS, MCPD.

"DotNetNewb ie" wrote:
Hi,
VS.NET is not showing me any intellisense on a page that references a
master page in the codebehind.
(the codebehind references a custom class that inherits from
web.ui.page, and that page sets the master page)
How can I fix this?
<%@ Page Language="C#" AutoEventWireup ="true"
Codebehind="cat egoryAdd.aspx.c s"
Inherits="BLAH. Categories.cate goryAdd" %>

<asp:content contentplacehol derid="AdminPla ceHolder" runat="server">

MY CONTENT HERE

</asp:content>

And my codebehind is inheriting from a class that inherits from
web.ui.page
Jan 3 '08 #3
Are you seeing curly underlines in your ASPX file?

I don't think there is an attribute called Codebehind! I think you need to
change that to CodeFile. I'm also not seeing a MasterPageFile attribute in
the <@Pagetag. Where are you setting the MasterPage for this page? Is it in
the web.config? Try setting the MasterPageFile attribute of your <@Pagetag
and see if that fixes it.

Your page tag should look something like this
<%@ Page Language="C#" MasterPageFile= "~/main.master" AutoEventWireup ="true"
CodeFile="categ oryAdd.aspx.cs" Inherits="BLAH. Categories.cate goryAdd" %>

Also make sure that the namespace in your cs file is set to BLAH.Categories .

Please share your findings. Thanks,

--
Mohamad Elarabi
MCP, MCTS, MCPD.
"DotNetNewb ie" wrote:
On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
<MohamadElarabi M...@discussion s.microsoft.com wrote:
Could you post your <@Pagetag and a few tags from that page?

It should be only the <@Pagetag and any other @ type tag and then 0 or
more <asp:Contenttag s. Is that the case?

--
Mohamad Elarabi
MCP, MCTS, MCPD.

"DotNetNewb ie" wrote:
Hi,
VS.NET is not showing me any intellisense on a page that references a
master page in the codebehind.
(the codebehind references a custom class that inherits from
web.ui.page, and that page sets the master page)
How can I fix this?

<%@ Page Language="C#" AutoEventWireup ="true"
Codebehind="cat egoryAdd.aspx.c s"
Inherits="BLAH. Categories.cate goryAdd" %>

<asp:content contentplacehol derid="AdminPla ceHolder" runat="server">

MY CONTENT HERE

</asp:content>

And my codebehind is inheriting from a class that inherits from
web.ui.page
Jan 3 '08 #4
On Jan 3, 3:01 pm, Mohamad Elarabi [MCPD]
<MohamadElarabi M...@discussion s.microsoft.com wrote:
Are you seeing curly underlines in your ASPX file?

I don't think there is an attribute called Codebehind! I think you need to
change that to CodeFile. I'm also not seeing a MasterPageFile attribute in
the <@Pagetag. Where are you setting the MasterPage for this page? Is it in
the web.config? Try setting the MasterPageFile attribute of your <@Pagetag
and see if that fixes it.

Your page tag should look something like this
<%@ Page Language="C#" MasterPageFile= "~/main.master" AutoEventWireup ="true"
CodeFile="categ oryAdd.aspx.cs" Inherits="BLAH. Categories.cate goryAdd" %>

Also make sure that the namespace in your cs file is set to BLAH.Categories .

Please share your findings. Thanks,

--
Mohamad Elarabi
MCP, MCTS, MCPD.

"DotNetNewb ie" wrote:
On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
<MohamadElarabi M...@discussion s.microsoft.com wrote:
Could you post your <@Pagetag and a few tags from that page?
It should be only the <@Pagetag and any other @ type tag and then 0 or
more <asp:Contenttag s. Is that the case?
--
Mohamad Elarabi
MCP, MCTS, MCPD.
"DotNetNewb ie" wrote:
Hi,
VS.NET is not showing me any intellisense on a page that references a
master page in the codebehind.
(the codebehind references a custom class that inherits from
web.ui.page, and that page sets the master page)
How can I fix this?
<%@ Page Language="C#" AutoEventWireup ="true"
Codebehind="cat egoryAdd.aspx.c s"
Inherits="BLAH. Categories.cate goryAdd" %>
<asp:content contentplacehol derid="AdminPla ceHolder" runat="server">
MY CONTENT HERE
</asp:content>
And my codebehind is inheriting from a class that inherits from
web.ui.page
I am using vs.net 2005, web project (using the service pack 1 update,
that makes projects like vs.net 2003).

The master page is referenced like this:

My codebehind inherits from MyCustomPage

And MyCustomPage inherits from System.Web.UI.P age

And in the MyCustomPage, it sets the MasterPage there.

Jan 8 '08 #5

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

Similar topics

1
1558
by: Bill Talada | last post by:
Intellisense used to work beautifully. In the last couple months, I have to rebuild about every minute to keep intellisense working in dozens of different projects. I moved all imports statements from forms to the project and it worked slightly better. I removed an unused dll reference and it worked slightly better. The other developer codes very different from me and has the same complaints. I suspect maybe Infragistics controls 2005...
3
2940
by: GC | last post by:
I have a web app with an aspx page in namespace Abc.WebModules.Vendors.Web. I also have business classes that are in Abc.WebModules.Vendors.Business. I have always been able to, in the aspx class, do something like: Business.Vendors vendor = new Business.Vendors("123"); then, typing vendor. would give me all my properties and methods. I don't know what changed but the intellisense stopped working. It will compile just fine but the
3
2567
by: Charlie Dison | last post by:
Hi There, Should I be able to show and hide panels in an asp.net page without requiring a postback? I thought there was a way to do this using java script. Can anyone give me an example? I can't seem to find one that makes sense. Thanks.
2
2643
by: louise raisbeck | last post by:
Hi, I am using c#. i have my server code within script tags on my aspx page i am not using code behind. Do you not get intellisense when working like this? it would speed up my work considerably but nothings happening. I may have a setting turned off but dont know where to look (have tried options, text editor but cant find anything). Also, I am a little confused about the concepts of projects and solutions. I am working on some...
1
1353
by: Epetruk | last post by:
Hi all, I'm trying to write a simple page where a table's properties and contained controls are generated dynamically. I have the following code: In Test.aspx:
6
1229
by: Mike D | last post by:
Should I be able to see intellisense when working in a .aspx page? I can see it in the code behind page but not .aspx. I am running VS.net 2003 on 1.1 framework. Thanks Mike
2
1734
by: PeterKellner | last post by:
Is there something extra I need to do to make intellisense work when referencing a page class? Here is my working Page_Load from a aspx page. sourcePage does not get it's members listed with intellisense. It acts like it is not a class but compiles fine. Thanks, protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)
1
1310
by: tool | last post by:
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
2
2214
by: RSH | last post by:
I have a class file in my project that is just like all the other class files in the project. For some reason this class after instantiation does not show its Public Properties and Methods like the other classes do. And the compiler doesn't catch errors in that class, it is only when the page loads when any class errors show. Why won't this class show up in intellisense? Thanks, Ron
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.