日期:2014-05-17  浏览次数:20484 次

CommandName问题
<form id="form1" runat="server">
    <div>
 >
        <asp:ListView 
            ID="lstMovieCategories"
            DataSourceId="srcMovieCategory"
            DataKeyNames="Id"   
            runat="server">
            <LayoutTemplate>
                <div class="categoryContainer">
                <asp:PlaceHolder
                    id="itemPlaceholder"
                    Runat="server" />
                </div>
            </LayoutTemplate>
            <ItemTemplate>
                <div>
                <asp:LinkButton
                    id="lnkSelect"
                    Text='<%# Eval("Name") %>'
                    CommandName="Select"
                    Runat="server" />
                </div>
            </ItemTemplate>
            
   
            <SelectedItemTemplate>
               
                <div id="selected">
                <%# Eval("Name") %>
                <i>yang</i>
                </div>
            </SelectedItemTemplate>
        </asp:ListView>
    
        <br style="clear:both" /><br />
        
        <asp:ListView 
 &nb