Hi team,
I am having PDF path stored in database. I want to show PDF in new browser window when user clicks on button.
But on PDF right click option should be disable. SO, user can only view/read the PDF but won't able to download.
I am able to disable Print and download option of PDF as below
string url = "SLKGlobalNDAC.pdf" + "#embedded=true&toolbar=0&navpanes=0";
string s = "window.open('" + url + "', 'popup_window', 'width=600,height=600,left=100,top=100,resizable=yes,{ display: none; }');";
ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
Please help.