2
Reply

MVC Dropdownlist:

Srikanth Reddy

Srikanth Reddy

Nov 15 2014 10:40 PM
633
Hai friends,
 
I am beginner to MVC.
 
I am working on Dropdownlist in MVC.
 
I have added 5 items to dropdownlist using selectlist object.
 
How to print the selected text from dropdownlist in MVC, like selectedindexchanged event  in asp.net?
 
For Ex:
I am having following Items in my dropdownlist:
 
First
Second
Third 
Fourth
 
when the user selects "second".
It should display on the form as :  "You have selected second".
 
Please solve this problem.... Thank you friends. 

Answers (2)