Wednesday, September 29, 2010

How to pass a list of values or array to SQL Server stored procedure?

Hi,
Guys its very useful. It is very nice.

http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm

Uploading a files and downloading it

Uploading a files like .jpg, .gif, .doc, .txt files.
Please refer this below url. it is very nice.
http://imar.spaanjaars.com/414/storing-uploaded-files-in-a-database-or-in-the-file-system-with-aspnet-20

Selecting a single Radio Button in Grid View

Step 1: Create a function in java script
function RadioCheck(rb) {
var gv = document.getElementById("<%=gvLeft.ClientID%>");
var rbs = gv.getElementsByTagName("input");
var row = rb.parentNode.parentNode;
for (var i = 0; i < rbs.length; i++) { if (rbs[i].type == "radio") { if (rbs[i].checked && rbs[i] != rb) { rbs[i].checked = false; break; } } } }

Call this function in Grid View item template where ever the radio button is there as shown below:
asp:RadioButton ID="chk1" runat="server" onclick="RadioCheck(this);"

Saturday, January 9, 2010

steps to remove genuine virus file in windows

steps to remove Genuine
-----------------------


1.click onthe ctrl+alt+del search for wgatray.exe

2.search same file in the c:\windows or c:\windows\system32\

3.delete the files at the same time.

4.Restart your system in safe mode

5.goto run dialog->type regedit->

6.goto hkey_local_machine->software->microsoft->
winnt->currentversion->winlogon->notify->delte wgalogon file

Code for word wrap for a row in table

script type="text/javascript"



// Needed for IE 7+ and Firefox.

function windowOnLoad()

{

// If Internet Explorer less than version 7...

if ( navigator.appName.indexOf('Microsoft') != -1 )

{

var versionValue = new String(navigator.appVersion);

var msieIndex = versionValue.indexOf('MSIE');



if ( msieIndex >= 0 )

{

versionValue = versionValue.substr(msieIndex, versionValue.length-msieIndex);

versionValue = versionValue.replace('MSIE ', '');

}



if ( parseInt(versionValue) < spantagarray =" document.getElementsByTagName('span');" i="0;" if="" classname="=" wordwrap="" var="" spantext="spanTagArray[i].innerHTML;" innerhtml="spanText.replace(/(.*?)/g,">');

}

}

}



window.onload = windowOnLoad;



/script