Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!ReportsClientAPI.IsSupported)
            {
                this.AutomaticConnStrRadio.AutoPostBack      = true;
                this.ManualConnStrRadio.AutoPostBack         = true;
                this.IntegratedSecurityCheckBox.AutoPostBack = true;

                this.AutomaticConnStrRadio.CheckedChanged      += this.ConnStrModeCheckedChanged;
                this.ManualConnStrRadio.CheckedChanged         += this.ConnStrModeCheckedChanged;
                this.IntegratedSecurityCheckBox.CheckedChanged += this.IntegratedSecurityCheckBox_CheckedChanged;
            }
            else
            {
                ReportsClientAPI.Import(this.Page);
                ReportsClientAPI.ShowHideByRadioButtons(this.Page, this.AutomaticConnStrRadio, this.ManualConnStrRadio,
                                                        this.AutomaticConnStrConfig, this.ManualConnStrConfig);
                ReportsClientAPI.ShowHideByCheckBox(this.Page, this.IntegratedSecurityCheckBox, this.UserNameRow,
                                                    false);
                ReportsClientAPI.ShowHideByCheckBox(this.Page, this.IntegratedSecurityCheckBox, this.PasswordRow,
                                                    false);

                // Show the correct table
                this.UpdateControlVisibility();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!ReportsClientAPI.IsSupported)
     {
         chkPageData.AutoPostBack    = true;
         chkPageData.CheckedChanged += chkPageData_CheckedChanged;
     }
     else
     {
         ReportsClientAPI.Import(Page);
         ReportsClientAPI.ShowHideByCheckBox(Page, chkPageData, rowPageSize);
     }
 }
Exemple #3
0
        private void UpdateControlVisibility()
        {
            if (this.AutomaticConnStrRadio.Checked)
            {
                ReportsClientAPI.ClientShow(this.AutomaticConnStrConfig);
                ReportsClientAPI.ClientHide(this.ManualConnStrConfig);
            }
            else if (this.ManualConnStrRadio.Checked)
            {
                ReportsClientAPI.ClientShow(this.ManualConnStrConfig);
                ReportsClientAPI.ClientHide(this.AutomaticConnStrConfig);
            }

            if (this.IntegratedSecurityCheckBox.Checked)
            {
                ReportsClientAPI.ClientHide(this.UserNameRow);
                ReportsClientAPI.ClientHide(this.PasswordRow);
            }
            else
            {
                ReportsClientAPI.ClientShow(this.UserNameRow);
                ReportsClientAPI.ClientShow(this.PasswordRow);
            }
        }