Ask a Question related to ASP.NET General, Design and Development.
-
Sean #1
RadioButtonList and JavaScript ... Help
Hi ....
I have a radiobutton list and a label in a webform.
<asp:radiobuttonlist id="one" runat="server" CssClass="text"
AutoPostBack="False" RepeatDirection="Horizontal">
<asp:ListItem Value="one">one</asp:ListItem>
<asp:ListItem Value="two">two</asp:ListItem>
<asp:ListItem Value="three">three</asp:ListItem>
<asp:ListItem Value="four">four</asp:ListItem>
<asp:ListItem Value="five">five</asp:ListItem>
</asp:radiobuttonlist>
<br>
<asp:Label id="Label1" runat="server" Visible=False>Label</asp:Label>
I have set the AutoPostBack to False, as i want to be able to use the
keyboard to navigate thru' the RadioButtonList.
Once a particular radiobutton is selected, i want to be able to check with
RadioButton value selected and then display a hidden label.
On Page Load, i call the javascript function
ddPayer.Attributes.Add("onclick", "check()")
where
<script language="javascript">
function check(){
document.Form1.TextBox1.value = "test";
document.Form1.Label1.style.visibility = true; --- Drop an error here
}
</script>
I have been able to write a value to a textbox once any radiobutton has been
selected.
But i can't seem to trap the value of each of those radiobuttons, so i could
make it visible.
Any help is greatly appreciated.
--
Thank You,
Sean
Sean Guest
-
RadioButtonList
Maybe you can help me with the following logic I am trying to accomplish. My RadioButtonList is in datagrid <EditItemTemplate> column If my... -
RadioButtonList In DataGrid
Hi all! I have a page that gets a list of users from a database and puts them into a DataGrid. The DataGrid is editable. In Edit Mode of the... -
Radiobuttonlist and cssclass
I am in the process of updating old asp projects into asp.net. We used to have radiobuttons which had an attached css class as follows: <label... -
radiobuttonlist and javascript
hi I have a checkbox and a radiobuttonlist (the radiobuttonlist contains 2 items) in my form. The radiobuttonlist has its visible property set to... -
radiobuttonlist and javascript??
in your page load function add the following: RadioButtonListName.Attributes.Add("onclick", "return JavascriptFunctionName()"); radiobuttonlist... -
Herfried K. Wagner #2
Re: RadioButtonList and JavaScript ... Help
Hello,
"Sean" <nospam@> schrieb:Newsgroups for ASP .NET:> I have a radiobutton list and a label in a webform.
>
> <asp:radiobuttonlist id="one" runat="server" CssClass="text"
> AutoPostBack="False" RepeatDirection="Horizontal">
> <asp:ListItem Value="one">one</asp:ListItem>
> <asp:ListItem Value="two">two</asp:ListItem>
> <asp:ListItem Value="three">three</asp:ListItem>
> <asp:ListItem Value="four">four</asp:ListItem>
[url]news://news.microsoft.com/microsoft.public.dotnet.framework.aspnet[/url]
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
[url]http://www.mvps.org/dotnet[/url]
Herfried K. Wagner Guest



Reply With Quote

