Technical support This forum is closed.
Version 1.x > Technical support > Compilation error when clicking image View modes: 
User avatar
Member
Member
mhchew - 6/22/2006 2:20:08 PM
   
Compilation error when clicking image
Hi,
I have the following error when I clikc the image under the product imagegallery. I went to the product image gallery, it display 4 images in a row, I click one of them and the error occur. Pls help.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

CS0118: 'Kentico.CMS.CMSControls.InlineUserControl' denotes a 'class' where a 'variable' was expected

Line 1: <%@ Control %>
Line 2: <%# DataBinder.Eval(Container, "DataItem.FileTitle") %><br/>
Line 3: <a href="javascript:void(window.open('<%# ResolveUrl("~/getfile.aspx?nodeid=" + Convert.ToString(DataBinder.Eval(Container, "DataItem.NodeID"))) %>'));",'','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=320,height=320,left=0,top=0'))"><img class="ImageGalleryDetailImage" src='<%# ResolveUrl("~/getfile.aspx?nodeid=") + Convert.ToString(DataBinder.Eval(Container, "DataItem.NodeID")) + "&maxsidesize=" + CType(Parent.Parent.Parent.Parent, Kentico.CMS.CMSControls.InlineUserControl).Parameter %>' alt='<%# DataBinder.Eval(Container, "DataItem.FileTitle") %>'/></a><br/>
Line 4: <%# DataBinder.Eval(Container, "DataItem.FileDescription") %>
Line 5: <br>


Source File: C:\Inetpub\wwwroot\KenticoCMS\CMSDESK\Metadata\CMS\ImageGallery\Transformations\Detail.ascx Line: 3


thanks
rgds

User avatar
Guest
admin - 6/24/2006 12:38:26 PM
   
Re: Compilation error when clicking image
Hello,

Thank you for your message. Could you please write which version of Kentico CMS (build number, C#/VB, 2003/2005) you are using?\

Thank you.

Best Regards,

User avatar
Member
Member
mhchew - 6/25/2006 10:58:22 AM
   
Re: Compilation error when clicking image
Hi,
I am using Kentico 1.9 C#, 2003.

Thanks.

rgds

User avatar
Guest
admin - 6/27/2006 5:18:07 PM
   
Re: Compilation error when clicking image
Hello,

Thank you for your details. I'm not sure why this doesn't work on your machine as it's working corrently at us, but anyway, there was a bug. You may need to modify the control C:\Inetpub\wwwroot\KenticoCMS\CMSDESK\Metadata\CMS\ImageGallery\Transformations\Detail.ascx like this:

<%@ Control Language="C#" %>
<%# DataBinder.Eval(Container, "DataItem.FileTitle") %><br/>
<a href="javascript:void(window.open('<%# ResolveUrl("~/getfile.aspx?nodeid=" + Convert.ToString(DataBinder.Eval(Container, "DataItem.NodeID"))) %>'));",'','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=320,height=320,left=0,top=0'))"><img class="ImageGalleryDetailImage"
src='<%# ResolveUrl("~/getfile.aspx?nodeid=") + Convert.ToString(DataBinder.Eval(Container, "DataItem.NodeID")) + "&maxsidesize=" + ( (CorporateSite.ImageGalleryDetail) Parent.Parent.Parent.Parent).Parameter %>' alt='<%# DataBinder.Eval(Container, "DataItem.FileTitle") %>' /></a><br/>
<%# DataBinder.Eval(Container, "DataItem.FileDescription") %>
<br>

Please let me know if I can be of any further help.

Best Regards,