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

  • Home
  • SEARCH
  • 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 8246973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:41:11+00:00 2026-06-07T22:41:11+00:00

I am working on a page that has a dynamically generated markup. And as

  • 0

I am working on a page that has a dynamically generated markup. And as such, I have no idea what fields are available on the form. So instead of creating a view model, the POST method uses the FormCollection. Once the POST is received, the program runs quickly.

My problem: Clicking SUBMIT on the form will take about 10 – 15 seconds to hit a breakpoint on the first line of the POST action in the controller. In my scenario, there are 800 input fields on the form. Does it really take this long to create the FormCollection for only 800 fields? Are there any ways to streamline the process or improve the response time?

EDIT:

The IE profiler indicates the majority of time is spent in the JQuery CSS selector. If I remove all CSS, the page works very quickly. Why is the CSS selector running prior to posting back to the server? Can I disable it?

EDIT 2:
The profiler is now showing time spend in JQuery 1.6.4.min.js, the function is ‘k’. I think that is just an internal varialble lookup. I have also found that removing the ‘size’ and ‘maxlength’ attributes from the input fields makes the page respond quickly (hooray)… except… I need those for client side validation. I’m still trying to find a way to improve the speed, or remove the attributes and retain some way to limit the input length of the fields on the client side.

Edit 3:
I’ve dug into the jquery-1.6.4.min.js and found function k. Per Edit 2, adding/removing the ‘maxlength’ and ‘size’ attributes makes all the difference (33K ms instead of 3k ms). However, function K should not do much… as those are not nodetype===1 and the first IF should fail, returning out of the function on the next line.

function k(a,c,d)
    {
        if(d===b&&a.nodeType===1)
        {
            var e="data-"+c.replace(j,"-$1").toLowerCase();
            d=a.getAttribute(e);
            if(typeof d=="string")
            {
                try
                {
                    d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)
                }
                catch(g){}
                f.data(a,c,d)
            }
            else 
                d=b
        }
        return d
    }
  • 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-07T22:41:13+00:00Added an answer on June 7, 2026 at 10:41 pm

    From comments with Mystere Man, it turns out somehow the client side was validating, this link solved the issue: http://forums.asp.net/t/1523883.aspx/1/10?Disabling+client+side+validation+on+submit+button+

    Basically, I disabled the validation on the submit button. This allows the ‘maxlength’ and ‘size’ attributes to work when the user types, but prevents any client side validation on the POST. This behavior seems fine, as the server will validate again as the input is processed. The average time for the POST changed from 33 seconds to 2 seconds.

    Also here: Disable client-side validation in MVC 3 "cancel" submit button

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

Sidebar

Related Questions

I'm creating a page that has some dynamically generated images built from data that
I am working with php and want to have a page that has a
I have an ASP.NET page that has dynamically created LinkButton elements. Please note that
I have a page that has 3 used controls that are dynamically added to
I'm working on a site that has a dynamically generated FAQ and I'm trying
I'm working on a page that has three divs next to each other, each
I'm working on a page that has some ads on it. One of them
I am currently working on a page that has a date picker for one
I'm working on a PHP dynamic web page that has a <textarea> element that
I am working on a web page that has a large number of tables.

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.