Dynamically inserted input elements not showing up in ActionResult's FormCollection parameter
Posted
by roosteronacid
on Stack Overflow
See other posts from Stack Overflow
or by roosteronacid
Published on 2010-05-20T20:29:43Z
Indexed on
2010/05/20
20:30 UTC
Read the original article
Hit count: 398
asp.net-mvc
|JavaScript
I am adding input elements to a view, dynamically, using JavaScript. But I am unable to find those inputs in my ActionResult's FormCollection
parameter...:
public ActionResult Del(FormCollection fc)
I am able to find static input elements in the View. And using FireBug in Mozilla FireFox, I can see that the inputs are inside of the form element, in the DOM, and are not floating around somewhere random.
How can I access these inputs?
© Stack Overflow or respective owner