Hi,
In the coding it shows the following error.
public void getdata()
{
DataTable dt=new DataTable ();
SqlConnection con=new SqlConnection ("data source=mars-104;initial catalog=marsweb;integrated security=true");
con .Open ();
SqlCommand cmd=new SqlCommand ("select compname,compaddress,invoiceno,orderno,ondate,invoicedate,netamount,netvat,tamount from tbl_Report2 WHERE invoiceno=@invoiceno )",con );
SqlDataAdapter da=new SqlDataAdapter (cmd );
cmd.Parameters.AddWithValue("@invoiceno");//error shows here
da .Fill (dt );
Best,
Sudheep.