hi, how to set th target settings so when click the link, will open in a new
window? Thanks
code:
<asp:HyperLink ID="HyperLink1" NavigateUrl='<%#
EditURL("ItemID",DataBinder.Eval(Container.DataIte m,"ItemID")) %>'
Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image
ID="Image1" Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit"
Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink> 2 1301
On Mon, 03 Apr 2006 08:37:21 -0500, js <js@someone.com> wrote: hi, how to set th target settings so when click the link, will open in a new window? Thanks code: <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataIte m,"ItemID")) %>' Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image ID="Image1" Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink>
What you have for Target is correct; works here with a stripped-down
sample. Verify something else in the code above (other attribute values)
is not causing an issue, check the resulting HTML and see if there's other
issues causing the link to not open properly.
--
Craig
Microsoft MVP - ASP/ASP.NET
Thanks Craig.
"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:op***************@cdeelsn-ws.ab.farm... On Mon, 03 Apr 2006 08:37:21 -0500, js <js@someone.com> wrote:
hi, how to set th target settings so when click the link, will open in a new window? Thanks code: <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataIte m,"ItemID")) %>' Visible="<%# IsEditable %>" runat="server" Target="_blank"><asp:Image ID="Image1" Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit" /></asp:hyperlink>
What you have for Target is correct; works here with a stripped-down sample. Verify something else in the code above (other attribute values) is not causing an issue, check the resulting HTML and see if there's other issues causing the link to not open properly.
-- Craig Microsoft MVP - ASP/ASP.NET This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Micky Doyle |
last post by:
Hi
I have a two frame frameset, one posting a form to the other via a
target tag on the form.
When the frameset is viewed via HTTPS with the IE security settings
set to high, the form value...
|
by: Robert Atkinson |
last post by:
Does anyone know how to replace <a href="url" target="_blank"> with
window.open, keeping the window settings the same, i.e. same size, same
toolbars, etc.
I've tried document.open, and...
|
by: randau |
last post by:
I would like to use the Link Target attribute, but am
inhibited by the likelihood of a newly opened browser window
completely hiding the Parent browser window. Thus offering
the illusion that...
|
by: Clint Herron |
last post by:
Howdy!
I posted this question on CSharpCorner.com, but then realized I should
probably post it on a more active newsgroup. This will be my only cross-post.
I'm creating a game engine, and...
|
by: yxq |
last post by:
Hello
I use the code in accessories to get the LNK file target, but i found some
error. If i have installed two OS (A and B, on two partition C:\ D:\), when
i login A OS, i want to get the lnk...
|
by: yxq |
last post by:
Hello
I use the
code(http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp) to get
the LNK file target, but i found some
error. If i have installed two OS (A and B, on two partition C:\...
|
by: Roland Riess |
last post by:
Hi all,
as an absolute beginner with all web matters I'm sure there are still
many things that I do net understand yet - so please point me to the
right direction whereever you feel that I'm...
|
by: PawelSokolowski |
last post by:
Hi all,
After changing VS2003 to VS2008 my C++ app stopped working on Windows NT 4.0
It says, that this is not valid application or something like this.
Is there any settings concerning target...
|
by: Erwin Moller |
last post by:
Hi group,
I encoutered page validation error, but I don't know a way around.
The page has the following doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |