asp.net mvc 3 - Mutually exclusive search options on MVC 3 view -
asp.net mvc 3 - Mutually exclusive search options on MVC 3 view -
i'm working view utilize 2 sets of search options , know if there improve way i'm headed.
on right hand side search username, lastname on left hand side search entity type or entity name results should returned grid below search.
i've considered may need 2 forms on view not sure if right direction. 2 partial views each own form better? if so, how info returned main view?
i'm trying maintain simple posting controller actions , returning views instead of bunch of confusing jquery.
currently have model 2 sub-models each define search fields allow user come in info textboxes.
what proper way handle in mvc 3?
you can utilize 2 partial views if going re-use forms on other views or if want encapsulate view code. suggest 2 forms post different controller actions 'searchperson(model), searchentity(model). both actions can homecoming mutual 'results' view model 'searchresults' view.
asp.net-mvc-3
Comments
Post a Comment