Cannot disable LinkButton (GridView Command Button)

K

Keithb

My application has a LinkButton that I am using as a Command button in the
ItemTemplate of a GridView control. Regardless of the value set for the
Enabled property (true or false), The control is always enabled. What could
be preventing this control from being disabled.

The html looks like this:

<asp:LinkButton ID="BusSvcButton"
runat="server"
CausesValidation="false"
CommandName="BusSvc"
CommandArgument='<%# DataBinder.Eval(Container.DataItem,
"SvcID") %>'
Visible='<%# Eval("sampleButtonVisible") %>'
Enabled="false"
Text="BusSvc" />

Thanks,

Keith
 

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,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top