Hello,
I am new to this field. Help me to solve this problem.
ERROR:
System.ArgumentOutOfRangeException was caught
Message=Specified argument was out of the range of valid values.Parameter name: index
Source=mscorlib
ParamName=index
StackTrace:
at System.Char.IsNumber(String s, Int32 index)
at CalculatingBusinessDayCSharp._Default.cmdCalculateBusinessDays_Click(Object sender, EventArgs e) in D:\businessdate\New Folder (3)\CalculatingBusinessDayCSharp\CalculatingBusinessDayCSharp\Default.aspx.cs:line 46
InnerException:
VulpesPosted Sep 29, 2014, 4:26 AM
However, the index you're passing is out of range - it's either less than 0 or greater than or equal to the length of the string. The last character in the string will of course have an index of its length minus 1.