knight1001
Technical User
HELP!!!
Im trying to display the multiple results returned from this query, but can't get it to return them.It can return one ,but not sure how to return them as a list.
Im trying to display the multiple results returned from this query, but can't get it to return them.It can return one ,but not sure how to return them as a list.
Code:
commandpartthree = new OleDbCommand("SELECT [Full Name] FROM Mechanics WHERE [Car No] = @CarNo");
commandpartthree.Connection = connectionpartthree;
connectionpartthree.Open();
commandpartthree.Parameters.Add("@CarNo", OleDbType.VarChar);
commandpartthree.Parameters["@CarNo"].Value = CarNo.Text;
<tr>
<td width="40%" align="right">Please Input The Car No.</td>
<td align="left" colspan="2"><asp:TextBox CssClass="controlText" Width="200" ID="CarNo" runat="server"/></td>
<td width="40%" align="right">Mechanic Name</td>
<td align="left" colspan="2"><asp:TextBox CssClass="controlText" Width="200" ID="TextFullName" runat="server"/></td>
<tr>
<td width="50%" align="left"><asp:Button CssClass="controlText" Width="60" ID="ButtonFetch" Text="Fetch" runat="server"/>