protected void ddlProjects_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlProjects.SelectedValue != "-1")
{
CurrentPage = 1;
Asc = true;
SortExpression = "SortId";
BindProjectBugs();
ScriptManager.RegisterStartupScript(this, this.GetType(), "ErrorsInProjects", "ShowHideArea('dropdown');ShowArea('bugs');", true);
this.lblBugsCount.Text = "Брой активни грешки: " +
ProjectsDBManager.GetBugsCountByProject(this.ddlProjects.SelectedItem.Text);
}
else
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "ErrorsInProjects", "ShowHideArea('dropdown');", true);
}
}