开发者

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

开发者 https://www.devze.com 2022-12-11 07:25 出处:网络
i using a datalist control i am开发者_StackOverflowbindingwith hyperlink control <asp:Hyperlink ID=\"lbURL\" runat=\"server\" Text=\'<%#

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

精彩评论

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