I have a dropdownlist
that has an event ddltiempo_SelectedIndexChanged
which has to update a gridview
every time it changes it makes a query to the bd, but only does it the first time
(the dropdownlist already has autopostback true)
This is the code
protected void ddltiempo_SelectedIndexChanged(object sender, EventArgs e)
{
if (valortiempo!= 0)
{
tiempo= dc.Ex_Consultamonto(valortiempo);
}
gvcalendario.DataSource = tiempo.List();
gvcalendario.DataBind();
}