Is there a way that i can send a parameter to the webservice of the cascading dropdown?
<cc1:CascadingDropDown ID="ddlSijil_CascadingDropDown" runat="server" PromptText="Sila Buat Pilihan"
TargetControlID="ddlSijil" Category="Sijil" ServicePath="~/WebService.asmx" ServiceMethod="GetSijil">
</cc1:CascadingDropDown>
here's the webservice
Public Function GetNegeriPemohon( _
ByVal knownCategoryValues As String, _ByVal category As String) As _
CascadingDropDownNameValue()Dim values As New System.Collections.Generic.List( _
Of AjaxControlToolkit.CascadingDropDownNameValue)Dim ds As DataSet ds = HttpContext.Current.Cache("Car")
If ds Is Nothing Then
Dim connectionString As String
connectionString = _
WebConfigurationManager.ConnectionStrings( _"Conn").ConnectionString
Dim conn As New SqlConnection(connectionString)Dim comm As New SqlCommand("SELECT * " & _
" FROM Car where OfficerId = '" & ddl.selecteditem.text & "' ")
Dim ad As New SqlDataAdapter(comm)ds = New DataSet
ad.Fill(ds)
HttpContext.Current.Cache.Insert("Car", ds)
Else
ds = CType(HttpContext.Current.Cache("Car"), DataSet)
End If
For Each row As DataRow In ds.Tables(0).Rows
values.Add(New CascadingDropDownNameValue( _
row("Car"), row("CarID")))
Next
Return values.ToArray
End Function