Index and length must refer to a location within the string. Parameter name: length
i get a error.. let me knw how to solve itIndex and length must refer to a location within the string.
Parameter name: length
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
Source Error:
Line 131:
Line 132:
Line 133: if (dealwith.Substring(0,8 ).ToString() == "|")
Line 134: dealwith = dealwith.Substring(1, dealwith.Length - 1);