Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Embedded code blocks in ASP.NET (http://www.velocityreviews.com/forums/t526221-embedded-code-blocks-in-asp-net.html)

Corbs 08-01-2007 02:50 PM

Embedded code blocks in ASP.NET
 
Hi,

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?

Thanks,
Corbs


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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57