Posted on: 5/11/2013 7:53:53 AM | Views : 227

hello friends i m getting error that:
System.Data.SqlClient.SqlException: Error converting data type date to varchar.
because in database coloumn name in datetime and i am taking date in table as varchar.
below is my query 
if (branch == "All" && type == "All") strsql = "select Airwaybill,address1,address2,address3,pincode,[Shipper Name],Pieces from coddatadetails where created_date>='" + txt_fromdate.Text + "' and created_date<='" + txt_todate.Text + "'";
...

Go to the complete details ...