Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone...........
i am doing a simple mobile project on mvc4........
i have a login page ..in that i need to display user names in a drop down.... when ever the user selects the user name from drop down...... i need to display the values from different tables in text boxes based on user id ....... the view is an empty view......... can any one help me.........
Posted
Comments
Nelek 12-Oct-12 8:05am    
http://whathaveyoutried.com/[^]

You are just saying specifications, not where you are having problems.

I would suggest the following:
1) Create a controller that returns a json result with the information you need to retrieve.
2) Hook up an ajax call to this new controller that will be called when the trigger value is changed.
3) In the success block of the ajax call populate the UI with the information received form the controller.
4) I would suggest to perform a synchronous call on this.

(And no, I will not provide the code for it, that is for you to do. If you have an issue with that code, feel free to ask a specific question relating to the code and I'll be more than happy to help with that)
 
Share this answer
 
v2
Comments
[no name] 15-Oct-12 5:25am    
can u send me the code for this.......
thans for the solution...........
but how can i hook up an ajax call when ever the dropdown index changed with the id.....
 
Share this answer
 
Comments
Zoltán Zörgő 15-Oct-12 3:28am    
This is not an answer, it is a reply to an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900