hi
i have 1datalist in my page that i define link button on it
this is my House_p table
image
|
description
|
Behcode
|
name
|
Id
|
1.jpg
|
11test
|
4444
|
iron
|
1
|
2.jpg
|
11test
|
3333
|
sofa
|
2
|
3.jpg
|
11test
|
2222
|
landury
|
3
|
in my datalist show product name and image
i want when users click on link button it go to Viewproduct.aspx and i want show in viewproduct.aspx data from House_p table according to id and behcode of that product
i know i should use querystring but i don't how i can define that it use id and behcode from database and show that product inormation from database in viewproduct.aspx
<asp:DataList ID="DDLP" runat="server" RepeatColumns="3"
RepeatDirection="Horizontal"
>
<ItemTemplate>
<table class="DDLhp" align="center">
<tr>
<td class="TDHp" align="center">
<div id="DTDHp" align="center">
<asp:image ID="image1" runat="server" CssClass="TPH" ImageUrl='<%#Eval("image","image/house/{0}")%>'/>
</div>
</td>
</tr>
<tr>
<td align="center" style="height:15px">
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Name") %>' CssClass="lblP"></asp:Label>
</td>
</tr>
</tr>
<tr>
<td align="center" style="height:45px ">
<asp:LinkButton ID="LinkButton2" runat="server"
CssClass="LBP3">more information.</asp:LinkButton>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>