CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: dynamic value

  1. #1
    Join Date
    Oct 2002
    Location
    Australia
    Posts
    207

    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>

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    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.

  3. #3
    Join Date
    Oct 2002
    Location
    Australia
    Posts
    207

    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
  •  





Click Here to Expand Forum to Full Width

Featured