开发者

how to navigate for a new window[IE] using datalist control

i using a datalist control i am开发者_StackOverflow binding with hyperlink control

<asp:Hyperlink ID="lbURL" runat="server" Text='<%# 
Eval("URL") %>' />

so now this hyperlink would contain an url that points to some web site so once user click on this link a new IE window should be opened like if the url contains" https://stackoverflow.com/questions/ask", yahoo.com any thing like is

so once user clicks open the web site

any help would be great . looking forward for a solution thank you


I think you are looking for the target="_blank" option.

<asp:Hyperlink ID="lbURL" runat="server" target="_blank" Text='<%# Eval("URL") %>' />

w3schools reference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜