Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > anchor question

Reply
Thread Tools

anchor question

 
 
Mike P
Guest
Posts: n/a
 
      08-05-2003
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!
 
Reply With Quote
 
 
 
 
Ravikanth[MVP]
Guest
Posts: n/a
 
      08-05-2003
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!
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Named anchor question Mark Parnell HTML 3 06-28-2005 08:17 PM
Anchor question Steve Peterson ASP .Net 2 10-05-2004 10:11 AM
anchor question Thomas Scheiderich HTML 8 09-09-2004 10:06 PM
Anchor Bay Dawn of the Dead SE...question... Joseph S. Powell, III DVD Video 4 06-19-2004 03:02 PM
Anchor style question TheKeith HTML 3 10-21-2003 05:07 AM



Advertisments