protected void ExecuteSecondUserControlButton_Click(object sender, EventArgs e) { try { SecondControl.Call(this, TheUserControl, (Control)sender); } catch (WxeUserCancelException) { } }
protected void ExecuteSecondUserControlButton_Click(object sender, EventArgs e) { ControlLabel.Text = DateTime.Now.ToString("HH:mm:ss") + ": Executed"; try { SecondControl.Call(WxePage, this, (Control)sender); ControlLabel.Text = DateTime.Now.ToString("HH:mm:ss") + ": Returned"; } catch (WxeUserCancelException) { ControlLabel.Text = DateTime.Now.ToString("HH:mm:ss") + ": Canceled"; } //if (!WxePage.IsReturningPostBack) //{ // ControlLabel.Text = DateTime.Now.ToString ("HH:mm:ss") + ": Executed"; // ExecuteFunction (new ShowSecondUserControlFormFunction(), (Control)sender, null); //} //else //{ // ControlLabel.Text = DateTime.Now.ToString ("HH:mm:ss") + ": Returned"; //} }