Re: duplicate Register and Login links
Strange mono only error, when not logged in the register and login links in the welcome menu at the top right corner of the page are repeated.? The offending code was in the page load event but there was no duplicate code and the symptom does not occur under Windows:
loginLink = new Literal();
loginLink.Text = "<" + "span class='Accent'>|" + "<" + "a href='" + SiteUtils.GetSiteRoot() + "/Login.aspx' class='SiteLink'> "+ ConfigurationSettings.AppSettings.Get("LoginLink") + "<" + "/a>";
this.Controls.Add(loginLink);
registerLink = new Literal();
registerLink.Text = "<" + "span class='Accent'>|" + "<" + "a href='" + SiteUtils.GetSiteRoot() + "/Register.aspx' class='SiteLink'> "+ ConfigurationSettings.AppSettings.Get("RegisterLink") + "<" + "/a>";
this.Controls.Add(registerLink);
Interestingly, the fix was just to instantiate the Literal controls inline with the declaration instead of in the page load event.
protected Literal loginLink = new Literal();
protected Literal registerLink = new Literal();
You can still see this error at http://mojoportal.monoforge.com but I'll upload the fix by this weekend.