Silverlight open uri link being blocked by browser -


the problem simple annoying. have button , click event opens link

htmlpage.window.navigate(uri, "_blank"); 

but keeps being blocked browser. searched lot. seems using method no 1 mentioned new tab/windows being blocked. should do?

update

problem solved. seems navigate outside web pages, hyperlinkbutton should used. not blocked browser.

"to enable user navigation other web pages, can use hyperlinkbutton control , set navigateuri property external resource , set targetname property open new browser window." --- msdn, silverlight - external navigation

<hyperlinkbutton navigateuri="http://www.microsoft.com" content="go microsoft" targetname="_blank" /> 

ps. htmlpage.popupwindow blocked browser. seems me htmlpage.window.navigate , htmlpage.popupwindow useless without user manually disable block.

have considered system.windows.browser.htmlpage.popupwindow(uri, "_blank", null) in silverlight 3 , 4?

instead of last null, can set bunch of options via htmlpopupwindowoptions


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -