Hi, First what my goal is: I want when clicking on a button on my page a popup to appear with a list of images. When clicking on a image it should add som text (the name of the image) to a textbox on the page. In first place I only try to let the popup appear when clicking the textbox because I don't know how to set the name of the image from the button. My aspx code:
<table cellpadding="0" width="100%" border="0">
<tr>
<td style="text-align: right">
<asp:Label ID="lblMessage" runat="server" Text="<%$ Resources:Resource, Message %>"></asp:Label> : 
</td>
<td style="text-align: left; width: 510px">
<asp:TextBox Id="txtMessage" runat="server" onfocus="this.value = this.value;" MaxLength="250" Width="500px" />
</td>
<td style="vertical-align: top">
<asp:Button Id="btnSend" CssClass="button" runat="server" Text="<%$ Resources:Resource, Send %>" OnClientClick="SetScrollPosition()" OnClick="BtnSend_Click" />
</td>
<td style="width: 200px">
<asp:ImageButton ID="ibtnSmileys" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/Images/Smiley_41_20_A.gif" />
<asp:Panel ID="panSmileys" runat="server" CssClass="chatSmileyPanel">
<asp:UpdatePanel ID="upanSmileys" runat="server">
<ContentTemplate>
<asp:DataList ID="dlstSmileys" runat="server" RepeatColumns="7" RepeatDirection="Horizontal" Width="100%" CellPadding="2" CellSpacing="2" OnItemCommand="dlstSmileys_ItemCommand">
<ItemTemplate>