I am stuck again, I have a detailsview image from a sql dbase, when clicked I would have a other picture from dbase presented in a new screen.
I don't know how to get a click event handle to the Imagefield (in detailsview)
I tried using image button but it seems this control does not allow a dataImgUrlfield like the Imagefield. So picking up the picture from dbase here is problematic.
This my detailsview :
Code:
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
DataKeyNames="Id" DataSourceID="SqlDataSource1" Height="500px" Width="500px"
GridLines="None" onitemcommand="DetailsView1_ItemCommand">
<Fields>
<asp:ImageField DataImageUrlField="ImgMainM" ControlStyle-Height="500" ControlStyle-Width="500" />
</Fields>
</asp:DetailsView>
does anyone know how to pick up the click event and present another picture in the new screen?
Thanks,
Erik