duplicate Register and Login links

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/4/2004 2:34:35 PM
Gravatar
Total Posts 18444

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.
11/28/2004 3:55:35 AM
Gravatar
Total Posts 18444

Re: duplicate Register and Login links

this is probably a bug in mono, but it is fixed as far as the site code is concerned.
You must sign in to post in the forums. This thread is closed to new posts.