Hi,
I have a template in a DataList. The template also contains a DataList.
I'd like to bubble the OnItemCommand event from the template's DataList
up the hierarchy. Here's what I've tried so far:
In the container:
Protected Overrides Function OnBubbleEvent(ByVal source As Object,
ByVal e As EventArgs) As Boolean
Trace.Warn(source.ToString)
End Function
I just put a break on this to see if it is fired.
In the template:
<script language="VB" runat="server">
protected overridable sub AestheticDetail_ItemCommand(source As Object,
e As System.Web.UI.WebControls.DataListCommandEventArgs )
RaiseBubbleEvent(source, e)
end sub
</script>
<table cellSpacing="0" cellPadding="0" width="275" border="0">
<tr>
<td colSpan="3">
<table>
<asp:datalist id=AestheticDetail
OnItemCommand="AestheticDetail_ItemCommand" DataSource='<%#
GetAestheticDetail(DataBinder.Eval(CType(Container ,DataListItem).DataIte
m, "AestheticBatch")) %>' runat="server">
The container's OnBubbleEvent does not fire. I'm sure I'm doing
something wrong here. Any thoughts?
Thanks,
Barry
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!