Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
HI Buddies,
 

i m new to ASP.net ?
is there any control like groupbox in C#.
For putting 2 controls(radio buttons) in a single control(like pannel)in asp.net ?
 
i m waiting
 
Thanks
Posted 13-Oct-11 2:40am
Edited 13-Oct-11 2:42am
v2
Comments
koolprasad2003 at 13-Oct-11 8:44am
   
pl. do not repost
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Your question contains answer itself. use Asp:Panel
or here is nice tutorial[^]
  Permalink  
v2
Comments
Tech Code Freak at 8-Feb-12 12:48pm
   
5up!
Mika1992 at 3-Mar-12 9:26am
   
5*
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can use HTML control fieldset for this.
 

 

<fieldset style="width:140px"> 
<legend> User Login </legend> 
<table style="width:100%;">
<tr>
<td>
<asp:label id="lblUserName" runat="server" text="UserName:" ></asp:label>
</td>
<td>
<asp:textbox id="txtUserName" runat="server" width="100px" ></asp:textbox>
</td>
</tr>
<tr>
<td>
<asp:label id="lblPassword" runat="server" text="Password:" ></asp:label>
</td>
<td>
<asp:textbox id="txtPassword" runat="server" textmode="Password" width="100px" ></asp:textbox>
</td>
</tr>
<tr>
<td>
 </td>
<td>
<asp:button id="Button1" runat="server" text="Login" />
</td>
</tr>
</table>
</fieldset>
  Permalink  
v2
Comments
Tech Code Freak at 8-Feb-12 12:48pm
   
added pre tags
 
5up!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

como están todos, espero que muy bien les comento encontré también estas lineas de códigos, creo que es lo mismo pero yo lo hice con unos espacios de ejemplos mas completo para que se guíen:
as they are all very well I hope I commented I also found these lines of code, I think that's what I did the same but with more spaces full of examples that guide:
a continuación les muestro donde el programa genera el código:
then I show where the program generates the code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication6._Default" %>
 
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            height: 386px;
        }
    </style>
</head>
<body background="fondo/fondos.jpg">
luego desde aquí les puse el cambio tenga en cuenta que sigue unidas las lineas de código:
then from here I put the change to take into account together the following lines of code:
<form id="form1" runat="server">
    <div>
    <fieldset class="style1"> <legend><strong>REGISTROS DE VEHICULOS:</strong></legend>
        <br />
        <asp:Label ID="Label1" runat="server" Text="MODELO:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server" Width="182px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
            ID="Button1" runat="server" Text="REGISTRAR" Width="97px"
            onclick="Button1_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label5" runat="server" Text="CATEGORIA:"></asp:Label>
luego les mostrare toda la linea completa como queda:
then I'll show you all the complete line looks like:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication6._Default" %>
 
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            height: 386px;
        }
    </style>
</head>
<body background="fondo/fondos.jpg">
    <form id="form1" runat="server">
    <div>
    <fieldset class="style1"> <legend><strong>REGISTROS DE VEHICULOS:</strong></legend>
        <br />
        <asp:Label ID="Label1" runat="server" Text="MODELO:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server" Width="182px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
            ID="Button1" runat="server" Text="REGISTRAR" Width="97px"
            onclick="Button1_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label5" runat="server" Text="CATEGORIA:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem>CLASE A</asp:ListItem>
            <asp:ListItem>CLASE B</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="CILINDRAJE:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox2" runat="server" Width="184px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label3" runat="server" Text="MARCA:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList2" runat="server" Height="24px"
            Visible="False" Width="87px">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem>FERRARI</asp:ListItem>
            <asp:ListItem>BUGATI</asp:ListItem>
            <asp:ListItem>PORCHE</asp:ListItem>
            <asp:ListItem>LAMBORGHINI</asp:ListItem>
            <asp:ListItem>MERCEDES BENZ</asp:ListItem>
            <asp:ListItem>BMW</asp:ListItem>
            <asp:ListItem>KOENIGSEGG</asp:ListItem>
            <asp:ListItem>ASTON MARTIN</asp:ListItem>
            <asp:ListItem>ZAGATO CORNER</asp:ListItem>
            <asp:ListItem>MITSUOKA</asp:ListItem>
            <asp:ListItem>BANKRUPT</asp:ListItem>
            <asp:ListItem>MASERATI</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
        <asp:Label ID="Label4" runat="server" Text="DESCRIPCION:"></asp:Label>
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox4" runat="server" Height="121px" Width="356px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <br />
        <br />
        <br />
        <br />
        </fieldset>
 
    </div>
    </form>
    <fieldset> <legend><strong>CONSULTAS:</strong></legend>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    </fieldset>
</body>
</html>
 
trate de pegar el diseño gráfico pero no me dejo para mostrarles como quedo al final el diseño.
cualquier inquietud por favor enviarme un e-mail j.e.v.olution@hotmail.com
con asunto: ayuda a programación
felicidades para todos.

Try to paste the graphic design, but I'm left to show them how the final design.

any questions please send an e-mail <removed>@hotmail.com
with subject: programming help
 
Congratulations to all.
  Permalink  
v2
Comments
André Kraak at 3-Mar-12 9:12am
   
Please post your solution in English, the accepted language for Code Project. By posting in Spanish many will not be able to understand/use your solution.
 
I have added the Google translation of the text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 3 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100