How to fix textbox issue in Android
For a C# webpage form a textbox input field is not working right in mobile devices.
When try to click on a Password textfield, it does not show the cursor in the field and does not allow to enter any text.
It displays the keyboard and allows to enter the text in the field only when the cursor is placed in the first character of the textbox.
This issue is only existing in Android and IPhone. It does not happen in a Desktop browser.
I tried couple of approaches which did not work:
1. set Tabindex for all the fields in the form.
2. Tried to remove couple of javascript functions on the form which are used to check password strength which is called when we focus on the field.
<div id="DesignatedAdministratorLoginInformation">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Username"><%= TranslateText("Desktop_Account_Management_Placeholders_Username") %></asp:Label><br />
<input runat="server" type="text" name="Username" id="Username" onblur="IsUniqueLoginID()" maxlength="128" aria-required="true" TabIndex="62" /><br />
</span>
<label id="UserNameError" style="color:#CC0000; display:none;"><% = TranslateText("Desktop_Account_Management_Validation_Messages_Username_Unavailable") %></label>
<div style="margin-bottom: -10px;">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Password"><%= TranslateText("Desktop_Account_Management_Placeholders_Password") %></asp:Label><br />
<input runat="server" id="Password" name="Password" data-password="" type="text" class="primary-password" aria-required="true" TabIndex="63" />
</span>
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="PasswordConfirmation"><%= TranslateText("Desktop_Account_Management_Placeholders_Confirm_Password") %></asp:Label><br />
<input runat="server" id="PasswordConfirmation" name="Password" data-password="" type="text" aria-required="true" TabIndex="64" />
</span>
</div>
</div>
The expected result should be if a user clicks anywhere in the textbox then it should allow to enter the text. This should work in Android and IPhone.
The user should not have to click only in the beginning of the textbox to get the cursor.
enter code here
c# webforms
add a comment |
For a C# webpage form a textbox input field is not working right in mobile devices.
When try to click on a Password textfield, it does not show the cursor in the field and does not allow to enter any text.
It displays the keyboard and allows to enter the text in the field only when the cursor is placed in the first character of the textbox.
This issue is only existing in Android and IPhone. It does not happen in a Desktop browser.
I tried couple of approaches which did not work:
1. set Tabindex for all the fields in the form.
2. Tried to remove couple of javascript functions on the form which are used to check password strength which is called when we focus on the field.
<div id="DesignatedAdministratorLoginInformation">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Username"><%= TranslateText("Desktop_Account_Management_Placeholders_Username") %></asp:Label><br />
<input runat="server" type="text" name="Username" id="Username" onblur="IsUniqueLoginID()" maxlength="128" aria-required="true" TabIndex="62" /><br />
</span>
<label id="UserNameError" style="color:#CC0000; display:none;"><% = TranslateText("Desktop_Account_Management_Validation_Messages_Username_Unavailable") %></label>
<div style="margin-bottom: -10px;">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Password"><%= TranslateText("Desktop_Account_Management_Placeholders_Password") %></asp:Label><br />
<input runat="server" id="Password" name="Password" data-password="" type="text" class="primary-password" aria-required="true" TabIndex="63" />
</span>
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="PasswordConfirmation"><%= TranslateText("Desktop_Account_Management_Placeholders_Confirm_Password") %></asp:Label><br />
<input runat="server" id="PasswordConfirmation" name="Password" data-password="" type="text" aria-required="true" TabIndex="64" />
</span>
</div>
</div>
The expected result should be if a user clicks anywhere in the textbox then it should allow to enter the text. This should work in Android and IPhone.
The user should not have to click only in the beginning of the textbox to get the cursor.
enter code here
c# webforms
add a comment |
For a C# webpage form a textbox input field is not working right in mobile devices.
When try to click on a Password textfield, it does not show the cursor in the field and does not allow to enter any text.
It displays the keyboard and allows to enter the text in the field only when the cursor is placed in the first character of the textbox.
This issue is only existing in Android and IPhone. It does not happen in a Desktop browser.
I tried couple of approaches which did not work:
1. set Tabindex for all the fields in the form.
2. Tried to remove couple of javascript functions on the form which are used to check password strength which is called when we focus on the field.
<div id="DesignatedAdministratorLoginInformation">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Username"><%= TranslateText("Desktop_Account_Management_Placeholders_Username") %></asp:Label><br />
<input runat="server" type="text" name="Username" id="Username" onblur="IsUniqueLoginID()" maxlength="128" aria-required="true" TabIndex="62" /><br />
</span>
<label id="UserNameError" style="color:#CC0000; display:none;"><% = TranslateText("Desktop_Account_Management_Validation_Messages_Username_Unavailable") %></label>
<div style="margin-bottom: -10px;">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Password"><%= TranslateText("Desktop_Account_Management_Placeholders_Password") %></asp:Label><br />
<input runat="server" id="Password" name="Password" data-password="" type="text" class="primary-password" aria-required="true" TabIndex="63" />
</span>
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="PasswordConfirmation"><%= TranslateText("Desktop_Account_Management_Placeholders_Confirm_Password") %></asp:Label><br />
<input runat="server" id="PasswordConfirmation" name="Password" data-password="" type="text" aria-required="true" TabIndex="64" />
</span>
</div>
</div>
The expected result should be if a user clicks anywhere in the textbox then it should allow to enter the text. This should work in Android and IPhone.
The user should not have to click only in the beginning of the textbox to get the cursor.
enter code here
c# webforms
For a C# webpage form a textbox input field is not working right in mobile devices.
When try to click on a Password textfield, it does not show the cursor in the field and does not allow to enter any text.
It displays the keyboard and allows to enter the text in the field only when the cursor is placed in the first character of the textbox.
This issue is only existing in Android and IPhone. It does not happen in a Desktop browser.
I tried couple of approaches which did not work:
1. set Tabindex for all the fields in the form.
2. Tried to remove couple of javascript functions on the form which are used to check password strength which is called when we focus on the field.
<div id="DesignatedAdministratorLoginInformation">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Username"><%= TranslateText("Desktop_Account_Management_Placeholders_Username") %></asp:Label><br />
<input runat="server" type="text" name="Username" id="Username" onblur="IsUniqueLoginID()" maxlength="128" aria-required="true" TabIndex="62" /><br />
</span>
<label id="UserNameError" style="color:#CC0000; display:none;"><% = TranslateText("Desktop_Account_Management_Validation_Messages_Username_Unavailable") %></label>
<div style="margin-bottom: -10px;">
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="Password"><%= TranslateText("Desktop_Account_Management_Placeholders_Password") %></asp:Label><br />
<input runat="server" id="Password" name="Password" data-password="" type="text" class="primary-password" aria-required="true" TabIndex="63" />
</span>
<span class="d-inline-block">
<asp:Label runat="server" AssociatedControlID="PasswordConfirmation"><%= TranslateText("Desktop_Account_Management_Placeholders_Confirm_Password") %></asp:Label><br />
<input runat="server" id="PasswordConfirmation" name="Password" data-password="" type="text" aria-required="true" TabIndex="64" />
</span>
</div>
</div>
The expected result should be if a user clicks anywhere in the textbox then it should allow to enter the text. This should work in Android and IPhone.
The user should not have to click only in the beginning of the textbox to get the cursor.
enter code here
c# webforms
c# webforms
edited Jan 2 at 11:40


Saurabh Bhandari
1,89741826
1,89741826
asked Jan 2 at 5:52
AnonymousAnonymous
114
114
add a comment |
add a comment |
0
active
oldest
votes
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%2f54001827%2fhow-to-fix-textbox-issue-in-android%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%2f54001827%2fhow-to-fix-textbox-issue-in-android%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