MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

An error occured while trying to create new group category using double-byte characters (Closed) (Mono Support )

Viewed 38556 time(s), 8 post(s) 7/30/2011 7:16:15 AMby clocube

Related topics

clocube

clocube

7/30/2011 7:24:08 AM
Hi there, thank you for the rapid response on my last post.

I found a problem with MonoX this morning.
I was trying to create a new category of groups using Korean characters,
a red mark appeared with the tip "Invaild data entered in Name field!".
Then I tried Japanese And Chinese, they do the same.

Is there any solution to this Issue?
This content has not been rated yet. 
52 Reputation 6 Total posts
khorvat

khorvat

7/30/2011 8:15:19 AM
Hi,

we will try to add the support for Korean, Japanese And Chinese soon and you will be provided with the assembly (dll file) that you will include in your project. In the meanwhile you can do the following as a workaround:

If we are talking about the Group category management in the MonoX administration find the following file /MonoX/Admin/GroupCategoryManager.aspx and remove the line below:

<mono:RegExValidator ID="validateName" runat="server" CssClass="ValidatorAdapter" SetFocusOnError="true" ControlToValidate="txtName" ValidationGroup="Modification" ValidationType="alphaNumericWithSymbolsAllowedSpecialChr" Text="!" ErrorMessage='<%$ Code: AdminResources.GroupCategoryManager_validateName %>'></mono:RegExValidator>

I hope this will allow you to get by the issue, if not let us know. Stay tuned for the patch assembly.

Regards


Rated 4.00, 1 vote(s). 
15993 Reputation 2214 Total posts
clocube

clocube

7/30/2011 10:23:18 AM
Thank you for your response and looking forward for the patch.

I tried your workaround, it didn't change anything,
then I noticed the the url in my browser shown not GroupCategoryManager.aspx but SnGroupCategoryManager.aspx,
so I removed the line in that file(lead by Sn), then the Save button didn't response.
This content has not been rated yet. 
52 Reputation 6 Total posts
khorvat

khorvat

7/30/2011 12:01:20 PM
Hi,

can you try to disable the validator by using the below code:

<mono:RegExValidator ID="validateName" runat="server" CssClass="ValidatorAdapter" SetFocusOnError="true" ControlToValidate="txtName" ValidationGroup="Modification" Text="!" ValidationType="alphaNumericWithSymbolsAllowedSpecialChr" ErrorMessage='<%$ Code: AdminResources.SnGroupCategoryManager_validateName %>' Enabled="false"></mono:RegExValidator>

We have tested the code above and it is working as you want.

Regards

Rated 5.00, 1 vote(s). 
15993 Reputation 2214 Total posts
shawndg

shawndg

7/30/2011 1:20:05 PM
you can't remove the validator but you can set enabled = false and it will not function. but if you try to remove it your code will error.
Rated 5.00, 1 vote(s). 
1871 Reputation 252 Total posts
denis

denis

7/30/2011 4:05:03 PM
@shawndg, you are correct, controls generally cannot be removed from the Web parts since there are references to them from the back end code.
@clocube, this problem was caused by the fact that the validator doesn't accept some of the non-ASCII characters. It should work when the validator is disabled. Could you confirm that please?
Rated 4.00, 1 vote(s). 
7207 Reputation 956 Total posts
clocube

clocube

7/30/2011 4:18:55 PM
I do it, is really successful.

I make a suggestion, in regular expression for "Alpha" , add "\u4e00-\u9fa5" to support the Chinese. I hope to get the repaired "dll" soon.

Thanks
This content has not been rated yet. 
52 Reputation 6 Total posts
khorvat

khorvat

8/4/2011 1:49:17 PM
Hi,

we have included the Chinese expression to validator, can you please check. Please put the attached files extracted to the bin folder of your MonoX installation and try the validator. 

Note: Create a copy of your bin folder before you do so.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts