when run my code I got this error "Parameters were not supplied for function"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gilberto16
    New Member
    • Feb 2013
    • 1

    when run my code I got this error "Parameters were not supplied for function"

    Code:
     SqlDataAdapter dam = new SqlDataAdapter("select * from calculate_amt where DistrictName='" + DropDownList1.Text + "' and poste='" + DropDownList2.Text + "'", con);
                DataSet dsm = new DataSet();
                dam.Fill(dsm, "amt");
                DataView dvm = new DataView(dsm.Tables["amt"]);
                txtAmt.Text = dvm[0]["amt"].ToString();
Working...