Good Day All
Am using ASP.NET 2.0 and Infragistics 8.2. Now i have a WebImageViewer and am Binding the image like this
this.WebImageViewer1.Items.Add(new Infragistics.Web.UI.ListControls.ImageItem("http://www.regnow.com/vendor/19827/ssplayerboxshot.jpg", "altText", "toolTip"));
its working fine, now what i want to know is , how can i make it that when a User Click the image it should go to the url , the url can be another site and it must open a new window.
Thanks
Hello,
There is a property NavigateUrl for ImageItem object:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.1/CLR3.5/html/Infragistics35.Web.v9.1~Infragistics.Web.UI.ListControls.ListItem~NavigateUrl.html
However it is not included into a constructor.
So, you should first create the ImageItem, then set NavigateUrl property, and then add this item to the Items collection of ImageViewer.
You can also use databinding to bind Items, and the ImageItemDataBinding has property for NavigateUrlField.