首页 新闻 搜索 专区 学院

listview中当单击Id为btnBuy的按钮时为什么不执行ItemCommand事件

0
悬赏园豆:20 [已关闭问题] 关闭于 2010-09-13 08:55

<asp:ListView ID="lvMedics" runat="server" OnItemCommand="lvMedics_ItemCommand" OnItemDataBound="lvMedics_ItemDataBound"
                    OnPagePropertiesChanging="lvMedics_PagePropertiesChanging">
                    <LayoutTemplate>
                        <asp:PlaceHolder ID="groupPlaceHolder" runat="server"></asp:PlaceHolder>
                    </LayoutTemplate>
                    <GroupTemplate>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </GroupTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# Eval("MedicineId")%>
                            </td>
                               <td>  <script language="javascript" type="text/javascript">  
  $(document).ready(function() {  
   new PopupLayer({trigger:'#ele<%# Eval("Id")%>',popupBlk:'#blk<%# Eval("Id")%>',closeBtn:'#close<%# Eval("Id")%>',useFx:true}); 
    }
  )
                                </script>

                                <div id='emample<%# Eval("Id")%>' class="ecp">
                                    <div id='ele<%# Eval("Id")%>' class="tigger">
                                        购买</div>
                                    <div class="clr">
                                    </div>
                                    <div id='blk<%# Eval("Id")%>' class="blk" style="display: none;">
                                        <div class="head">
                                            <div class="head-right">
                                            </div>
                                        </div>
                                        <div class="main">
                                            <a href="javascript:void(0)" id='close<%# Eval("Id")%>' class="closeBtn">关闭</a>
                                            <asp:TextBox ID="txtNum" Width="60px" runat="server"></asp:TextBox></li>
                                            <asp:Button runat="server" ID="btnBuy" Text="确认" CommandName="BuyFilter" CommandArgument='<%# Eval("Id") %>' />
                                        </div>
                                        <div class="foot">
                                            <div class="foot-right">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:ListView>

问题补充: btnBuy按钮一开始是隐藏的,当单击购买后弹出btnBuy按钮,但是弹出的btnBuy按钮却不能触发ItemCommand事件了???
凭栏处的主页 凭栏处 | 初学一级 | 园豆:45
提问于:2010-09-08 11:10
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册