Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
ImageItemBinding
posted

Hi!

I have a WebImageViewer with datasource and in property ImageItemBinding I indicate Key_Field="Id" because when the client select a image i need the value of image, but I get an error:

Unable to cast object of type 'System.Int32' to type 'System.String'.

How can I associate the id of the image in WebImageViewer?

CODE:

 

 

 

 

 

<

 

 

ig:WebImageViewer ID="IVCulinaria" runat="server"

 DataSourceID="SqlDSTest" DataKeyFields="Id" Height="250px" Width="99%"

 

 

 

BorderStyle="None">

 

 

 

<ImageItemBinding AltTextField="Text" ImageUrlField="Image"

 

 

 

ToolTipField="Text" TargetField="Id" />

 

 

 

</ig:WebImageViewer>

Parents
No Data
Reply
  • 5105
    Offline posted

    Hi there

    Can you please attach a more complete sample and we would take a look at this issue for you.

    Thanks a lot for your patience!

Children
No Data