Hi,
In my application for each postback dropdownitems are repeating . when I put ddProjectsEmployees(); in Ispostback() then it is not showing any employee names in dropdown
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindDropDownListData();
//ddProjectsEmployees();
}
ddProjectsAmount();
ddProjectsEmployees();
}
public void BindDropDownListData()
{
using (SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["test"].ConnectionString))
{
using (SqlCommand cmd = new SqlCommand("Select distinct ProjectName from ProjectsTable", cn))
{
cn.Open();
using (SqlDataReader rdr = cmd.ExecuteReader())
{
ddlProjectNa ...
Go to the complete details ...