Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:20:43+00:00 2026-06-16T01:20:43+00:00

If I have two inputs in a file I’ve received which are put together

  • 0

If I have two inputs in a file I’ve received which are “put together” with aspx

<tr>
    <td align="right">
        <asp:Label ID="Label1" runat="server" Text="User Name:" CssClass="login_label"></asp:Label></td>
    <td style="width: 200px">
        <asp:TextBox ID="txtUserName" runat="server" TabIndex="1" Width="200px"></asp:TextBox></td>
    <td style="width: 3px" align="left">
        <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtUserName">Required</asp:RequiredFieldValidator></td>
</tr>
<tr>
    <td align="right">
        <asp:Label ID="Label2" runat="server" Text="Password:" CssClass="login_label"></asp:Label></td>
    <td style="width: 200px">
        <asp:TextBox ID="txtPassword" runat="server" TabIndex="2" Width="200px" TextMode="Password"></asp:TextBox></td>
    <td style="width: 3px">
        <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword" ErrorMessage="Required">Required</asp:RequiredFieldValidator></td>
</tr>

How can I add autocapitalize="off" attribute to the inputs? Whenever I try to add something to this code——well, most of the time——it just totally breaks. But I would like it to be usable on mobile devices. Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:20:45+00:00Added an answer on June 16, 2026 at 1:20 am

    in the code behind:

    NameOfInput.Attributes.Add('autocapitalize','off')
    

    that is how you add an attribute to an html element visible by the server.

    javascript: be wary this may not work right in all versions of IE. This should be in the document load event

    document.getElementById('<%txtUserName.ClientID%>').setAttribute('autocapitalize','off');
    

    jQuery: same warning as above.
    also this should be in $(docuemnt).ready() function or load event.

    $('#<%txtUserName.ClientID%>').attr('autocapitalize','off');
    

    see this question for a better reason why you can’t do what you want to here:

    Autocapitalize attribute on input element (used for iOS) breaks validation

    one last edit:

    Apparently from the IOS development docs there is an example where you can add the attribute to your form element.

    http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/DesigningForms/DesigningForms.html

    So maybe you can add it to the form element, which is not an asp namespace control. the validator may cry but you might not get a compile error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a file and two inputs are shown below: 34.800287000 0.077352000 i'm reading
I have two inputs min, max In the case where min=32 and max=46 then
i have two text inputs like the following, i don't want to use <form>
I have an I2C device that wants two inputs: a denominator and a numerator.
How can two forms share the same inputs? I have two forms, one for
guys, I wrote a function to test if two inputs (a and b) have
So i have a simple form that takes a few inputs (two text and
I have two input text boxes which are decimal. The sum of the two
I hope I can explain this right I have two input fields that require
In Firefox 7.0.1, I have two checkboxes and a number of other inputs. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.