hi everyone..
i do have pasted my code in this post.. i am retrieving some data from the database and viewing it in the grid view. i do retrieve an image/pic along with the other data in the same grid view ...when the user clicks on this image , it should transfer the user to some other page and this image should be displayed over there.. for example, if you goto eurocalling card site, when you click on the card (image/pic) it will take you to another pop-up window , with the card details... in my project i have to do like that....can u help me out to sort this issue plz...waiting for your reply... (plz help me out in
VB code)..i do have stored the image in the database as filename.
<asp:DataList
ID="DataList1"
Forecolor="white"
AutoGenerateColumns="False"
EnableViewState="False"
CellPadding="10"
Runat="Server" style="z-index: 112; left: -46px; position: absolute; top: 24px" Height="290px" Width="189px">
<HeaderTemplate>
<table border=1 cellpadding=4>
<tr bgcolor="#eeeeee">
<th width="200">image</th>
<th width="100">card name</th>
<th width="200">Calling from</th>
<th width="200">Calling to </th>
<th width="200">Price</th>
<th width="200">Quantity</th>
<th width="200">Details</th>
<th width="200">Add to Basket</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><img src="<%#DataBinder.Eval(Container.DataItem,"pictur e1")%>" width="90" Height="90"
onclick="image_click" ></img></td>
<td><%#DataBinder.Eval(Container, "DataItem.cardname")%></td>
<td><%#DataBinder.Eval(Container, "DataItem.country")%></td>
<td><%#DataBinder.Eval(Container, "DataItem.destination")%></td>
<td><%#DataBinder.Eval(Container, "DataItem.price1")%></td>
<td> 1 </td>
<td><%#DataBinder.Eval(Container, "DataItem.details1")%></td>
<td><asp:Button ID="Button2" Text="Add to Cart" runat="server"
OnCommand="AddToCart"
CommandName='<%# Container.DataItem("picture1")%>'/>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Datalist>
Sub image_click(ByVal Src As Object, ByVal Args As CommandEventArgs)
PassedValues.Text = Args.CommandName
Response.Redirect("description.aspx?picture1" & PassedValues.Text)
End Sub
trainee