no overload for method takes gridviewfetch '0' arguments....

Aug 21 2010 8:50 AM
someone please solve this prolem.....i am getting error like "no overload for method takes gridviewfetch '0' arguments...."
 
i am sending  code below....

The class file code is..
 public DataTable gridviewfetch(int sr_no, string contractor_name, string labour_name, string shift, string entry_time, string exit_time, string location, string job_desc, string start_time, string end_time, string OT_from, string OT_end, string OT_reason)
    {
        library lib = new library();
        DataTable dtdetailview = new DataTable();
        dtdetailview = lib.GetconDetail(sr_no);
        return dtdetailview;

 
    }


and aspx.cs page code is ....

private void fillgrid()
    {
        DataTable dttab = cons.gridviewfetch();

        if (dttab.Rows.Count > 0)
        {
            GridView1.DataSource = dttab;
            GridView1.DataBind();
        }

i am getting error like "no overload for method takes gridviewfetch '0' arguments...." I tried like took 0 argument  also.
like 

     public DataTable gridviewfetch()
    {
    }

please solve that problem....
thanks....




Answers (1)