Enabling/ Disabling Radio button in client side = Asp.net

M

~Maheshkumar.R

Hi groups,
In my page i have placed radiolist[ myradiobtn ] server control
[ (o) Yes (.) No ] enabled = false in the design time.

I have to enable and disable this radiolist control based button(btn) press
event.

//in code behind
btn.Attributes.Add("Onclick", "testcode()")
// in aspx page
function testcode()
{
document.Form1.radiolist1.disabled=false; // not responding for radiolist
control
}

... <.asp:radiobuttonlist id="agenda" runat="server" Enabled="False">
<.asp:ListItem Value="110">Meeting scheduled</asp:ListItem>
<.asp:ListItem Value="111">Followup scheduled</asp:ListItem>
<./asp:radiobuttonlist>
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top