HighTechTalks DotNet Forums  

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

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss vs.net not showing intellisense on a .aspx page that usesmasterpages. in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
DotNetNewbie
 
Posts: n/a

Default vs.net not showing intellisense on a .aspx page that usesmasterpages. - 01-02-2008 , 10:40 AM






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?

Reply With Quote
  #2  
Old   
Mohamad Elarabi [MCPD]
 
Posts: n/a

Default RE: vs.net not showing intellisense on a .aspx page that uses masterpa - 01-02-2008 , 06:20 PM






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 <asp:Content> tags. Is that the case?

--
Mohamad Elarabi
MCP, MCTS, MCPD.


"DotNetNewbie" wrote:

Quote:
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?


Reply With Quote
  #3  
Old   
DotNetNewbie
 
Posts: n/a

Default Re: vs.net not showing intellisense on a .aspx page that usesmasterpa - 01-03-2008 , 01:20 PM



On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
<MohamadElarabiM... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
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 <asp:Content> 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" %>

<asp:content contentplaceholderid="AdminPlaceHolder" runat="server">

MY CONTENT HERE

</asp:content>

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




Reply With Quote
  #4  
Old   
Mohamad Elarabi [MCPD]
 
Posts: n/a

Default Re: vs.net not showing intellisense on a .aspx page that uses mast - 01-03-2008 , 02:01 PM



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:

Quote:
On Jan 2, 7:20 pm, Mohamad Elarabi [MCPD]
MohamadElarabiM... (AT) discussions (DOT) microsoft.com> 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 <asp:Content> 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" %

asp:content contentplaceholderid="AdminPlaceHolder" runat="server"

MY CONTENT HERE

/asp:content

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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.