Google chrome plugins doesn't change the way you program, so just let the client know as a pop-up message
<script type="text/javascript"> function CheckPlugin() { var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; function findPlugin(ext) { var thisExt, findExt; for (var n = 0; n < navigator.plugins.length; n++) { //alert("n value"+ navigator.plugins.length); for (var m = 0; m < navigator.plugins[n].length; m++) { //alert("m length:"+navigator.plugins[n].length); thisExt = navigator.plugins[n][m].description.toLowerCase(); // alert("this exten"+thisExt); findExt = thisExt.substring(0, thisExt.indexOf(" ")); //alert("findexes"+findExt); if (findExt == ext) return (true); } } return (false); } if (is_chrome ==true) { //alert("chrome browser"); if (findPlugin("acrobat")) { //alert("Adobe Acrobat pdf viewer"); return true; } else { alert("please disable the chrome pdf viewer and enable the Adobe Acrobat PDF viewer \n Please follow the steps:\n 1.Open the new tab 'chrome://plugins/' type the Address. \n 2. Click the Enable link in 'Adobe Acrobat' field. \n 3. click the Disable link in 'Chrome PDF Viewer'. \n 4. Close the tab and you can open the PDf files in chrome browser."); return false; } } else { //alert("not chrome"); } } </script>
In a hyperlink, write this:
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/PDFFiles/AGENCY PROFILE APP.pdf" onclick="return CheckPlugin();">Agency profile app</asp:HyperLink>
I think this helps more.
source share