Using Non-English text or string for Username display error message
I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.
asp.net membership
|
show 2 more comments
I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.
asp.net membership
1
What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24
The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01
I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13
That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46
1
I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55
|
show 2 more comments
I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.
asp.net membership
I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.
asp.net membership
asp.net membership
edited Nov 19 '18 at 17:06
asked Nov 19 '18 at 16:09
abraham d.
65
65
1
What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24
The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01
I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13
That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46
1
I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55
|
show 2 more comments
1
What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24
The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01
I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13
That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46
1
I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55
1
1
What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24
What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24
The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01
The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01
I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13
I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13
That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46
That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46
1
1
I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55
I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55
|
show 2 more comments
1 Answer
1
active
oldest
votes
After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378599%2fusing-non-english-text-or-string-for-username-display-error-message%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx
add a comment |
After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx
add a comment |
After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx
After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx
edited Nov 20 '18 at 20:54
answered Nov 20 '18 at 20:39
abraham d.
65
65
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378599%2fusing-non-english-text-or-string-for-username-display-error-message%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24
The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01
I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13
That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46
1
I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55