Brady Kelly
2007-09-06 16:38:47 UTC
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
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