如何在asp.net vb中的aspx页面中调用asmx页面 [英] How do I call asmx page in aspx page in asp.net vb
本文介绍了如何在asp.net vb中的aspx页面中调用asmx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< asp:ScriptManager ID = ScriptManager1 runat = server >
< 服务 >
< asp:ServiceReference 路径 < span class =code-attribute> = 〜/ WebService.asmx < span class =code -attribute> / >
< /服务 >
< / asp:ScriptManager >
< span class =code-keyword>< asp:UpdatePanel ID = UpdatePanel1 runat = server >
< ContentTemplate >
< dx:ASPxComboBox ID = combocusid runat = 服务器 >
< / dx:ASPxComboBox >
< / ContentTemplate >
< / asp:UpdatePanel >
< asp:DropDownList ID = dd2 runat = 服务器 宽度 = 124px > < / asp:DropDownList >
< ajax:CascadingDropDown ID = ccd1 < span class =code-attribute> runat = server 类别 = id TargetControlID = dd2 PromptText = 选择 LoadingText = 正在加载.. ServicePath = WebService.vb.asmx ServiceMethod = methodfirst >
< / ajax: CascadingDropDown >
我的值没有显示在下拉列表中dd2
没有值显示在我的下拉列表中
我的网络服务在浏览器中显示方法
但它没有显示在aspx页面中
任何人都可以帮我出来请在dd2中显示值
解决方案
尝试下面<登记/>
<预郎= HTML> <跨度类= 代码关键字>< 跨度> <跨度类= 代码leadattribute> AJAX:CascadingDropDown 跨度> <跨度class =code-attribute> ID = ccd1 runat = server
TargetControlID = dd2
类别 = id
LoadingText = 正在加载......
ServicePath = WebService.asmx
ServiceMethod = methodfirst / >
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path ="~/WebService.asmx" />
</Services>
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<dx:ASPxComboBox ID="combocusid" runat="server">
</dx:ASPxComboBox>
</ContentTemplate>
</asp:UpdatePanel>
<asp:DropDownList ID="dd2" runat="server" Width="124px"></asp:DropDownList>
<ajax:CascadingDropDown ID="ccd1" runat="server" Category="id" TargetControlID="dd2" PromptText="Select " LoadingText="Loading .." ServicePath="WebService.vb.asmx" ServiceMethod="methodfirst">
</ajax:CascadingDropDown>
my values are not showing in dropdownlist dd2
no values are showing in my dropdownlist
my web services is showing method in browser
but its not showing in aspx page
can anyone help me out please to show values in dd2
解决方案
try below
<ajax:CascadingDropDown ID="ccd1" runat="server" TargetControlID="dd2" Category="id" LoadingText="Loading .." ServicePath="WebService.asmx" ServiceMethod="methodfirst"/>
这篇关于如何在asp.net vb中的aspx页面中调用asmx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文