Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <asp:Repeater ID="rpProducts" runat="server">
  2. <ItemTemplate>
  3. <td> <div class="btn-ud" ><a href="<%#Eval("ProductID") %>" data-toggle="modal" data-target="#myModal2" class="btn btn-custom-3 btn-sm"/ >Detay</a> </div> </td>
  4. </ItemTemplate>
  5. </asp:Repeater>
  6.  
  7. <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-hidden="true">
  8. <asp:Repeater ID="rpProductDetails" runat="server">
  9. <ItemTemplate>
  10. <tbody>
  11. <td height="100px"> <%#Eval("ProductDetails")%> </td>
  12. <td height="100px"> <%#Eval("ProductDetails")%> </td>
  13. </tbody>
  14. </ItemTemplate>
  15. </asp:Repeater>
  16. </div>
  17.  
  18. DataTable dtProductsDetails = system.GetDataTable("Select p.*, c.CategoryName, sc.CategoryName as SubCategoryName from TBLPRODUCTS p left join TBLCATEGORIES c on p.CategoryID = c.CategoryID left join TBLCATEGORIES sc on c.SubCategoryID = sc.CategoryID where p.ProductID = ProductID");
  19. if (dtProductsDetails.Rows.Count > 0)
  20. {
  21. rpProductDetails.DataSource = dtProductsDetails;
  22. rpProductDetails.DataBind();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement