the template is:
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="AntragOldEditTemplate.ascx.cs"
Inherits="ServiceDnsDbWebClient.Templates.AntragOl dEditTemplate"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<P>
<asp:Button id="Button_Aenderungsantrag"
CommandName="AnderungenSpeichern" runat="server" Text="Ändrungen
speichern"></asp:Button></P>
<P>
<asp:Label id=AntragInternerZugangId runat="server" Text='<%#
DataBinder.Eval(((DataListItem)Container).DataItem ,
"AntragInternerZugangId") %>'>
</asp:Label></P>
.....
and here the user control itemcommand which only gets invoked when the
datalist has a static template
private void DataList1_ItemCommand(object source,
System.Web.UI.WebControls.DataListCommandEventArgs e)
{
this.RaiseBubbleEvent(source,e);
}
thanks for your help!
daniel
Scott Allen wrote:
Hi Daniel:
This should work, could you show us the ItemTemplate definition?
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 18 Oct 2004 13:03:31 +0200, Daniel
<da**********@zdv.uni-tuebingen.de> wrote:
hi all,
i have a dynamically loaded item template for a datalist that contains a
button element.
this button does not raise an event when clicked.
Is there something special to care for with a dynami template?
thanks for any help.
d.