Sunday, November 9, 2008

Generating the conectionstring automatically using notepad

Dear friends
we can generate the connectionstring for any of the db automatically
which we can use in dotnet
1)open the notepad
2)save it as save as --->any name with extension as udl(EX: "ravi.udl")
3)then check it bydouble clicking it and select the db source and give the permissions and more
4)then open the notepad and check the text file for the connectionstring yu want.

use that in ur dotnet application.

Regards
Ravishanker Maduri

Saturday, November 1, 2008

Disabling the right clik

To disable the Right click functionality in your site or page




use below in your page thats it it disables the whole right click.



/////////////////////Disable right mouse click Script/////////////////////
var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message); return false;
}
}
function clickNS4(e){
if (document.layersdocument.getElementById&&!document.all)
{
if (e.which==2e.which==3){ alert(message); return false; }
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;}else
if (document.all&&!document.getElementById)
{
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
/////////////////////end///////////////////////////////////////////
//////////////////////disable window status message///////////////////

document.onmouseover = function ( e ) {

if ( !e )
e = window.event; var el = e.target ? e.target : e.srcElement; while ( el != null && el.tagName != "A" ) el = el.parentNode; if ( el == null ) return; if ( e.preventDefault ) e.preventDefault(); else e.returnValue = true;};
///////////////////////////end///////////////////////////////