Click here to Skip to main content
15,891,529 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProtect a webpage Pin
rowdykuttan24-Jan-09 18:30
rowdykuttan24-Jan-09 18:30 
AnswerRe: Protect a webpage Pin
DevCubed24-Jan-09 19:53
DevCubed24-Jan-09 19:53 
AnswerRe: Protect a webpage Pin
Sundar_R24-Jan-09 20:16
Sundar_R24-Jan-09 20:16 
AnswerRe: Protect a webpage Pin
Guffa25-Jan-09 3:44
Guffa25-Jan-09 3:44 
AnswerRe: Protect a webpage Pin
Perspx25-Jan-09 4:34
Perspx25-Jan-09 4:34 
AnswerRe: Protect a webpage Pin
Todd Smith25-Jan-09 14:30
Todd Smith25-Jan-09 14:30 
AnswerRe: Protect a webpage Pin
Christian Graus25-Jan-09 14:39
protectorChristian Graus25-Jan-09 14:39 
AnswerRe: Protect a webpage Pin
Rajdev Ramasamy26-Jan-09 20:55
Rajdev Ramasamy26-Jan-09 20:55 
Hi,
The following sample will help you out for the points 1 and 4 for sure. Please try this and reply.

<html>
<head>
</head>


<!-- To disable Print Screen feature -->
<body onload=setInterval("window.clipboardData.setData('text','')",2) oncontextmenu="return false" onselectstart="return false">
Test Text
<!--  To disable right click in the web page -->

<script language=JavaScript> 
function clickIE() {
if (document.all) {
return false;
}
} 
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) {
return false;
}
}
} 
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
} 
else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
} 
document.oncontextmenu=new Function("return false") 
</script>


<!-- To Disable Text Selection -->

<script>

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>

</html>


Thanks,
Rajdev K R
Questiondropdown list Pin
billcodes24-Jan-09 17:23
billcodes24-Jan-09 17:23 
AnswerRe: dropdown list Pin
somasekhara77724-Jan-09 22:48
somasekhara77724-Jan-09 22:48 
AnswerRe: dropdown list Pin
sudhanvag25-Jan-09 2:32
sudhanvag25-Jan-09 2:32 
AnswerRe: dropdown list Pin
CooperWu25-Jan-09 2:38
CooperWu25-Jan-09 2:38 
QuestionReading javascript modified value from a readOnly TextBox [modified] Pin
SmartSpider24-Jan-09 9:56
SmartSpider24-Jan-09 9:56 
AnswerRe: Reading javascript modified value from a readOnly TextBox Pin
Not Active24-Jan-09 13:23
mentorNot Active24-Jan-09 13:23 
GeneralRe: Reading javascript modified value from a readOnly TextBox Pin
SmartSpider25-Jan-09 7:54
SmartSpider25-Jan-09 7:54 
GeneralRe: Reading javascript modified value from a readOnly TextBox Pin
Not Active25-Jan-09 8:08
mentorNot Active25-Jan-09 8:08 
QuestionHow to create an array of buttons then access attributes in event handler Pin
scjsb24-Jan-09 7:48
scjsb24-Jan-09 7:48 
AnswerRe: How to create an array of buttons then access attributes in event handler Pin
sudhanvag25-Jan-09 7:41
sudhanvag25-Jan-09 7:41 
Questioncan't get to display image in gridview Pin
Meax24-Jan-09 5:58
Meax24-Jan-09 5:58 
AnswerRe: can't get to display image in gridview Pin
CooperWu25-Jan-09 2:28
CooperWu25-Jan-09 2:28 
QuestionHelp! ASP.NET cannot do simple arithmetic... Pin
Ben Jern24-Jan-09 5:02
Ben Jern24-Jan-09 5:02 
AnswerRe: Help! ASP.NET cannot do simple arithmetic... Pin
Ben Jern24-Jan-09 5:38
Ben Jern24-Jan-09 5:38 
AnswerRe: Help! ASP.NET cannot do simple arithmetic... Pin
Colin Angus Mackay24-Jan-09 7:25
Colin Angus Mackay24-Jan-09 7:25 
GeneralRe: Help! ASP.NET cannot do simple arithmetic... Pin
Ben Jern24-Jan-09 14:26
Ben Jern24-Jan-09 14:26 
QuestionRestricting session sharing between multiple tabs in a browser. Pin
Praveen_S24-Jan-09 2:53
Praveen_S24-Jan-09 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.