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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:08:21+00:00 2026-05-27T20:08:21+00:00

Is there a size limit that the HTML.Hidden can take ?I have the following

  • 0

Is there a size limit that the HTML.Hidden can take ?I have the following code, which works when i only put ViewData[“key”]=”12345″ but when the “12345 is too much data the htmlfield is empty.

 @Html.Hidden("hid" + param.Parameter.Name, ViewData["hid"+param.Parameter.Name])

And when I add the ViewData[“hid”+param.Parameter.Name] in javascript function to alert the values, the entire string is there.

kind regards

  • 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-27T20:08:22+00:00Added an answer on May 27, 2026 at 8:08 pm

    If you are using HTTP POST verb to submit the form the limit is controlled by the maxRequestLength attribute of the <httpRuntime> element in your web.config. The default value is 4096 KB:

    <httpRuntime maxRequestLength="4096" />
    

    Example:

    @using (Html.BeginForm())
    {
        @Html.Hidden("hid", string.Join("", Enumerable.Range(1, 40000).Select(x => "a")))
        <button type="submit">OK</button>
    }
    

    successfully uploads all the 40K a to the server.

    On the other hand if you are using an HTTP GET verb to submit the form then, since the values are sent in the query string, there will be a limit. This limit will vary across different browsers. IIRC it was around 4K in IE.

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

Sidebar

Related Questions

Is there any limit on the size of data that can be received by
Is there any limit theoretically on the size of file that can be uploaded
There is post on stackoverflow in which it is mentioned that BSON size limit
I heard that there is a hard limit on the size of .Net Array
Do access .MDB files have an upper size limit? Will, for example, applications that
It would appear that there is a size limit on the return value of
I am hoping that you can help me. I have created the following script,
Are there any implementations of a static size hashtable that limits the entries to
Is there any size limit in arraylist used in where in in java named
I was wondering if there is a limit to the size of a single

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.