Malcolm L.
|
Posted: 09/18/2003, 2:04 PM |
|
According to the Help files, one can add a break tag such that it appears after every radio button instance. The help says to add the <BR> tag like this:
<!-- BEGIN RadioButton Label1 -->
<input {Check} type="radio" name="Label1" value="{Value}">{Description}
<BR><!-- END RadioButton Label1 -->
I've done this, and it doesn't work. Why not?
I've also, been careful to ensure that the aspx and aspx.cs files were being completly regenerated by way of deleting them and republishing.
Thanks for any help,
Malcolm
|
|
|
Tom
|
Posted: 09/20/2003, 7:32 AM |
|
Take a look at the aspx file and you see that the radio button is generated as an aspx control which then .net autogenerates its own html overriding anything you touched in the html file.
I'm assuming you want the control to list the radio buttons vertically.
What I did was in the before show event, I set the radio button orientation to vertical.
You can find the 'real name' of the radio button by looking at the code .aspx file (not the aspx.vb)
It will look something like MYFORMMYRADIO
Then do a MYFORMMYRADIO.RepeatDirection=RepeatDirection.Vertical
A listing of all of the control values:
<asp:RadioButtonList id="RadioButtonList1"
AutoPostBack="True|False"
CellPadding="Pixels"
DataSource="<% databindingexpression %>"
DataTextField="DataSourceField"
DataValueField="DataSourceField"
RepeatColumns="ColumnCount"
RepeatDirection="Vertical|Horizontal"
RepeatLayout="Flow|Table"
TextAlign="Right|Left"
OnSelectedIndexChanged="OnSelectedIndexChangedMethod"
runat="server">
<asp:ListItem Text="label"
Value="value"
Selected="True|False" />
</asp:RadioButtonList>
|
|
|
|