Script tags in ASPX files

Discussion in 'ASP .Net' started by Flodpanter, Dec 1, 2006.

  1. Flodpanter

    Flodpanter Guest

    Im trying to add a script tag(or whatever is is called) in my aspx
    file. Basically Im trying do to something like this:

    <asp:label id="label1" runat="server" Text="Hello!" Visible='<%#
    ShowLabel%>' />

    where ShowLabel is a property defined in my code behind file.

    Apparently the ShowLabel is never evaluated. When in debug I never
    enter the Get accessor of the property. Any suggestions or links to <%#
    %> and <%= %> script tags?
    Flodpanter, Dec 1, 2006
    #1
    1. Advertising

  2. Flodpanter

    Masudur Guest

    Flodpanter wrote:
    > Im trying to add a script tag(or whatever is is called) in my aspx
    > file. Basically Im trying do to something like this:
    >
    > <asp:label id="label1" runat="server" Text="Hello!" Visible='<%#
    > ShowLabel%>' />
    >
    > where ShowLabel is a property defined in my code behind file.
    >
    > Apparently the ShowLabel is never evaluated. When in debug I never
    > enter the Get accessor of the property. Any suggestions or links to <%#
    > %> and <%= %> script tags?


    Hi.

    please visit this post... this will solve your problem
    http://groups.google.com/group/micr...c186?lnk=st&q=&rnum=20&hl=en#7ed5c6470a55c186

    Thanks
    Masudur
    Kaz Software Ltd.
    www.kaz.com.bd
    Masudur, Dec 1, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chuck
    Replies:
    2
    Views:
    725
    Chuck
    Nov 12, 2004
  2. John M
    Replies:
    1
    Views:
    1,115
    Kumar Reddi
    May 29, 2005
  3. Jeffrey
    Replies:
    10
    Views:
    632
    mbstevens
    Oct 15, 2006
  4. -Karl
    Replies:
    2
    Views:
    423
    -Karl
    Jun 18, 2007
  5. Madhav
    Replies:
    1
    Views:
    76
    Lasse Reichstein Nielsen
    Jul 1, 2003
Loading...

Share This Page