Assigning values to the lable through database depending on listbox values
- by SurajVitekar
I want to assign the values of five labels from database regarding to values selected in listbox.
The db query returns single column with multiple records.
Please help.
I'm working with C# 2010 and MS SQL.
My current code is:
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
String c1, c2;
c1 =…