using System.Collections;
using System.ComponentModel;
using System.Collections.Specialized;
+using System.Security.Permissions;
namespace System.Web.UI.WebControls {
+ // CAS
+ [AspNetHostingPermissionAttribute (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ [AspNetHostingPermissionAttribute (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ // attributes
[ValidationProperty ("SelectedItem")]
+#if NET_2_0
+ [SupportsEventValidation]
+#endif
public class RadioButtonList : ListControl, IRepeatInfoUser,
INamingContainer, IPostBackDataHandler {
bool need_raise;
+ short tabIndex = 0;
public RadioButtonList ()
{
radio.GroupName = UniqueID;
radio.Page = Page;
radio.Checked = Items [repeatIndex].Selected;
- radio.Attributes["Value"] = Items [repeatIndex].Value;
+ radio.ValueAttribute = Items [repeatIndex].Value;
+ radio.AutoPostBack = AutoPostBack;
+ radio.Enabled = Enabled;
+ radio.TabIndex = tabIndex;
radio.RenderControl (writer);
}
#if NET_2_0
repeat.RepeatColumns = RepeatColumns;
repeat.RepeatDirection = RepeatDirection;
repeat.RepeatLayout = RepeatLayout;
+
+ tabIndex = TabIndex;
+ TabIndex = 0;
+
repeat.RenderRepeater (writer, this, ControlStyle, this);
- }
+
+ TabIndex = tabIndex;
+ }
}
}