Wednesday, December 1, 2010

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string


{
{
additionalcharges =
}
if (transinfodum.additionalcharge.ToString() != "")if (transinfodum.additionalcharge.ToString().Substring(0, 1) == "-")"Discount " + transinfodum.additionalcharge.ToString().Substring(1);else{
additionalcharges = transinfodum.additionalcharge.ToString();
}
}
 

this is takeplace when i was getting a sub string from a null string value.
solved it...

No comments:

Post a Comment

How to Create Events Using Microsoft Graph API with Delegated Permissions and MSAL.js

Microsoft Graph API provides powerful capabilities to interact with Microsoft 365 services. In this guide, we’ll explore how to create calen...