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.DataItem,"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>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.DataItem,"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.s7fvk8rx75dg5d@.cdeelsn-ws.ab.farm...
> On Mon, 03 Apr 2006 08:37:21 -0500, js <js@.someone.com> wrote:
>
> 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
Tuesday, March 13, 2012
target settings?
Labels:
asp,
click,
hyperlink1,
link,
net,
newwindow,
settings,
target,
thankscodeltasphyperlink
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment