Upload an image with product image selector in custom control

Ali Heristchian asked on May 9, 2016 16:09

Hi,
How can I use "product image selector" form control to upload an image via custom control?
Because value of the form control is empty. I couldn't find any sample.

<%@ Register Src="~/CMSModules/Ecommerce/FormControls/SelectProductImage.ascx" TagPrefix="uc1" TagName="SelectProductImage" %>
<uc1:SelectProductImage runat="server" ID="SelectProductImage" />


Thanks

Recent Answers


Trevor Fayas answered on May 9, 2016 22:10

Are you trying to use the <CMS:Form/> (or is it <CMS:FormControl/> ...) on an ASCX page? or are you just trying to use that custom control in a Form element? Can you provide a little more context?

1 votesVote for this answer Mark as a Correct answer

Ali Heristchian answered on May 10, 2016 07:22

I am using "SelectProductImage.ascx" form control on a custom ASCX user control. My goal is to save a SKU on a live site page.

<%@ Register Src="~/CMSModules/Ecommerce/FormControls/SelectProductImage.ascx" TagPrefix="uc1" TagName="SelectProductImage" %>
<uc1:SelectProductImage runat="server" ID="SelectProductImage" />

Thanks

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.