Jul 20, 2020

How to handle large form in Asp.Net Core MVC

How to handle large form in asp.net core MVC application.

It is just a simple configuration on Startup.cs file and there are only two line of code we need to add it.

public void ConfigureServices(IServiceCollection services)
        {
            services.Configure(x => x.ValueCountLimit = int.MaxValue);
            services.AddMvc(options =>
            {
                options.MaxModelBindingCollectionSize = 1500;
            });
            services.AddControllersWithViews();
        }


Please below video for more detail.

No comments:

Post a Comment