Tuesday, February 20, 2024

Two dropdowns with changing value from one - asp.net

 at page load

{
LoadCourtsByCourtTypeId(0);
}
protected void ddlTypeOfCourt_SelectedIndexChanged(object sender, EventArgs e)
        {
            LoadCourtsByCourtTypeId(long.Parse(ddlTypeOfCourt.SelectedValue));
        }
            
            if (courtApplicationDatesDTO != null && courtApplicationDatesDTO.DatesId > 0)
            {
            LoadCourtsByCourtTypeId(long.Parse(ddlTypeOfCourt.SelectedItem.Value));
                ddlNameOfCourt.SelectedValue = courtApplicationDatesDTO.CourtId.ToString();
            }

No comments:

Post a Comment