471,595 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

Cannot disable LinkButton (GridView Command Button)

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
Dec 19 '06 #1
0 3158

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Al Cohen | last post: by
4 posts views Thread by Ram | last post: by
5 posts views Thread by graphicsxp | last post: by
13 posts views Thread by rn5a | last post: by
3 posts views Thread by =?Utf-8?B?UGxhdGVyaW90?= | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.