如何通过下拉列表选择列中具有相同名称的行 [英] how to select rows that have same names in a column through dropdownlist

查看:81
本文介绍了如何通过下拉列表选择列中具有相同名称的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个下拉列表中,我从sql表中排序并绑定了''panch_name''列。一些相同的名称出现在连续的行中。例如,''hari''出现在索引109中,而另一个''hari'出现在索引110中。如果我选​​择第一个''hari through''selectedindexchanged()''它可以工作。再次如果我想在index110中选择另一个''hari'',它不会进入''selectedindexchanged()''函数区域,所以我的目的没有解决。我无法选择index110的第二个''hari''。我使用了以下代码。我知道有什么不对劲。任何人都可以帮助我。



In one of my dropdownlist I sort and bind ''panch_name'' column from a sql table. Some names that are same appear in consequetive rows. For instance, ''hari'' appears in index 109 and again another ''hari'' apears in index 110. If I select the first ''hari through ''selectedindexchanged()'' it works. And again If I want to select another ''hari'' thats in index110 , it is not entering the ''selectedindexchanged()'' function area and so my purpose is not solved. I am unable to select the second ''hari'' of index110. I have used the following code. I know something wrong is there. Can anyone help me out.

<asp:DropDownList ID="DropDownList2" runat="server"

          style="z-index: 1; left: 434px; top: 309px;  position: absolute; height: 20px; width: 145px"

          AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged"  >
    </asp:DropDownList>





谢谢。



Thanks.

推荐答案

U必须选择不同的值名称。然后才能触发
U must be select Different Values names .then only its triggered

这篇关于如何通过下拉列表选择列中具有相同名称的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆