Hi,
I am using the Cascadingdropdown as below
<atlasToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server">
<atlasToolkit:CascadingDropDownProperties TargetControlID="DropDownList1" Category="Principal" PromptText="Please select Principal" LoadingText="[Loading Principals...]" ServiceMethod="GetDropDownContentsPageMethod" />
<atlasToolkit:CascadingDropDownProperties TargetControlID="DropDownList2" Category="MessageType" PromptText="Please select message type" LoadingText="[Loading Message Types...]" ServicePath="" ServiceMethod="GetDropDownContents1" ParentControlID="DropDownList1" />
</atlasToolkit:CascadingDropDown>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server" />
And the code behind is
<WebMethod()> _
Public Function GetDropDownContentsPageMethod(ByVal knownCategoryValues As String, ByVal category As String) As AtlasControlToolkit.CascadingDropDownNameValue()Dim lobjDAL As VOSS.Integrations.Web.DataAccess.XmlAdminTry
lobjDAL = New VOSS.Integrations.Web.DataAccess.XmlAdminReturn lobjDAL.GetRegions(knownCategoryValues, category)Catch ex As ExceptionReturn Nothing
Finally
lobjDAL = Nothing
End Try
End Function
<WebMethod()> _
Public Function GetDropDownContents1(ByVal knownCategoryValues As String, ByVal category As String) As AtlasControlToolkit.CascadingDropDownNameValue()Dim lobjDAL As VOSS.Integrations.Web.DataAccess.XmlAdminTry
lobjDAL = New VOSS.Integrations.Web.DataAccess.XmlAdminReturn lobjDAL.GetDropDownContents2(knownCategoryValues, category)Catch ex As ExceptionReturn Nothing
Finally
lobjDAL = Nothing
End Try
Return Nothing
End Function
Now the first function works and retrieves the values, but the second function does not. I am not using a web service. Do I need to always use a webservice for this. Can both the methods not pick values directly from db?
Pleae assist
Regards
Raj