views:

181

answers:

1

I have a linkbutton server control in my page whose Enabled attribute is initially set to "false". When a text box's text changes I would like to enable the linkbutton. I tried the following but it does not work. Could you let me know if i am missing something.

function TextBox_TextChanged()
{
    var control = $get("<%= linkButtonSave.ClientID%>");
    if(control != null)
        control.enabled = true;
}

Thanks

A: 

try

control.disabled = false;

You're dealing with HTML controls, not server side controls.

Rubens Farias