While executing the down lines of my C# controller code I was getting
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
I use linq to sql in my c#.and result show my report form.my reporter is rdlc.
I tried like set the connect Timeout = 0; also, but I get the same error.
How can I solve it?
please help me...thanks.        
private void bt10_Click(object sender, EventArgs e)
{
    {
        Form3 frm3 = new Form3();
        DataSet ds = new DataSet();
        var DB = new DataClasses3DataContext();
        var c1 = (from c in DB.A
                    join r in DB.A1
                    on c.DATE equals r.DATE
                    where c.B.Equals(int.Parse(txtSearch.Text))
                       && (string.Compare(c.DATE.ToString(), txtEdate.Text) <= 0 
                       && string.Compare(c.DATE.ToString(), txtFdate.Text) >= 0)
                       && (c.NO == r.NO)
                       && (c.K == 10)
                       && (c.A == 1)
                       && (r.A == 2)
                       && r.K != 10
                    select c).ToList();    
        dataGridView1.DataSource = c1;
        DataSet2.ADataTable dt = new DataSet2.ADataTable();
        foreach (A item in c1)
        {
            dt.Rows.Add(item.B, item.DATE, item.NO, item.K); 
        }
        if (c1 == null)
        {
            MessageBox.Show("null");
        }
        else
        {
            ds.Tables.Add(dt);
            ReportDataSource rds = new ReportDataSource();
            frm3.reportViewer1.LocalReport.DataSources.Clear();
            rds.Name = "DataSet3";
            rds.Value = dt;
            frm3.reportViewer1.LocalReport.DataSources.Add(rds);
            frm3.reportViewer1.LocalReport.ReportEmbeddedResource = "P10.Report5.rdlc";
            frm3.ShowDialog();
        }
    }
}
 
     
    