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 6555971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:53:05+00:00 2026-05-25T12:53:05+00:00

I have an address user control that encapsulates an address. Has the usual address

  • 0

I have an address user control that encapsulates an address. Has the usual address fields that you would expect. I’ve been receiving errors when users with Safari come to the site because Safari’s autofill seems completely and utterly broken.

This is an example of the (almost) actual post data to the server:

VictimAddressPanel$Address$CityNameItem$txtCityName
123 Fake Street

VictimAddressPanel$Address$ZipCodeItem$txtZipCode
123 Fake Street

It appears that because an outer container has the word “Address” in it that Safari goes OH!!!! OH!!! That’s the street address. So it populates the user’s street address in EVERY address field, including ZIP code. Now, I have also specified the ASP.NET textbox attribute of AutoComplete and set it to “Disabled” Which should tell browser, hey dummy, don’t even try to fill this field. Safari ignores it. And finally, to REALLY add insult to injury, Safari also ignores the maxlength property of textboxes. Even if you say that a field has a maxlength of 2, if in your autocomplete information there are 100 characters, Safari will happily populate the field with 100 characters. As you can imagine, this causes a database exception to be thrown because the field length is too long. Has anyone seen this before? Is there any workaround?

  • 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-05-25T12:53:06+00:00Added an answer on May 25, 2026 at 12:53 pm

    That’s a frustrating issue. It may be easiest to simply change the name to get rid of the $Address portion to prevent this. Otherwise you have some options.

    Option One – Validation You could put in validation to limit. For example

    <asp:TextBox ID="Zip" runat="server" MaxLength="5"></asp:TextBox>
    
    <asp:RegularExpressionValidator ID="ZipVerify" runat="server"
      ControlToValidate="Zip"
      ErrorMessage="You may only have five characters in the zipcode."
      ValidationExpression="(\s|){0,5}$">
    </asp:RegularExpressionValidator>
    

    Option Two – Client Side You may also add in JavaScript verification that fires on submit to stop things. jQuery below

    $(document).ready(function () {
        $('form').submit(function () {
            // Verify your fields here
            if ($("Zip").length > 5) {
                //Do something here on error.
            }
        });    
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a model that holds user address. This model has to have first_name
I have a form, that has about 10 text entries (user, address, email etc;)
I have a textBox control that lets the user their email address/addresses. The use
I currently have a user control that is used on both an /Address/Edit and
I have created an Address user control which is as follow: <%@ Control Language=C#
Lets say i have 2 Entities, User and Address. Each User has to have
I need to create a user control with form fields for Country (dropdown), Address
I am creating a user control that I would like to be able to
I have a Django project, that has a Address model. This is used in
I have a form below that has required fields and is emailed to the

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.