Yes, alright, Thanks alot for your answer! This looking really hard for beginner, so i gonna use your hint and add another formpage with new fields.
I know, u may be tired of us, but we have the last unresolved issue, maybe u can help us, Richard
switch (this.OptionCategory.CategorySelectionType)
{
case OptionCategorySelectionTypeEnum.Dropdownlist:
LocalizedDropDownList dropDown = (LocalizedDropDownList)this.SelectionControl;
foreach (ListItem item in dropDown.Items)
{
if (item != null)
{
SKUInfo sku = SKUInfoProvider.GetSKUInfo(ValidationHelper.GetInteger(item.Value, 0));
if (sku != null && !string.IsNullOrEmpty(sku.SKUImagePath))
{
item.Attributes.Add("onclick", "jQuery('.fancyboxProductImg').html('<img alt=\"" + sku.SKUName + "\" src=\"" + URLHelper.ResolveUrl(sku.SKUImagePath) + "\" width=\"240\" height=\"240\" />')");
}
}
}
break;
}
Why item.attributes not work in my dropdown menu? mean onclick /onchange methods? this working perfectly with other button types, thought I had made a mistake in adapting, but "item.Text +=" working properly
sorry for the question repeat .
Best regards,
Edward