2009-01-15 36 views
3

我有一个名为CustomerFinder的UserControl用于搜索客户。中继器内有“ADD”按钮。我为Repeater_ItemCommand创建了一个事件处理程序。因为我打算在另一页上使用它。如何将触发器添加到Updatepanel,其中触发器的事件位于Repeater内的用户控件内部?

在另一页上,我使用此用户控件不在UpdatePanel中。 有一个选定客户的更新面板(当他们点击添加,客户被选中)

当他们点击UserControl中的ADD按钮时,我想要更新面板自我刷新。

alt text http://www.barbarosalp.com/questions/updatePanelcommand.png

正如你看到的上面的智能感知可以得到事件名称 “OnrptCustomersCommand

alt text http://www.barbarosalp.com/questions/updatePanelcommand1.png

这是触发...

我得到一个错误“无法找到事件'OnrptCustomersComman'“

我怎样才能完成它? 在此先感谢

回答

1

感谢迈克尔Knishkern他的答案。

但我做到了我的工作方式太:)

只要删除2个字符“开”从事件的名称。

OnrptCustomersEventrptCustomersEvent

再次感谢

3

取下触发部分ucCustomerFinder asyncpostbacktrigger元素,并添加pnlSelectedCustomers.Update()命令将Repeater_ItemCommand事件中继

+0

你是对的:)我不能明白为什么我尝试超事情这:)。但我通过aspx页面上的assignin触发器工作。 非常感谢。 – 2009-01-15 20:28:08