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 42559 time(s), 8 post(s) 30.07.2011 07:16:15by clocube

Related topics

clocube

clocube

30.07.2011 07:24:08
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?
Dieser Inhalt wurde noch nicht bewertet. 
52 Reputation 6 Total posts
khorvat

khorvat

30.07.2011 08:15:19
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


Bewertet mit 4,00, 1 Besucher. 
15993 Reputation 2214 Total posts
clocube

clocube

30.07.2011 10:23:18
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.
Dieser Inhalt wurde noch nicht bewertet. 
52 Reputation 6 Total posts
khorvat

khorvat

30.07.2011 12:01:20
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

Bewertet mit 5,00, 1 Besucher. 
15993 Reputation 2214 Total posts
shawndg

shawndg

30.07.2011 13:20:05
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.
Bewertet mit 5,00, 1 Besucher. 
1871 Reputation 252 Total posts
denis

denis

30.07.2011 16:05:03
@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?
Bewertet mit 4,00, 1 Besucher. 
7207 Reputation 956 Total posts
clocube

clocube

30.07.2011 16:18:55
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
Dieser Inhalt wurde noch nicht bewertet. 
52 Reputation 6 Total posts
khorvat

khorvat

04.08.2011 13:49:17
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts