anchor question

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top