Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:Repeater ID="rpProducts" runat="server">
- <ItemTemplate>
- <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>
- </ItemTemplate>
- </asp:Repeater>
- <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-hidden="true">
- <asp:Repeater ID="rpProductDetails" runat="server">
- <ItemTemplate>
- <tbody>
- <td height="100px"> <%#Eval("ProductDetails")%> </td>
- <td height="100px"> <%#Eval("ProductDetails")%> </td>
- </tbody>
- </ItemTemplate>
- </asp:Repeater>
- </div>
- 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");
- if (dtProductsDetails.Rows.Count > 0)
- {
- rpProductDetails.DataSource = dtProductsDetails;
- rpProductDetails.DataBind();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement