Posts

Showing posts from November, 2010

How do I create shared assemblies

How do I create shared assemblies ? How to install an assembly in the Global Assembly Cache in Visual Basic .NET or in Visual Basic 2005? A shared assembly is one that is used by multiple applications on the machine. A shared assembly must have a name that is globally unique. The .NET Framework supports these naming requirements through a technique called strong names. Shared assemblies must have a "strong name" consisting of the name of the assembly, the version, a 64 bit hash of a public key (called a ´token´) and the culture. To create a strong name for an assembly (that is, to generate a public/private key pair), you'll have to use another utility called sn.exe. In this article, we will create a Visual Basic 2005 component called myGAC. We will also create a key file named mykeys.key. We will sign our component with this key file and place it in Global Assembly Cache To create a Component we have to create a Class Library project by using Visual Studio .NET. Step ...

Disable the Anchor Tag Using JavaScript

function DisableTheAnchorTag() { var btnA= document.getElementById("name of the a tag"); if(btnA!= null) { btnA.onmouseover=function y(){this.style.cursor='default'} btnA.setAttribute('onclick', "void(0);"); } }

Getting Query parameters using Javascript

<script language='JavaScript'> // get the current URL var url = window.location.toString(); //get the parameters url.match(/\?(.+)$/); var params = RegExp.$1; // split up the query string and store in an // associative array var params = params.split("&"); var queryStringList = {}; for(var i=0;i { var tmp = params[i].split("="); queryStringList[tmp[0]] = unescape(tmp[1]); } // print all querystring in key value pairs for(var i in queryStringList) document.write(i+" = "+queryStringList[i]+"<br/>"); </script>

How to create a connection string file

1. Create a text file. 2. Change a file extension as UDL 3. Now Double Click the file and Test connection string. 4. close 5. Open a file with notepad 6. We can have connection string