Author: macupryk | Posted on: 6/6/2008 4:38:23 PM | Views : 314

 [WebMethod]
    [System.Web.Script.Services.ScriptMethod]
    public AjaxControlToolkit.CascadingDropDownNameValue[] GetCountries(string knownCategoryValues, string category)
    {
        List<CascadingDropDownNameValue> countryList = new List<CascadingDropDownNameValue>();

        DataSet dsCountry = Country.GetCountries();
        foreach (DataRow row in dsCountry.Tables[0].Rows)
        {
            countryList.Add(new CascadingDropDownNameValue(row["Country"].ToString(), row["CountryID"].ToString()));
        }

        return countryList.ToArray();
    }

// register.ascx
///////////////////////////////////////////////////////////////////
 Country:
  & ...

Go to the complete details ...