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

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

am 02.01.2008 17:40:05 von DotNetNewbie

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?

RE: vs.net not showing intellisense on a .aspx page that uses masterpa

am 03.01.2008 01:20:01 von MohamadElarabiMCPD

Could you post your <@Page> tag and a few tags from that page?

It should be only the <@Page> tag and any other @ type tag and then 0 or
more tags. Is that the case?

--
Mohamad Elarabi
MCP, MCTS, MCPD.


"DotNetNewbie" 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?
>

Re: vs.net not showing intellisense on a .aspx page that uses

am 03.01.2008 20:20:45 von DotNetNewbie

On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
wrote:
> Could you post your <@Page> tag and a few tags from that page?
>
> It should be only the <@Page> tag and any other @ type tag and then 0 or
> more tags. Is that the case?
>
> --
> Mohamad Elarabi
> MCP, MCTS, MCPD.
>
> "DotNetNewbie" 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="categoryAdd.aspx.cs"
Inherits="BLAH.Categories.categoryAdd" %>



MY CONTENT HERE



And my codebehind is inheriting from a class that inherits from
web.ui.page

Re: vs.net not showing intellisense on a .aspx page that uses mast

am 03.01.2008 21:01:02 von MohamadElarabiMCPD

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 <@Page> tag. Where are you setting the MasterPage for this page? Is it in
the web.config? Try setting the MasterPageFile attribute of your <@Page> tag
and see if that fixes it.

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

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.


"DotNetNewbie" wrote:

> On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
> wrote:
> > Could you post your <@Page> tag and a few tags from that page?
> >
> > It should be only the <@Page> tag and any other @ type tag and then 0 or
> > more tags. Is that the case?
> >
> > --
> > Mohamad Elarabi
> > MCP, MCTS, MCPD.
> >
> > "DotNetNewbie" 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="categoryAdd.aspx.cs"
> Inherits="BLAH.Categories.categoryAdd" %>
>
>
>
> MY CONTENT HERE
>
>

>
> And my codebehind is inheriting from a class that inherits from
> web.ui.page
>
>
>

Re: vs.net not showing intellisense on a .aspx page that uses mast

am 08.01.2008 15:27:38 von DotNetNewbie

On Jan 3, 3:01 pm, Mohamad Elarabi [MCPD]
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 <@Page> tag. Where are you setting the MasterPage for this page? Is it in
> the web.config? Try setting the MasterPageFile attribute of your <@Page> tag
> and see if that fixes it.
>
> Your page tag should look something like this
> <%@ Page Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true"
> CodeFile="categoryAdd.aspx.cs" Inherits="BLAH.Categories.categoryAdd" %>
>
> 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.
>
> "DotNetNewbie" wrote:
> > On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
> > wrote:
> > > Could you post your <@Page> tag and a few tags from that page?
>
> > > It should be only the <@Page> tag and any other @ type tag and then 0 or
> > > more tags. Is that the case?
>
> > > --
> > > Mohamad Elarabi
> > > MCP, MCTS, MCPD.
>
> > > "DotNetNewbie" 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="categoryAdd.aspx.cs"
> > Inherits="BLAH.Categories.categoryAdd" %>
>
> >
>
> > MY CONTENT HERE
>
> >

>
> > 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.Page

And in the MyCustomPage, it sets the MasterPage there.