ASP.NET MVC3: Issue on working with dropdownlist -


I am new to ASP.NET MVC and currently my company is implementing ASP.NET MVC. Here's the scenario I'm struggling to apply: I have to use dropdown list, text box and search button to get all the questions I have a list of items to be listed on the dropdown. I choose I must manually provide value to textbox and all required information must search and generate if it exists. For example: When I click on the dropdown list, it can list the employee's name, employee ID, etc. And if I select the employee's name from the dropdown list, then I have to name it on the text box, Mary Liu, then I'll have to click the search button. This button should check Mary Liu's information and be populated on the screen.

How to map between dropdown list, textbox and button, so that I can select some property on the dropdown list, the value of the property should be typed in the text box, search information and populate ??

Any guidelines have a lot to mean to me.

I think you can use some javascript for this job. You can attach a change event to select using JQuery. In this example (http://api.jquery.com/selected-selector/) the attached work gets the text for every selected option and writes them in 'div', but you have to work with some other arguments Such as obtaining information for MVC controller through our post query, etc.

Comments