【发布时间】:2014-02-14 15:20:21
【问题描述】:
我(很遗憾)正在更新 DotNetNuke 5 桌面模块
我有一个按钮处理程序:
protected void ButtonHandler(object sender, EventArgs e)
{
Button button = (Button)sender;
TableCell tblCell = button.Parent;
}
我也尝试过使用 NamingContainer 进行上述操作 - 但两个选项都向我抛出此错误:
Cannot implicitly convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.TableCell'
如何检索按钮所在的表格单元格?
【问题讨论】:
标签: c# asp.net dotnetnuke-module dotnetnuke-5