Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have the table with the list box with display member as name but i want to that when user select the any name from the list box all the value from that name like address and contact get in html editor .but i am only able to show the select name

What I have tried:

                 Email obj = new Email();
             List<Email> lstEmail = abc.Emails.ToList();
            string selected = listBox1.GetItemText(listBox1.SelectedValue);
//            string selected = listBox1.SelectedIndices().ToString();

              htmlEditor1.Html = htmlEditor1.Html.Replace("</BODY>", selected  + "</BODY>");
Posted
Updated 16-Feb-17 0:42am
Comments
Karthik_Mahalingam 14-Feb-17 4:04am    
Not clear.
Member 12999743 14-Feb-17 5:24am    
bro . i have one database which have 4 member and display member in list box is name only .... and i want when ever i click on name in list box i get the complete value from database ;like name, address ,contact,etc,inside the html editor class

1 solution

make AJAX call on List box click or change event with passing Member Primary ID Or name if unique,
fetch all the information like name, address ,contact etc from database and display it in HTML editor.
 
Share this 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