C# Programming
08-24-2009, 11:09 AM
OleDbCommand cmd1 = new OleDbCommand("select Group_id from Group_details where group='" + descriptiondpdwnlist.SelectedItem .Value + "'", con1);
dr = cmd1.ExecuteReader();
I am selecting a value from dropdownlist and comparing it to group field in table-group_details and group is selected from it ...But why is this error coming?"syntax error near where clause"
dr = cmd1.ExecuteReader();
I am selecting a value from dropdownlist and comparing it to group field in table-group_details and group is selected from it ...But why is this error coming?"syntax error near where clause"