Response title
This is preview!
function
ValidateTextBoxInputValue(event, elementID, maxValue) { var textBox = document.getElementById(elementID); var currentVal = textBox.value; var currentSelection = parseInt(String.fromCharCode(event.keyCode), 10); if (currentSelection > maxValue) { return false;}
if(currentSelection < 1){ return false;}
return true;}
private
void RegisterScripts(){
string keydownScript = "ValidateTextBoxInputValue(event," + pageTextBox.ClientID + ", " + pageCount.ToString() + ");";pageTextBox.Attributes.Add(
"OnClientKeyDown", keydownScript);}
© 2013 jQuery Foundation
Sponsored by and others.