我使用Ajax级联下拉控件,绑定后所有值控件都没有来到sumbit按钮控件 [英] Im using Ajax cascading dropdown control, After binding all values control doesnt come to sumbit button control
问题描述
我正在使用Ajax级联下拉控件,绑定后所有值控件都没有来到sumbit按钮控件...我在点击按钮控件上的提交按钮上放了一个断点....
[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 =新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(dt.Rows中的DataRow行)
{
string ShiftId = row [ Id] .ToString();
string Shift = row [Shift_name]。ToString();
ShiftList.Add(new CascadingDropDownNameValue(Shift,ShiftId)) ;
}
返回ShiftList.ToArray();
}
完成上述metod后加载下拉菜单...我在下面的方法中设置了一个断点
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
推荐答案
在这里发布您的代码,没有我们看不到错误
post your code here, without that we can not see the error
这篇关于我使用Ajax级联下拉控件,绑定后所有值控件都没有来到sumbit按钮控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!