问题描述
我需要验证ajax级联下拉列表.请参阅下面的代码.这是行不通的.任何人都可以帮忙.我使用VS2008.谢谢
>< asp : DropDownList ID ="ddlTest" 符文 =服务器" 宽度 = 131> </ asp : DropDownList >
<asp:DropDownListID="ddlTest" runat="server" Width="131px"></asp:DropDownList>
>< asp : RequiredFieldValidator ID ="rfvddlTest" 运行 =服务器"
<asp:RequiredFieldValidatorID="rfvddlTest"runat="server"
ControlToValidate ="ddlTest" ErrorMessage =此字段为必填项" "> InitialValue =&";-1" ValidationGroup ="Submit"> * </ asp : RequiredFieldValidator >
ControlToValidate="ddlTest"ErrorMessage="This field is Required"InitialValue="-1"ValidationGroup="Submit">*</asp:RequiredFieldValidator>
>< cc1 : CascadingDropDown ID ="cddlTest" 运行 =服务器" 类别 =测试"
<cc1:CascadingDropDownID="cddlTest"runat="server"Category="Test"
LoadingText =加载中". PromptText ="-选择-" ServiceMethod =" GetTestData"
LoadingText="Loading.."PromptText="-- Select --" ServiceMethod="GetTestData"
ServicePath ="〜/ddlTestData.asmx" TargetControlID ="ddlTest" >
ServicePath="~/ddlTestData.asmx"TargetControlID="ddlTest">
</ cc1 : CascadingDropDown >
</cc1:CascadingDropDown>
推荐答案
与Web开发相关的问题在该论坛中已经解决.该问题的正确位置应该是ASP.NET Ajax论坛,
The Web Dev related issues are offtopic in this forum. The right place for the issue should be ASP.NET Ajax forum,
http://forums.asp.net/1007.aspx
最诚挚的问候,
纪周
这篇关于如何验证Ajax级联下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!