anchor question

  • Thread starter Thread starter Mike P
  • Start date Start date
M

Mike P

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
 
Back
Top