Server Error in '/' Application.

startIndex cannot be larger than length of string.
Parameter name: startIndex

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: startIndex cannot be larger than length of string.
Parameter name: startIndex

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex]
   System.String.Substring(Int32 startIndex, Int32 length) +13148821
   aftab_project.ContactUS.DataList5_ItemDataBound(Object sender, DataListItemEventArgs e) +573
   System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) +122
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +153
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +659
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +65
   System.Web.UI.WebControls.BaseDataList.DataBind() +84
   System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +62
   System.Web.UI.WebControls.BaseDataList.CreateChildControls() +71
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0