Buy Questpond's video subscriptions on
huge discount
.
Online: 1458
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
Disable right click on Pdf using asp.net
Posted by
Pradeepmanne
under
ASP.NET
on 10/8/2013 |
Points: 10
| Views : 12886 | Status :
[Member]
| Replies : 4
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
hi,
Is it possible to open pdf file in asp.net web page without print,save and save as etc options
or how to Disable right click on Pdf using asp.net
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Brahmam
on: 10/9/2013
[Member]
Starter
|
Points: 25
0
<script language="JavaScript" type="text/javascript">
//Message to display whenever right click on website
var message = "Sorry, Right Click have been disabled.";
function click(e) {
if (document.all) {
if (event.button == 2 || event.button == 3) {
alert(message);
return false;
}
}
else {
if (e.button == 2 || e.button == 3) {
e.preventDefault();
e.stopPropagation();
alert(message);
return false;
}
}
}
if (document.all) {
document.onmousedown = click;
}
else {
document.onclick = click;
}
</script>
brahmam
Pradeepmanne
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Samirbhogayta
on: 10/17/2013
[Member]
Starter
|
Points: 25
0
hi..
//To disablerightclick in the application
document.onmousedown = disableclick;
status ="Right click option is not allowed";
function disableclick(e)
{
if (event.button == 2)
{
alert(status);
return false;
}
}
SAMIR
Sr. Software Engineer
Pradeepmanne
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Nithish
on: 5/23/2018
[Member]
Starter
|
Points: 25
0
Hi, do you got any solution for disable right click on pdf ?
Pradeepmanne
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Logitechlivechat
on: 5/31/2018
[Member]
Starter
|
Points: 25
0
Logitech Live Chat presents to you the snappiest arrangement on a solitary call. We are always available for you to resolve your problem. For any doubt in your Logitech device call us at our Logitech Live Chat +1-800-712-0805 (Toll-free) USA. Logitech Support is a team of experts, ready to serve you 24*7 through our top-notch services
http://www.logitechsupportnumber.com/services-support/logitech-live-chat
Pradeepmanne
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...