Click here to Skip to main content
15,914,327 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help required.

i want to fill a text based on the value selected in the dropdownlist.
i have a dropdownlist in which i am displaying a field "subject" now i want to fill the textbox by "Body" field against the selected dropdownlist.


please help needed urgent.
Posted
Comments
Sandeep Mewara 31-Mar-11 10:02am    
"dropdownlist" -> Are you talking of ASP.NET?

1 solution

Well, winforms or webforms, all you need is to write the code in the dropdownlist selectionchange event. In the event (which would be raised when you select a different value in your dropdowlist), find the selected value and use it to to get the appropriate body text and assign it to the textbox.

Try!
 
Share this answer
 
Comments
Zia Ullah Khan 31-Mar-11 10:32am    
in asp.net form it is require
Sandeep Mewara 31-Mar-11 10:33am    
Just do as said in the answer. You will be done in no time.
Sergey Alexandrovich Kryukov 31-Mar-11 16:17pm    
Good enough, my 5. I don't believe OP will be done on no time though.
--SA

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