Saturday, March 31, 2012

Text box on same line as Radio Buttons

Using ASP.Net1.0
How can I get "Type of degree" and the following text box on the same line
as the radio buttons for "CollegeCompleted"?
I have tried <div style="float:left">, which works well for me in other
areas, but not in this case.
<HR>
College Name <span style="margin-left:162px;">
City/State <br>
<asp:TextBox id="College" columns = "35" runat=server/>
<asp:TextBox id="CollegeCity" columns = "35" runat=server/>
<br>Last Year Completed
<asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
Runat=server>
<asp:ListItem><font size="2"> 1</asp:ListItem>
<asp:ListItem><font size="2">2</asp:ListItem>
<asp:ListItem><font size="2">3</asp:ListItem>
<asp:ListItem><font size="2">4</asp:ListItem>
<asp:ListItem><font size="2">5</asp:ListItem>
</asp:RadioButtonList>
Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
<HR>On Aug 17, 6:40 pm, "dancer" <dan...@.microsoft.com> wrote:
> Using ASP.Net1.0
> How can I get "Type of degree" and the following text box on the same lin
e
> as the radio buttons for "CollegeCompleted"?
> I have tried <div style="float:left">, which works well for me in other
> areas, but not in this case.
>

> College Name <span style="margin-left:162px;">
> City/State <br>
> <asp:TextBox id="College" columns = "35" runat=server/>
> <asp:TextBox id="CollegeCity" columns = "35" runat=server/>
> <br>Last Year Completed
> <asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
> Runat=server>
> <asp:ListItem><font size="2"> 1</asp:ListItem>
> <asp:ListItem><font size="2">2</asp:ListItem>
> <asp:ListItem><font size="2">3</asp:ListItem>
> <asp:ListItem><font size="2">4</asp:ListItem>
> <asp:ListItem><font size="2">5</asp:ListItem>
> </asp:RadioButtonList>
> Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
>

Hi dancer,
You should add RepeatLayout="Flow" to RadioButtonList:
<asp:RadioButtonList id="CollegeCompleted"
RepeatDirection="horizontal"
Runat=server RepeatLayout="Flow">
<asp:ListItem><font size="2"> 1</asp:ListItem>
<asp:ListItem><font size="2">2</asp:ListItem>
<asp:ListItem><font size="2">3</asp:ListItem>
<asp:ListItem><font size="2">4</asp:ListItem>
<asp:ListItem><font size="2">5</asp:ListItem>
</asp:RadioButtonList>
Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
Regards,
Alexander Kleshchevnikov
MCP
www.klalex.com
That worked well. THANK YOU.
"seigo" <seigo.ua@.gmail.com> wrote in message
news:1187365869.355627.265430@.w3g2000hsg.googlegroups.com...
> On Aug 17, 6:40 pm, "dancer" <dan...@.microsoft.com> wrote:
> Hi dancer,
> You should add RepeatLayout="Flow" to RadioButtonList:
> <asp:RadioButtonList id="CollegeCompleted"
> RepeatDirection="horizontal"
> Runat=server RepeatLayout="Flow">
>
> <asp:ListItem><font size="2"> 1</asp:ListItem>
>
> <asp:ListItem><font size="2">2</asp:ListItem>
>
> <asp:ListItem><font size="2">3</asp:ListItem>
>
> <asp:ListItem><font size="2">4</asp:ListItem>
>
> <asp:ListItem><font size="2">5</asp:ListItem>
>
> </asp:RadioButtonList>
>
> Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
> Regards,
> Alexander Kleshchevnikov
> MCP
> www.klalex.com
>

0 comments:

Post a Comment