c# - FormCollection Fetch elements by data Attributes -


how attibutes of formcollectionin actionmethod. form contains many inputs logically grouped data-* attribute. based on data attribute, need fetch elements formcollection.

eg:

<input type='text' data-group='groupa' name='inp1' /> <input type='text' data-group='groupa' name='inp2' /> <input type='text' data-group='graupb' name='inp3' /> 

in action method

public actionresult(formcollection fc) {   --how fetch elements in groupa alone   } 
  1. how fetch elements in groupa alone?

any ideas?


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -