Friday, 2 May 2014

passing more than one Eval and querystring to datalist

No comments
<asp:DataList ID="datalistall" runat="server" RepeatColumns="3"
              RepeatDirection="Horizontal" Width="100%" DataKeyField="Product_id" >
          <ItemTemplate>
          <table>
          <tr>
          <td style="border-style:dashed; border-width:thin; width:200px;">   
              <asp:ImageButton ID="imgbtn" runat="server" ImageUrl='<%# "~/img//"+Eval("Image_url") %>' PostBackUrl='<%# "user_product.aspx?pi="+Eval("Product_id")+"&ct="+Eval("Category") %>'/>             
 </td>
          </tr>
          </table>

          </ItemTemplate>
          </asp:DataList>