Click here to Skip to main content
15,895,011 members

Comments by maverick12131 (Top 21 by date)

maverick12131 21-Dec-13 1:05am View    
function Validation() {
$("[id$=txtFileName]").keypress(function(event) {
var regex = new RegExp("^[-a-zA-Z0-9' ]+(\\.[-a-zA-Z0-9' ]+)?$");
if (event.which != 40 && event.which != 41 && event.which != 42 && event.which != 43 && event.which != 44) {
var str = String.fromCharCode(!event.charCode ? event.which : event.charCode);
if (regex.test(str))
return true;
}
event.preventDefault();
return false;
})
}

even after escaping the backslash, the reg ex dosen't accept a dot
maverick12131 20-Dec-13 2:19am View    
its not a mandate to have the dot always.
its just that the dot should be persent only 1 time (zero or one occourance)

also the reg ex you mentioned is not accepting any dots. Not even 1
^[-a-zA-Z0-9' ]+(\.[-a-zA-Z0-9' ]+)?$
maverick12131 16-Oct-13 0:29am View    
I don't have problem displaying the popup.
the dropdown in the popup dosent bind the given data and remains blank.- that's the problem
maverick12131 16-Jul-13 9:16am View    
what difference will it make anyway
maverick12131 16-Jul-13 9:03am View    
also the WebDataGrid1 is showing "null" while debugging.