2002-03-17 Gaurav Vaish <gvaish@iitk.ac.in>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / RadioButtonList.cs
index 9279b5e09cfd735db66d1a5038d83f50ffec13f7..d1a0a0f8c4abd46bacc7119d0342c877262a9157 100644 (file)
@@ -20,8 +20,8 @@ namespace System.Web.UI.WebControls
 {\r
        public class RadioButtonList : ListControl, IRepeatInfoUser, INamingContainer, IPostBackDataHandler\r
        {\r
-               private bool selectionIndexChanged;\r
-               private int  tabIndex;\r
+               private bool  selectionIndexChanged;\r
+               private short  tabIndex;\r
 \r
                public RadioButtonList(): base()\r
                {\r
@@ -33,7 +33,10 @@ namespace System.Web.UI.WebControls
                        get\r
                        {\r
                                if(ControlStyleCreated)\r
+                               {\r
                                        return (int)(((TableStyle)ControlStyle).CellPadding);\r
+                               }\r
+                               return -1;\r
                        }\r
                        set\r
                        {\r
@@ -46,7 +49,10 @@ namespace System.Web.UI.WebControls
                        get\r
                        {\r
                                if(ControlStyleCreated)\r
+                               {\r
                                        return (int)(((TableStyle)ControlStyle).CellSpacing);\r
+                               }\r
+                               return -1;\r
                        }\r
                        set\r
                        {\r