// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System;
using System.Globalization;
using System.Collections.Specialized;
using System.ComponentModel;
-
+using System.Security.Permissions;
namespace System.Web.UI.WebControls {
+ // CAS
+ [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class CheckBoxList : ListControl, IRepeatInfoUser,
INamingContainer, IPostBackDataHandler {
#endif
void RaisePostDataChangedEvent ()
{
+#if NET_2_0
+ if (CausesValidation)
+ Page.Validate (ValidationGroup);
+#endif
OnSelectedIndexChanged (EventArgs.Empty);
}
check_box.Text = item.Text;
check_box.AutoPostBack = AutoPostBack;
check_box.Checked = item.Selected;
+ check_box.TextAlign = TextAlign;
+ check_box.Enabled = Enabled;
+#if NET_2_0
+ check_box.ValidationGroup = ValidationGroup;
+ check_box.CausesValidation = CausesValidation;
+#endif
check_box.RenderControl (writer);
}