473,493 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

anchor question

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!
Nov 17 '05 #1
1 887
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, butI'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!
.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4268
by: Niall Linden | last post by:
i have a form with lots of data, and when they click on a button it calls some javascript which sets values in hidden fields then posts to itself (usual stuff) now the problem is that i would...
3
5292
by: Ton den Hartog | last post by:
What is the difference between a link and an anchor in Javascript (DOM level 0) ? Ton -- Computer museum tonh: http://www.tonh.net/museum - 10.000 visitors !! GGGallery website generator:...
1
1197
by: Jack Fox | last post by:
I am saving some formated html fragments (text, some formatting tags and anchor tags) in a SQL text column then writing it to a page. Something strange is happening with the anchor tags within the...
2
1384
by: Frank Rizzo | last post by:
This maybe a very simple question, but i can't find the answer. I placed a button dead center in the middle of the form. How do I anchor it (or dock it or whatever), so that it always remains in...
3
3815
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
10
2669
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. ...
1
2162
by: sridev | last post by:
Hai all, I am working in ASP.NET. I my page I am having two user controls as usercontrol1, usercontrol2 In usercontrol1, i am having two anchor control and i will load the text for anchor...
5
1725
by: Randy Webb | last post by:
The list below has the current section number, proposed anchor name, and then the current title of that section. Some make sense, some don't. There are a few that don't have proposed anchor names...
3
4504
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a...
1
2819
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.