anchor question

Discussion in 'ASP .Net' started by Mike P, Aug 5, 2003.

  1. Mike P

    Mike P Guest

    What is wrong with this code? I have a link on my page :

    <a href='<%# "oli_display.aspx?OLI=" +
    DataBinder.Eval(Container.DataItem, "OLI") + "&OS=" +
    DataBinder.Eval(Container.DataItem, "Incoming Route") %>'
    target="_blank">

    <%#DataBinder.Eval(Container.DataItem, "OLI") %>
    </a>

    I have changed this so that I can set the properties of my window, but
    I'm not sure of the correct syntax :

    <a href="#" onClick="window.open('<%# "oli_display.aspx?OLI=" +
    DataBinder.Eval(Container.DataItem, "OLI") + "&OS=" +
    DataBinder.Eval(Container.DataItem, "Incoming Route") %>', 'title of
    window goes here', 'toolbar=no, directories=no, location=no, status=yes,
    menubar=no, resizable=no, scrollbars=no, width=300, height=200')>
    <%#DataBinder.Eval(Container.DataItem, "OLI") %>
    </a>


    Any assistance would be much appreciated.


    Cheers,

    Mike



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Mike P, Aug 5, 2003
    #1
    1. Advertising

  2. Hi

    Window title should be without spaces.

    Ravikanth[MVP]


    >-----Original Message-----
    >What is wrong with this code? I have a link on my page :
    >
    ><a href='<%# "oli_display.aspx?OLI=" +
    >DataBinder.Eval(Container.DataItem, "OLI") + "&OS=" +
    >DataBinder.Eval(Container.DataItem, "Incoming Route") %>'
    >target="_blank">
    >
    ><%#DataBinder.Eval(Container.DataItem, "OLI") %>
    > </a>
    >
    >I have changed this so that I can set the properties of

    my window, but
    >I'm not sure of the correct syntax :
    >
    ><a href="#" onClick="window.open('<%# "oli_display.aspx?

    OLI=" +
    >DataBinder.Eval(Container.DataItem, "OLI") + "&OS=" +
    >DataBinder.Eval(Container.DataItem, "Incoming Route") %
    >', 'title of
    >window goes here', 'toolbar=no, directories=no,

    location=no, status=yes,
    >menubar=no, resizable=no, scrollbars=no, width=300,

    height=200')>
    ><%#DataBinder.Eval(Container.DataItem, "OLI") %>
    > </a>
    >
    >
    >Any assistance would be much appreciated.
    >
    >
    >Cheers,
    >
    >Mike
    >
    >
    >
    >*** Sent via Developersdex http://www.developersdex.com

    ***
    >Don't just participate in USENET...get rewarded for it!
    >.
    >
    Ravikanth[MVP], Aug 5, 2003
    #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. Steve Peterson

    Anchor question

    Steve Peterson, Oct 5, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    476
    Steve Peterson
    Oct 5, 2004
  2. TheKeith

    Anchor style question

    TheKeith, Oct 21, 2003, in forum: HTML
    Replies:
    3
    Views:
    3,192
  3. Thomas Scheiderich

    anchor question

    Thomas Scheiderich, Sep 3, 2004, in forum: HTML
    Replies:
    8
    Views:
    582
    Starshine Moonbeam
    Sep 9, 2004
  4. Mark Parnell

    Named anchor question

    Mark Parnell, Jun 28, 2005, in forum: HTML
    Replies:
    3
    Views:
    559
    Ian Rastall
    Jun 28, 2005
  5. still just me

    CSS A (link-anchor) syntax question

    still just me, May 5, 2008, in forum: HTML
    Replies:
    8
    Views:
    771
    still just me
    May 8, 2008
Loading...

Share This Page