Hi ..
i am using gridview to populate the data. in my page i have year dropdownlist. In my page by selecting year and clicking the submit button i will populate the data of that year in gridview.
my requirement is when the user open my page i should display current year data in gridview.In order to do that i should set the current year in dropdown right. How to do that? please responsd to my post
Now my page is working by selecting year its populating the data.
below way i am loading years and populating data.
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!Page.IsPostBack)
{
//loading the years into dropdown
Loadyears();
}
}
catch (Exception ex)
{
throw ex;
}
protected void ddldbyear_Select ...
Go to the complete details ...