Im using Ajax cascading dropdown control, After binding all values control doesnt come to sumbit button control...I put a break point on submit button in on click of button control....
[WebMethod]
public CascadingDropDownNameValue[] BindShift(string knownCategoryValues, string category)
{
StringDictionary CompanyList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
BusinessLayer.C_Id = new Guid(CompanyList["Company"]);
StringDictionary LocatinList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
BusinessLayer.L_Id = new Guid(LocatinList["Location"]);
StringDictionary DeptList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
BusinessLayer.depar_Id = new Guid(LocatinList["Department"]);
StringDictionary DesgList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
BusinessLayer.Desg_Id = new Guid(LocatinList["Designation"]);
DataTable dt = BusinessLayer.SelectshiftAttendence();
List<cascadingdropdownnamevalue> ShiftList = new List<cascadingdropdownnamevalue>();
foreach (DataRow row in dt.Rows)
{
string ShiftId = row["Id"].ToString();
string Shift = row["Shift_name"].ToString();
ShiftList.Add(new CascadingDropDownNameValue(Shift, ShiftId));
}
return ShiftList.ToArray();
}
after completeion of above metod load the dropdown...i set a break point in below method
protected void btnsub_Click(object sender, EventArgs e)
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Button Click');", true);
}
But the control doesnt come to the break point after firing the button event