anchor question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike P

    #1

    anchor question

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

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

    <%#DataBinder.E val(Container.D ataItem, "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.as px?OLI=" +
    DataBinder.Eval (Container.Data Item, "OLI") + "&OS=" +
    DataBinder.Eval (Container.Data Item, "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.E val(Container.D ataItem, "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]

    #2
    anchor question

    Hi

    Window title should be without spaces.

    Ravikanth[MVP]

    [color=blue]
    >-----Original Message-----
    >What is wrong with this code? I have a link on my page :
    >
    ><a href='<%# "oli_display.as px?OLI=" +
    >DataBinder.Eva l(Container.Dat aItem, "OLI") + "&OS=" +
    >DataBinder.Eva l(Container.Dat aItem, "Incoming Route") %>'
    >target="_blank ">
    >
    ><%#DataBinder. Eval(Container. DataItem, "OLI") %>
    > </a>
    >
    >I have changed this so that I can set the properties of[/color]
    my window, but[color=blue]
    >I'm not sure of the correct syntax :
    >
    ><a href="#" onClick="window .open('<%# "oli_display.as px?[/color]
    OLI=" +[color=blue]
    >DataBinder.Eva l(Container.Dat aItem, "OLI") + "&OS=" +
    >DataBinder.Eva l(Container.Dat aItem, "Incoming Route") %
    >', 'title of
    >window goes here', 'toolbar=no, directories=no,[/color]
    location=no, status=yes,[color=blue]
    >menubar=no, resizable=no, scrollbars=no, width=300,[/color]
    height=200')>[color=blue]
    ><%#DataBinder. Eval(Container. DataItem, "OLI") %>
    > </a>
    >
    >
    >Any assistance would be much appreciated.
    >
    >
    >Cheers,
    >
    >Mike
    >
    >
    >
    >*** Sent via Developersdex http://www.developersdex.com[/color]
    ***[color=blue]
    >Don't just participate in USENET...get rewarded for it!
    >.
    >[/color]

    Comment

    Working...