G
Guest
Ever since I upgraded to Windows XP SP2, I started noticing that the
RequiredFieldValidator on a textbox on one of my ASP.Net pages was taking a
REALLY LONG TIME to validate in my IE client! The CPU on my machine was at
100% utilization and after about 30 seconds, I got control back of IE. I
debugged the issue, and this is what I found out! When I paste a fairly large
amount of text into a textbox, (around 350K), the ValidatorTrim(s) inside of
the WebUIValidation.js aspnet_client scripts is called...
function ValidatorTrim(s) {
var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
return (m == null) ? "" : m[1];
}
Using IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158, the hang was occuring on
the s.match regular expression which is supposed to trim the contents of the
textbox! On my colleague's machine, using Windows XP SP1 (not SP2), this same
function calculates VERY quickly! On machines in our office using Windows XP
SP2, this function takes a VERY long time!!! This is awful! Has the
implementation of Internet Explorer jscript regular expressions changed? Has
Microsoft introduced a bug into jscript/javascript? Any ideas anyone? Help!
RequiredFieldValidator on a textbox on one of my ASP.Net pages was taking a
REALLY LONG TIME to validate in my IE client! The CPU on my machine was at
100% utilization and after about 30 seconds, I got control back of IE. I
debugged the issue, and this is what I found out! When I paste a fairly large
amount of text into a textbox, (around 350K), the ValidatorTrim(s) inside of
the WebUIValidation.js aspnet_client scripts is called...
function ValidatorTrim(s) {
var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
return (m == null) ? "" : m[1];
}
Using IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158, the hang was occuring on
the s.match regular expression which is supposed to trim the contents of the
textbox! On my colleague's machine, using Windows XP SP1 (not SP2), this same
function calculates VERY quickly! On machines in our office using Windows XP
SP2, this function takes a VERY long time!!! This is awful! Has the
implementation of Internet Explorer jscript regular expressions changed? Has
Microsoft introduced a bug into jscript/javascript? Any ideas anyone? Help!