<td align="right" width="285" valign="top" bordercolor="#ffffff"><asp:datagrid id="Dgproducts" runat="server" autogeneratecolumns="False" cssclass="mainptext"
width="450px" bordercolor="White" borderstyle="None" allowpaging="True" pagesize="3">
<columns>
<asp:templatecolumn>
<itemtemplate>
<table id="Table1" bordercolor="#cc0033" cellspacing="0" cellpadding="0" align="right"
border="1">
<tr>
<td dir="rtl" nowrap bordercolor="#ffffff">
<table id="Table2" cellspacing="0" cellpadding="0" width="265" border="0">
<tr>
<td valign="middle" width="135">
<asp:imagebutton id="Imagebutton2" runat="server" Width="100" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "pic1")%>' CommandName="ViewDetail" Height="70">
</asp:imagebutton></td>
<td valign="middle" width="130">
<table id="Table3" cellspacing="0" cellpadding="0" width="150" border="0">
<tr>
<td class="gtext2" style="COLOR: #cc0033" nowrap width="40" height="20">نام کالا :</td>
<td class="mainptext" nowrap width="90" height="20"><%#DataBinder.Eval(Container.DataItem, "productname")%></td>
</tr>
<tr>
<td class="gtext2" style="COLOR: #cc0033" nowrap height="20">کد کالا :</td>
<td class="mainptext" nowrap height="20"><%#DataBinder.Eval(Container.DataItem, "id")%></td>
</tr>
<tr>
<td class="gtext2" style="COLOR: #cc0033" nowrap height="20">قیمت :</td>
<td class="mainptext" nowrap height="20"><%#DataBinder.Eval(Container.DataItem, "price")%><font class="gtext2" color="#cc0033"> ریال </font></td>
</tr>
<tr>
<td class="mainptext" style="HEIGHT: 18px" nowrap colspan="2" height="18">
<asp:Label id="lblava" Runat="server" text='<%#DataBinder.Eval(Container.DataItem, "availability")%>' Visible="False" cssclass="mainptext2">
</asp:Label>
<asp:label id="lblmsg" cssclass="2" runat="server"></asp:label></td>
</tr>
<tr>
<td nowrap height="20"><a class="gtext2" style="COLOR: blue" href='Details.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id") %>' target="_blank">جزِئیات</a>
</td>
<td nowrap height="20"></td>
</tr>
<tr>
<td class="gtext2" style="COLOR: #cc0033" align="right" colspan="2">تعداد
:
<asp:textbox id="TextBox1" runat="server" width="15px" height="15px"></asp:textbox> </td>
</tr>
</table>
<asp:button id="adtobasket" cssclass="mainptext2" width="122px" bordercolor="CadetBlue" commandname="Add"
height="22px" runat="server" text="به سبد خرید من اضافه کن" backcolor="LightSteelBlue"></asp:button></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="mainptext" dir="rtl" nowrap bordercolor="#ffffff" align="right"></td>
</tr>
</table>
<br>
<br>
</itemtemplate>
</asp:templatecolumn>
</columns>
<pagerstyle forecolor="#C000C0" position="TopAndBottom" cssclass="mainptext" wrap="False" mode="NumericPages"></pagerstyle>
</asp:datagrid>