Hi,
i am binding the data in the gridview as below;
protected
{
lblerror.Text =
pnlmynomn.Visible =
grdawarddet.Visible =
pnlAOQ.Visible =
conn =
conn.ConnectionString = connstr;
cmd =
cmd.Connection = conn;
conn.Open();
cmd.Connection = sqlconn;
cmd.CommandType =
cmd.CommandText =
cmd.Parameters.AddWithValue(
da.SelectCommand = cmd;
da.Fill(ds,
grdawarddet.DataSource = ds.Tables[0];
grdawarddet.DataBind();
}
optionVal = 0;
lblerror.Text = ex.Message;
lblerror.Visible =
conn.Close();
but the error is coming while running the project. please help me in this.
Thanks in advance,
Geetha