ASP.NET MVC lookup for form field -


we've got asp.net mvc-based business form multiple text boxes fill out (e.g. use-case "register person" -> form contains: name, ..., father, mother, ...)

the data entry clerk should not forced input father/mother himself, should able search person in system. not enough have kind of autocomplete field or popup, should able make use of full-fledged search page implemented (person controller has searchindex & searchperson action, user has kind of search options).

the final ui should this: register person form has button "select father" switches ui search page, user searches person , has ability click "select" on row in result table returns ui register person form, father-data filled read-only fields (hidden id, name & birth date visible not editable).

our problem/question: recommended way to

a) save entered data in original form when opening search form? necessary open search form in jquery dialog iframe inside stay on same page , not lose entered data?

b) how return selected id original form , pre-fill readonly text boxes?

i hope know we're trying achieve, otherwise please comment , clarify question.

i implement new , use jquery ui dialog search , and selection. may/should refactor existing search system support different uis purpose or code new one.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -