Web User Control get parent control ID?

Danny4

New Member
ASCX \[code\]<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" />\[/code\]ASPX that include above ASCX\[code\]<div> //ASCX</div><div> <dx:ASPxPivotGrid ID="ASPxPivotGridElectricMeterReadings" runat="server" ClientIDMode="AutoID" DataSourceID="SqlDataSourceElectricMeterReadings" EnableCallBacks="False" Width="1000px"> </dx:ASPxPivotGrid></div>\[/code\]ASCX.cs\[code\]protected void buttonSaveAs_Click(object sender, EventArgs e){ // I want to get pivotGridId from ASPX ASPxGridViewExporter1.ASPxPivotGridID = ASPX-PivotGrid-ID}\[/code\]How can I pass ASPX control ID to ASCX button_click_event?
 
Back
Top