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.
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.
I am using mojo version 18.104.22.168 and having an issue with a supporting page links in a custom module. If I code the link as below the "href" attribute will not render, however if I leave the NavigateUrl off and use code behind to assign the value it works
Text ="Edit Page"
NavigateUrl='<%# SiteRoot + "/TestModule/EditPage.aspx?pageid=" + PageId + "&mid=" + ModuleId %>' />
Text ="Edit Page" />
this.lnkEdit2.NavigateUrl = SiteRoot + "/TournamentManager/EditPage.aspx?pageid=" + PageId + "&mid=" + ModuleId;
Using the code behind is just a bit heavy it seems. Any help with this is greatly appreciated
I don't see a problem with either way, so I don't know why it isn't working for you, except if any value that you concatenate as part of the url is null then the whole thing becomes null and that might explain it. So make sure SiteRoot, PageId, and ModuleId are not null, otherwise I have no idea.
SiteRoot is coming back null in the markup
That is strange if you are using a control that inherits from SiteModuleControl
I would try replace SiteRoot with
for a root level site that may return empty string but empty string is not null
Tried both ways and still comes back null but code behind works.. sticking with Code behind for now until I further understand the problem..
Thank you for your response