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. Advertisements

  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. Advertisements

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. SamIAm
    Replies:
    1
    Views:
    553
    Ed Gibbs
    Dec 4, 2003
  2. Chuck
    Replies:
    2
    Views:
    799
    Chuck
    Nov 12, 2004
  3. John M
    Replies:
    1
    Views:
    1,646
    Kumar Reddi
    May 29, 2005
  4. Jeffrey
    Replies:
    10
    Views:
    738
    mbstevens
    Oct 15, 2006
  5. -Karl
    Replies:
    2
    Views:
    585
    -Karl
    Jun 18, 2007
  6. Mike
    Replies:
    2
    Views:
    794
  7. Madhav
    Replies:
    1
    Views:
    153
    Lasse Reichstein Nielsen
    Jul 1, 2003
  8. Grzegorz ¦lusarek

    AJAX and disapeard javascripts tags <script></script>

    Grzegorz ¦lusarek, Oct 11, 2005, in forum: Javascript
    Replies:
    1
    Views:
    197
    knocte
    Oct 12, 2005
Loading...