I created a new unique ID in the OnContentLoaded event and I was able to set different content in different webparts.
The problem now is that I can see the content as long as I'm logged in. If I open the same URL with another browser or log off, I won't see anything. Can you explain me why, please?
Update: I applied the advice "make also sure to use Editable text/Editable image web parts in your web part" and everything worked fine. The new code is:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ImageBox.ascx.cs" Inherits="CMSWebParts_aduno_gruppe_ImageBox" %>
<%@ Register src="../Text/editableimage.ascx" tagname="editableimage" tagprefix="uc1" %>
<%@ Register src="../Text/editabletext.ascx" tagname="editabletext" tagprefix="uc2" %>
<div class="imageBlock">
<div class="imageBlock"><uc1:editableimage ID="Banner" runat="server" /></div>
<div class="text"><uc2:editabletext ID="Text" runat="server" DialogHeight="158" DialogWidth="168" WordWrap="true" /></div>
</div>
Consider closed this issue.
Many thanks
Regards
Emanuele Firmani