Hi Daniil,
Sorry, I tried what you said:
<img src="{getUrl}" title="{getDescr}" alt="{getDescr}" onclick="photoOrg.setImageUrl('{getUrl}');">
but get the same error:
This code shows a javascript error when click a photo: ('photoOrg is not defined').
I tried this but doesn´t work either:
<script type="text/javascript">
function showPhoto(url)
{
photoOrg.setImageUrl(url);
}
</script>
...
<img src="{getUrl}" title="{getDescr}" alt="{getDescr}" onclick="showPhoto('{getUrl}')">
...
<ext:Panel ID="panelPhotoOrg" runat="server" Border="false" Padding="5" Width="535" Height="370">
<Items>
<ext:Image runat="server" ID="photoOrg" />
</Items>
</ext:Panel>
I get the same javascript error:
'photoOrg is not defined'.
Note:
I have verified that without user control (all in one aspx page) it works fine.
How can i get to work fine with a user control?