How do I make a file:// hyperlink that works in both IE and Firefox?

前端 未结 5 747
太阳男子
太阳男子 2020-12-30 08:50

In my documentation web pages, I often need to provide links to locations, files and applications (.xbap) stored on the intranet.

In IE, this works fine with URLs f

5条回答
  •  情深已故
    2020-12-30 09:33

    Paste following link to directly under link button click event, otherwise use javascript to call code behind function

    Protected Sub lnkOpen_Click(ByVal sender As Object, ByVal e As EventArgs) 
        System.Diagnostics.Process.Start(FilePath)
    End Sub
    

提交回复
热议问题