Tuesday, March 3, 2009

Sachin Tendulkar at Madame Tussauds



CRICKETING LEGEND SACHIN TENDULKAR JOINS SPORTING GREATS AT MADAME TUSSAUDS LONDON

Record breaking cricketer, Sachin Tendulkar, will be the latest sporting great featured at the internationally renowned Madame Tussauds London when a new wax figure of the Mumbai-born batsman joins the A-list line up in April.
Tendulkar follows in the famous footsteps of Bollywood giants Amitabh Bachan, Aishwarya Rai, Shah Rukh Khan and Salman Khan and will join other cricket legends Brian Lara and Shane Warne to become the very first Indian sports personality to be portrayed.








Thanks,
Nitin Sharma

Disabling Right Click using JavaScript

Hey,
There are instances when we want to disable Right click on our Pages.The below script does the Magic.
Simply add the below snippet under Javascript Tag..


var message = "Sorry, Right Click is disabled.";

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = click;

-------------------------------------------------------------------------------------------------
Also,


The below Javascript Disables right click(Mouse and Kyboard) ,Control Key.Save it as with anyName.js extension and Simply Give the path of .js file under the Javascript Tag
So below is the Script:



var isnn, isie
if (navigator.appName == 'Microsoft Internet Explorer') //check the browser
{ isie = true }

if (navigator.appName == 'Netscape')
{ isnn = true }

function right(e) //to trap right click button
{
if (isnn && (e.which == 3 || e.which == 2))
return false;
else if (isie && (event.button == 2 || event.button == 3)) {
alert("Sorry, you do not have permission to right click on this page.");
return false;
}
return true;
}

function key(k) {
if (isie) {
if (event.keyCode == 17 || event.keyCode == 18 || event.keyCode == 93) {
alert("Sorry, you do not have permission to press this key.")
return false;
}
}

if (isnn) {
alert("Sorry, you do not have permission to press this key.")
return false;
}
}

if (document.layers) window.captureEvents(Event.KEYPRESS);
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
document.onkeydown = key;
document.onmousedown = right;
document.onmouseup = right;
window.document.layers = right;








Cheers,
Nitin Sharma

Problem in Auto Complete Extender

Guys,
If your are playing with AutoComplete Extender with all settings correct(including web service and Inline code).
And still it is not working then just check that whether in top of the web service, have you added :

[System.Web.Script.Services.ScriptService]


Hope this helps ....




Cheers ,
Nitin Sharma