Hello Friends,
I am using dropdownlist (listitem) for showing months and year,my aim is to according to selection of two dropdown list my data will bind with dataview,it nt showing error but my desired data not retrive,
can you plz suggest me wat i ll do.....
Code:
using
public
{
WelcomeName = Session[
Label2.Text = Date.ToString(
Label3.Text = Date.ToString(
}
cmd.CommandText =
cmd.CommandType =
cmd.Connection = conn;
mparam =
mparam.Value = lstmonth.SelectedValue;
yparam =
yparam.Value = lstyear.SelectedValue;
cmd.Parameters.Add(mparam);
cmd.Parameters.Add(yparam);
cmd.Connection.Open();
dr = cmd.ExecuteReader(
GridView1.DataSource = dr;
GridView1.DataBind();