Forums module error when in a page with Chinese character url

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.
10/14/2008 9:39:47 PM
Gravatar
Total Posts 59

Forums module error when in a page with Chinese character url

hi, joe

When new a page with Chinese name(e.g 聊天室), its url default is Chinese name.

when add a forum module to this page, then add a new forum in the forum module, error occurs.

ForumEdit.aspx:

private void Page_Load(object sender, EventArgs e)
{
........

if (Request.UrlReferrer != null)
{
ViewState["UrlReferrer"] = Request.UrlReferrer.ToString(); //Request.UrlReferrer becomes unrecognized codes.
}

...

}

above code, Request.UrlReferrer becomes unrecognized codes,

I think maybe this is Asp.net's problem. not mojoportal.

thanks!

10/15/2008 4:09:46 PM
Gravatar
Total Posts 18439

Re: Forums module error when in a page with Chinese character url

Hi,

Can you try commenting out the code that is storing and using the url in viewstate, and change the redirect code to this:

WebUtils.SetupRedirect(this, SiteUtils.GetCurrentPageUrl());

Then let me know if that fixes it or not?

Thanks,

Joe

10/15/2008 8:16:26 PM
Gravatar
Total Posts 59

Re: Forums module error when in a page with Chinese character url

Hi, Joe

when change
ViewState["UrlReferrer"] = Request.UrlReferrer.ToString();


to


ViewState["UrlReferrer"] = SiteUtils.GetCurrentPageUrl();


then it works.

Thanks!

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