ItemDataBound not Firing on Repeater
Brady Kelly <[email protected]> Thu, 6 Sep 2007 18:38:47 +0200
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
I have a user control that comprises a Repeater that builds a vertical table
of buttons. In the Page_Load event of the user control I bind an event
handler, but the event never fires. My code is like this:
protected void Page_Load(object sender, EventArgs e)
{
rptPageButtons.ItemDataBound += new
RepeaterItemEventHandler(rptPageButtons_ItemDataBound);
}
void rptPageButtons_ItemDataBound(object sender,
RepeaterItemEventArgs e)
{
throw new Exception("The method or operation is not
implemented.");
}
However, if I use the OnItemDataBound attribute, the event fires. Why could
this be?
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com