ASCX
<dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server">
</dx:ASPxGridViewExporter>
<dx:ASPxButton ID="buttonSaveAs" runat="server" ToolTip="Export and save" Style="vertical-align: middle;"
OnClick="buttonSaveAs_Click" Text="Save" Width="51px" />
上記ASCXを含むASPX
<div>
//ASCX
</div>
<div>
<dx:ASPxPivotGrid ID="ASPxPivotGridElectricMeterReadings" runat="server" ClientIDMode="AutoID"
DataSourceID="SqlDataSourceElectricMeterReadings" EnableCallBacks="False" Width="1000px">
</dx:ASPxPivotGrid>
</div>
ASCX.cs
protected void buttonSaveAs_Click(object sender, EventArgs e)
{
// I want to get pivotGridId from ASPX
ASPxGridViewExporter1.ASPxPivotGridID = ASPX-PivotGrid-ID
}
ASPX コントロール ID を ASCX button_click_event に渡すにはどうすればよいですか?