how make a group checkbox vb.net (asp.net)
-
Hi all, I have one question very very easy but what I don't know do. With vb 6 when I want create a group checkbox only I have that copy and paste the same checkbox into panel and vb 6 create the group. Well, with vb.net and asp.net (v.studio 2008) if I copy and paste the name ID is diferent and is not posible create a group with properties. Also I have tried select 2 or 3 checkbox with key "control + click" but nothing is not posible. Later I have tried to put into code the name of group and I don't see errors but I don't know how call later to group, I put you my simple code that I want to do:
<asp:Panel ID="Panel1" runat="server" Width="451px" > <asp:CheckBox ID="ChkDia1" runat="server" CssClass="negro11b" Text="Lunes" group="ChkDia" /> <asp:CheckBox ID="ChkDia2" runat="server" CssClass="negro11b" Text="Martes" group="ChkDia" /> <asp:CheckBox ID="ChkDia3" runat="server" CssClass="negro11b" Text="Miercoles" group="ChkDia"/> <asp:CheckBox ID="ChkDia4" runat="server" CssClass="negro11b" Text="Jueves" group="ChkDia"/> <asp:CheckBox ID="ChkDia5" runat="server" CssClass="negro11b" Text="Viernes" group="ChkDia"/> <asp:CheckBox ID="ChkDia6" runat="server" CssClass="negro11b" Text="Sabado" group="ChkDia"/> <asp:CheckBox ID="ChkDia7" runat="server" CssClass="negro11b" Text="Domingo" group="ChkDia"/> </asp:Panel> 'Ocultar todos chkDia Dim i As Integer For i = 1 To 7 ChkDia(i).Visible = False Next
Thanks for your help!
-
Hi all, I have one question very very easy but what I don't know do. With vb 6 when I want create a group checkbox only I have that copy and paste the same checkbox into panel and vb 6 create the group. Well, with vb.net and asp.net (v.studio 2008) if I copy and paste the name ID is diferent and is not posible create a group with properties. Also I have tried select 2 or 3 checkbox with key "control + click" but nothing is not posible. Later I have tried to put into code the name of group and I don't see errors but I don't know how call later to group, I put you my simple code that I want to do:
<asp:Panel ID="Panel1" runat="server" Width="451px" > <asp:CheckBox ID="ChkDia1" runat="server" CssClass="negro11b" Text="Lunes" group="ChkDia" /> <asp:CheckBox ID="ChkDia2" runat="server" CssClass="negro11b" Text="Martes" group="ChkDia" /> <asp:CheckBox ID="ChkDia3" runat="server" CssClass="negro11b" Text="Miercoles" group="ChkDia"/> <asp:CheckBox ID="ChkDia4" runat="server" CssClass="negro11b" Text="Jueves" group="ChkDia"/> <asp:CheckBox ID="ChkDia5" runat="server" CssClass="negro11b" Text="Viernes" group="ChkDia"/> <asp:CheckBox ID="ChkDia6" runat="server" CssClass="negro11b" Text="Sabado" group="ChkDia"/> <asp:CheckBox ID="ChkDia7" runat="server" CssClass="negro11b" Text="Domingo" group="ChkDia"/> </asp:Panel> 'Ocultar todos chkDia Dim i As Integer For i = 1 To 7 ChkDia(i).Visible = False Next
Thanks for your help!
-
Hi all, I have one question very very easy but what I don't know do. With vb 6 when I want create a group checkbox only I have that copy and paste the same checkbox into panel and vb 6 create the group. Well, with vb.net and asp.net (v.studio 2008) if I copy and paste the name ID is diferent and is not posible create a group with properties. Also I have tried select 2 or 3 checkbox with key "control + click" but nothing is not posible. Later I have tried to put into code the name of group and I don't see errors but I don't know how call later to group, I put you my simple code that I want to do:
<asp:Panel ID="Panel1" runat="server" Width="451px" > <asp:CheckBox ID="ChkDia1" runat="server" CssClass="negro11b" Text="Lunes" group="ChkDia" /> <asp:CheckBox ID="ChkDia2" runat="server" CssClass="negro11b" Text="Martes" group="ChkDia" /> <asp:CheckBox ID="ChkDia3" runat="server" CssClass="negro11b" Text="Miercoles" group="ChkDia"/> <asp:CheckBox ID="ChkDia4" runat="server" CssClass="negro11b" Text="Jueves" group="ChkDia"/> <asp:CheckBox ID="ChkDia5" runat="server" CssClass="negro11b" Text="Viernes" group="ChkDia"/> <asp:CheckBox ID="ChkDia6" runat="server" CssClass="negro11b" Text="Sabado" group="ChkDia"/> <asp:CheckBox ID="ChkDia7" runat="server" CssClass="negro11b" Text="Domingo" group="ChkDia"/> </asp:Panel> 'Ocultar todos chkDia Dim i As Integer For i = 1 To 7 ChkDia(i).Visible = False Next
Thanks for your help!
-
Hi all, I have one question very very easy but what I don't know do. With vb 6 when I want create a group checkbox only I have that copy and paste the same checkbox into panel and vb 6 create the group. Well, with vb.net and asp.net (v.studio 2008) if I copy and paste the name ID is diferent and is not posible create a group with properties. Also I have tried select 2 or 3 checkbox with key "control + click" but nothing is not posible. Later I have tried to put into code the name of group and I don't see errors but I don't know how call later to group, I put you my simple code that I want to do:
<asp:Panel ID="Panel1" runat="server" Width="451px" > <asp:CheckBox ID="ChkDia1" runat="server" CssClass="negro11b" Text="Lunes" group="ChkDia" /> <asp:CheckBox ID="ChkDia2" runat="server" CssClass="negro11b" Text="Martes" group="ChkDia" /> <asp:CheckBox ID="ChkDia3" runat="server" CssClass="negro11b" Text="Miercoles" group="ChkDia"/> <asp:CheckBox ID="ChkDia4" runat="server" CssClass="negro11b" Text="Jueves" group="ChkDia"/> <asp:CheckBox ID="ChkDia5" runat="server" CssClass="negro11b" Text="Viernes" group="ChkDia"/> <asp:CheckBox ID="ChkDia6" runat="server" CssClass="negro11b" Text="Sabado" group="ChkDia"/> <asp:CheckBox ID="ChkDia7" runat="server" CssClass="negro11b" Text="Domingo" group="ChkDia"/> </asp:Panel> 'Ocultar todos chkDia Dim i As Integer For i = 1 To 7 ChkDia(i).Visible = False Next
Thanks for your help!
-
Hi all, I have one question very very easy but what I don't know do. With vb 6 when I want create a group checkbox only I have that copy and paste the same checkbox into panel and vb 6 create the group. Well, with vb.net and asp.net (v.studio 2008) if I copy and paste the name ID is diferent and is not posible create a group with properties. Also I have tried select 2 or 3 checkbox with key "control + click" but nothing is not posible. Later I have tried to put into code the name of group and I don't see errors but I don't know how call later to group, I put you my simple code that I want to do:
<asp:Panel ID="Panel1" runat="server" Width="451px" > <asp:CheckBox ID="ChkDia1" runat="server" CssClass="negro11b" Text="Lunes" group="ChkDia" /> <asp:CheckBox ID="ChkDia2" runat="server" CssClass="negro11b" Text="Martes" group="ChkDia" /> <asp:CheckBox ID="ChkDia3" runat="server" CssClass="negro11b" Text="Miercoles" group="ChkDia"/> <asp:CheckBox ID="ChkDia4" runat="server" CssClass="negro11b" Text="Jueves" group="ChkDia"/> <asp:CheckBox ID="ChkDia5" runat="server" CssClass="negro11b" Text="Viernes" group="ChkDia"/> <asp:CheckBox ID="ChkDia6" runat="server" CssClass="negro11b" Text="Sabado" group="ChkDia"/> <asp:CheckBox ID="ChkDia7" runat="server" CssClass="negro11b" Text="Domingo" group="ChkDia"/> </asp:Panel> 'Ocultar todos chkDia Dim i As Integer For i = 1 To 7 ChkDia(i).Visible = False Next
Thanks for your help!
You could use the CheckBoxList[^] control instead.
Kelly Herald Software Developer
-
You could use the CheckBoxList[^] control instead.
Kelly Herald Software Developer
but is not possible call to matrix of checkbox easily, I don't want do it dinamically. why checkbox accept by code add property "group=" and later is not posible use it? I only want put visible or not visible "some" checkbox with a For next. I would like to have a easy sample about it. Thanks very much