【发布时间】:2014-12-12 00:22:29
【问题描述】:
我有一段代码:
protected void Page_Load(object sender, EventArgs e)
{
_SearchResult.GridViewChanged += _SearchResult_GridViewChanged;
}
public Control GvControls { get; set; }
protected void _SearchResult_GridViewChanged(object sender, Orders.GridViewChangedEventArgs e)
{
this.GvControls = e.GControl;
}
protected void export_ServerClick()
{
new ExportGridView(this.GvControls,"report");
}
一个控件使用事件 arg 生成一个事件并通过 arg 推送一个控件,然后其他(此)控件使用此 arg 做一些俯卧撑
我什么时候尝试推送 export_ServerClick() 属性 GvControls 等于 null 但之前不应该为 null。为什么会这样。
谢谢X
【问题讨论】:
标签: c# asp.net events user-controls controls