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 siteany 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
精彩评论