Helo Web - Part 2 User Control not appearing (no build errors)

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/31/2011 3:47:58 PM
Gravatar
Total Posts 12

Helo Web - Part 2 User Control not appearing (no build errors)

Hi,

 

I've been working through the Developer Tutorials and seem to have hit a snag on "Dev Series 5 Hello Web Part 2", When I try to run the site and create a page with the Hello Web control it's not being displayed. I'm not even getting a yellow screen of death and the code isn't stopping at breakpoints.

I'm using Visual Studio 2010 and Windows 2008 R2, using mojoportal_32d2e320df08 Source using the MSSQL file as detailed in the tutorial.

Has anyone encountered this type of issue before or is it just me?

Any suggestions welcomed.

Thanks

Bert.

5/31/2011 4:30:57 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Helo Web - Part 2 User Control not appearing (no build errors)

Whenever this has happened to me, it's been in cases where I had an error in my ascx/aspx file. Typically, I'll forget a closing </portal> or </panel> tag somewhere. When that happens, the feature is excluded from the page, and it can be difficult to troubleshoot (as you're finding). I'm actually not sure exactly where (or even whether) you can find an error for that condition. So when a new custom feature is not being included on a page, I go back through my form and look for mismatched tags. Fixing those has solved this every time for me.

I hope that helps.

Jamie

6/1/2011 3:45:02 AM
Gravatar
Total Posts 12

Re: Helo Web - Part 2 User Control not appearing (no build errors)

Can't find any missing tags, here's the ascx page, I used Codesmith and added all the references so I'm a little bewildered. Haven't altered other pages in the project.

The control builds and is copied to Web\GuestBook\HelloWeb.ascx and the dll to the bin folder. 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HelloWeb.ascx.cs" Inherits="acme.Web.UI.GuestBook.HelloWeb" %>

<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="HelloWeb.ascx.cs" Inherits="acme.Web.UI.HelloWebModule" %>

<portal:OuterWrapperPanel ID="pnlOuterWrap" runat="server">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <portal:InnerWrapperPanel ID="pnlInnerWrap" runat="server" CssClass="panelwrapper HelloWebmodule">
        <portal:ModuleTitleControl EditText="Edit" EditUrl="~/HelloWebmodule/HelloWebmoduleEdit.aspx"
         runat="server" id="TitleControl" />
        <portal:OuterBodyPanel ID="pnlOuterBody" runat="server">
            <portal:InnerBodyPanel ID="pnlInnerBody" runat="server" CssClass="modulecontent">
                <div class="settingrow">
                        This will soon be the entry point to the HelloWebmodule.<br />
                </div>
            </portal:InnerBodyPanel>
        </portal:OuterBodyPanel>
        <portal:EmptyPanel id="divCleared" runat="server" CssClass="cleared" SkinID="cleared"></portal:EmptyPanel>
    </portal:InnerWrapperPanel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
</portal:OuterWrapperPanel>

6/1/2011 4:25:00 AM
Gravatar
Total Posts 12

Re: Helo Web - Part 2 User Control not appearing (no build errors)

ignore the top <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HelloWeb.ascx.cs" Inherits="acme.Web.UI.GuestBook.HelloWeb" %> I had started building it from scratch.

6/1/2011 4:27:45 AM
Gravatar
Total Posts 12

Re: Helo Web - Part 2 User Control not appearing (no build errors)

Ok now I feel stupid, looks like I had left it in the first few times. It's appearing ok now d'oh!

Note to self: always check the line numbers.

Thanks for your help.

You must sign in to post in the forums. This thread is closed to new posts.