Repeater javascritpt checkitem

 

    < asp:Repeater ID = " RepeaterProductRelations "  runat = " server " >
                                            
< HeaderTemplate >
                                                
< table width = " 100% "  cellpadding = " 0 "  cellspacing = " 0 " >
                                                    
< tr >
                                                        
< td colspan = " 3 "  style = " text-decoration: underline; " >                                               </ td >
                                                    
</ tr >
                                            
</ HeaderTemplate >
                                            
< ItemTemplate >
                                                
< tr >
                                                    
< td style = " width: 25px; vertical-align: top; " >
      
                                                        
< asp:CheckBox ID = " ckbProductID "  runat = " server "  AutoPostBack = " False "  onclick =<% " CheckItemsss(this,' "   +  DataBinder.Eval(Container.DataItem,  " productPrice " + " '); " %>
                                                            Visible
= ' <%# Page.User.Identity.IsAuthenticated %> '   />
                                                        
< asp:HiddenField ID = " hidProdcutID "  runat = " server "  Value = ' <%# Eval("productId") %> '   />
                                                    
</ td >
                                                    
< td style = " vertical-align: top; " >
                                                        
< a href = " prDetails.aspx?pId=<%# DataBinder.Eval(Container.DataItem,  " productId " )%> "
                                                            style
= " text-decoration: none; color: #5e5e5e; " >
                                                            
<% # DataBinder.Eval(Container.DataItem,  " productNumber " ) %>
                                                        
</ a >
                                                    
</ td >
                                                    
< td >
                                                        
< a href = " productDetails.aspx?pId=<%# DataBinder.Eval(Container.DataItem,  " productId " )%> "
                                                           
>
                                                            
<% # DataBinder.Eval(Container.DataItem,  " productName " ) %>
                                                        
</ a >
                                                    
</ td >
                                                    
< td  >                                                          < asp:Label ID = " LabelProductOutPrince "  runat = " server "  Visible = ' <%# Page.User.Identity.IsAuthenticated %> '
                                                            Text
= ' <%# DataBinder.Eval(Container.DataItem, "productOutPrice")%> ' ></ asp:Label >
                                                    
</ td >                                          
                                                
</ tr >
                                            
</ ItemTemplate >
                                            
< FooterTemplate >
                                                
</ table >
                                            
</ FooterTemplate >
                                        
</ asp:Repeater >

 
< div style = " text-align: right " >
                                            total:
< asp:Label ID = " lblTotal "  ForeColor = " #9e3026 "  runat = " server "  Visible = " false " ></ asp:Label >
                                            
< asp:Button runat = " server "  ID = " btnAddToCart "  Text = " btnAddToCart "  Visible = " false "  OnClick = " btnAddToCart_Click "   />
         
</ div >



Code

你可能感兴趣的:(check)