I have a form tha contains a TreeView with many Textboxes in each node. the TreeView created dynamically with Razor and I don’t know the name or ID of textboxes.
How can I get the value and id of all textboxes in the controller in MVC3 ?
I have a form tha contains a TreeView with many Textboxes in each node.
Share
I would use the
FormCollectionclass. Read about it here http://msdn.microsoft.com/en-us/library/system.web.mvc.formcollection.aspxIn your controller;
This allows you to gain access to any of the keys posted.