本文介绍了指数超出范围。必须是非负数且小于collection.Parameter name:index的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
可以帮我解决这个问题吗?将数据绑定到下拉列表。
html代码
hican any one help me to solve this? am binding data to dropdownlist.
html code
<telerik:RadComboBox ID="cmbEPS" runat="server" Height="22px" Width="200px">
<ItemTemplate>
<div onclick="StopPropagation(event)">
<asp:TreeView ID="tvWBS" runat="server" NodeStyle-NodeSpacing="2px"
ShowLines="true">
<HoverNodeStyle CssClass="CustomNodeColor" />
<SelectedNodeStyle BackColor="#5B5B5B" ForeColor="White" HorizontalPadding="3px" />
<NodeStyle ForeColor="#000000" />
</asp:TreeView>
</div>
</ItemTemplate>
</telerik:RadComboBox>
<asp:RequiredFieldValidator ID="rfvActivityGroup" runat="server" ControlToValidate="cmbActivityGroup"
Display="None" ErrorMessage="Select EPS" SetFocusOnError="True" ValidationGroup="g"
Visible="true"></asp:RequiredFieldValidator>
.................... .................................................. .................................................. .................................................. ................................
in .cs
.......................................................................................................................................................................................................
in .cs
RadComboBox cmbEPS = (RadComboBox)phDynamic.FindControl("cmbEPS");
if (cmbEPS !=null)
{
RadTreeView rtvEPS = (RadTreeView)cmbEPS.Items[0].FindControl("rtvEPS");//in this line am getting error..
谢谢
thank you
推荐答案
这篇关于指数超出范围。必须是非负数且小于collection.Parameter name:index的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!