jquery - Maintain checked state of dynamically generated checkboxlist on auto refresh asp.net mvc 4 -


I have a view called one.cshtml which has another view inside two Named .cshtml . An auto refresh code on a. Csstml page , whose page should only refresh the two.cshtml section, it is working as expected, every 5 Auto refreshes in seconds and only two CSSM is called.

In this way two. Cshtml is called from .cshtml

    

The JavaScript file contains the code for auto-refresh, which is called "two.cshtml" to load

  if (! IsNaN (reload_interval ) & amp; Amp; Reload_Interval & gt; 0) {timer = setInterval (function () ** {$ ('# partialViewTwo)) load ("two"); **}, reload_inverser); }  Problem : If the user has selected the number of 'n' checkboxes, when auto is refreshed, the selection (checkbox check) status disappears.  How do I create checkboxes checked status during Auto Refresh?   

The checkboxes are groups of checkboxes or checkboxes with a single name that are dynamically generated.

I am using ASP.NET MVC 4 and this is my first project in MVC that is used to see me in the webform, but there is nothing like this here.

Please advise.

Thanks

Some browsers will automatically cache form invoices " Complete "attribute, however, I think what you want to do for your case, it is to automatically save the status of the format programmatically before refresh.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -