Embedded code blocks in ASP.NET
I was wondering if anybody could help me with a small problem of mine.
I am loading a page in a Read-Only statement, and have the following public property declared 'public bool IsReadOnly' returning 'false' in my Page.cs.
In the Page.aspx, I am using the property as followed in a LinkButton :
<asp:LinkButton ID="LinkButton" BorderStyle="None" Enabled='<%# IsReadOnly%>' runat="server" />
Problem is that this only seem to be working inside a GridView / TemplateField. Whenever I use this property outside of a GridView, it is ignored. Only the GridView's LinkButton calls it.
Any idea why?
|All times are GMT. The time now is 03:22 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.