Coucou,
Alors voila impossible d'avoir mes données dans ma DropDownList.
J'ai mon Webservice :
Code C# :
[WebMethod]
[System.Web.Script.Services.ScriptMethod]
public CascadingDropDownNameValue[] ChargerVille()
{
DataDataContext oville = new DataDataContext();
var Query = from p in oville.villes select p;
return Query.ToArray<CascadingDropDownNameValue>();
ainsi que mon code ASP :
<asp:DropDownList ID="DDLVille" Font-Size="X-Small" runat="server" Height="16px"
Width="160px">
</asp:DropDownList>
Code ASP.NET :
<cc1:cascadingdropdown id="CascadingDropDown1" runat="server" TargetControlID="DDLVille"
Category="ville" PromptText="VILLE" LoadingText="[Chargement...]" ServicePath="CityService.asmx"
servicemethod="ChargerVille" >
</cc1:cascadingdropdown>
J'ai ma table "ville" avec id et nom.
Mais ça ne fonctionne pas, quest ce que j'aurais zappé ?
Merci.