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); } }