Archive for the ‘Java Script’ Category

Transfer focus to button at run-time, if you have more than one buttons

Tuesday, December 15th, 2009
Code for ASP.Net in C#.Net:
TextBox1.Attributes.Add(“onkeydown”, “if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById(‘” + Button1.UniqueID + “‘).click();return false;}} else {return true}; “);

Fill HTML DropDown Using Javascript

Sunday, October 7th, 2007

function FillDropDown()
{

JavaScript to Check Characters in a String

Friday, October 5th, 2007

//The function given below is use to validate the string in correct format or not. In case of correct format the function will return true as result otherwise will return false.

<script language=’javascript’ type=’text/javascript’>

function IsLettersDigitsChars(strString)
{

JavaScript: To Print the Data of Particular Area

Monday, October 1st, 2007

function CallPrint(DivId)
{