Handling variable number of fields in ASP.NET WebForms Page -


i wanted gather methods on how add variable number of fields form (with add new , remove buttons). know asp.net mvc has easy methods, i'm unable find easy methods webforms.

here's i've used far:

  • adding new usercontrol placeholder on postback (i've had fiddle viewstate make work correctly, huge pain)
  • adding new row grid , having template field in grid (works decently kind of awkward)
  • actually having several fields on form default , hiding/showing them dynamically (fairly easy have set number of fields.)

any other methods? thanks!

you can add them javascript , on postback value

request.params["controlid_1"] 

you need convention on controlid naming.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -