This error shows you that you are trying to (convert int to date time) insert int value to typeof datetime field. It will be easy to find only you post the code from insert part.
This is the code I have written in class file.
The class name is Corporate.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Summary description for Corporate
/// </summary>
public class corporate
{
public corporate()
{
CorporateTableAdapters.CorporateTableAdapter cta = new CorporateTableAdapters.CorporateTableAdapter();
Corporate.CorporateDataTable cdt;
cdt = cta.GetDataByinsertCorporate("pizzahut", "raja", 2365412, "raja@gmail.com", "123456",6/26/2005, 6/26/2005, 6 / 26 / 2005, 1, 6/ 26 / 2006, 1, 6 / 26 / 2006);
}
}
This is the code I am trying to insert the data in the Corporate table. but the error occured as "cannot convert from 'int' to 'System.DateTime' " plz help me if u know the solution.
Thanks & Regards,
kani.z