target settings?

J

js

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>
 
C

Craig Deelsnyder

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.
 
J

js

Thanks Craig.

Craig Deelsnyder said:
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.
 

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

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top