|
-
September 10th, 2009, 07:52 PM
#1
dynamic value
Hi,
I am trying to dynamically get the value of a button by calling function in the value attribute. However, it doesn't work like this. Can i have give me a hand with it?
<piece:gradientbutton ID="GradientButton1" runat="server" Height="26px"
Width="115px">
<GradientBackground GradientStartColor="White" GradientEndColor="#DFE4EF"
RoundCornerRadius="3" Type="Vertical" BorderColor="LightGray" />
<Text Font="Tahoma, 10pt" HorizontalAlign="Center"
Value='<%=((Survey_Survey_Login)this.Master).getLabel("hra.btnLogin") %> ' VerticalAlign="Center" Color="#002672" />
</piece:gradientbutton>
-
September 11th, 2009, 04:11 AM
#2
Re: dynamic value
As far as I know, server-side code block (<%...%>) doesn't work for attributes. You should hook to an event (e.g. OnPreRender) instead.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
-
September 11th, 2009, 09:15 AM
#3
Re: dynamic value
thank you! it works with PreRender event.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|