Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
799 views
in Technique[技术] by (71.8m points)

asp.net - How to open asp:HyperLink.NavigationUrl in a new tab

Is there a way to open an asp:HyperLink.NavigateUrl in a new tab and not change location of the current?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

use <asp:HyperLink Target="_blank" /> actually depending on the users settings that may open a new window.

This works for a new tab in FF and Chrome, doesn't seem to work in IE (8), but this may depend on the doctype.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...