Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
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
Posted
Updated 8-May-14 20:13pm
v3
Comments
[no name] 9-May-14 1:39am    
show your code
phmani469 9-May-14 2:13am    
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....<br>
[WebMethod]<br>
public CascadingDropDownNameValue[] BindShift(string knownCategoryValues, string category)<br>
{<br>
StringDictionary CompanyList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);<br>
BusinessLayer.C_Id = new Guid(CompanyList["Company"]);<br>
StringDictionary LocatinList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);<br>
BusinessLayer.L_Id = new Guid(LocatinList["Location"]);<br>
StringDictionary DeptList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);<br>
BusinessLayer.depar_Id = new Guid(LocatinList["Department"]);<br>
StringDictionary DesgList = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);<br>
BusinessLayer.Desg_Id = new Guid(LocatinList["Designation"]);<br>
 <br>
DataTable dt = BusinessLayer.SelectshiftAttendence();<br>
List<cascadingdropdownnamevalue> ShiftList = new List<cascadingdropdownnamevalue>();<br>
foreach (DataRow row in dt.Rows)<br>
{<br>
string ShiftId = row["Id"].ToString();<br>
string Shift = row["Shift_name"].ToString();<br>
ShiftList.Add(new CascadingDropDownNameValue(Shift, ShiftId));<br>
}<br>
return ShiftList.ToArray();<br>
}<br>
 <br>
<br>
after completeion of above metod loads the dropdown...i set a break point in below method<br>
 <br>
<pre lang="cs">protected void btnsub_Click(object sender, EventArgs e)<br>
{<br>
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Button Click');", true);<br>
}</pre><br>
 <br>
But the control doesnt come to the break point after firing the button event

1 solution

post your code here, without that we can not see the error
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900