Hi All,
I have a tree view which has parent nodes of each letter of the alphabet. The root node will be the customers name that relate to the parent node letter.
I also have a gridview which is binded to the treeview control to display all customer records of the selected alphabetical letter.
When I click expand the tree view and click on the customer's name, I get this error.:
Please bear in mind that I have only been using ASP.net for a week.
Thanks for your help.
JN
Input string was not in a correct format.
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.FormatEx ception: Input string was not in a correct format.
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:
[FormatException : Input string was not in a correct format.]
System.Number.S tringToNumber(S tring str, NumberStyles options, NumberBuffer& number, NumberFormatInf o info, Boolean parseDecimal) +2753507
System.Number.P arseInt32(Strin g s, NumberStyles style, NumberFormatInf o info) +102
System.String.S ystem.IConverti ble.ToInt32(IFo rmatProvider provider) +43
System.Convert. ChangeType(Obje ct value, TypeCode typeCode, IFormatProvider provider) +293
System.Web.UI.W ebControls.Para meter.GetValue( Object value, String defaultValue, TypeCode type, Boolean convertEmptyStr ingToNull, Boolean ignoreNullableT ypeChanges) +257
System.Web.UI.W ebControls.Para meter.get_Param eterValue() +92
System.Web.UI.W ebControls.Para meterCollection .GetValues(Http Context context, Control control) +282
System.Web.UI.W ebControls.SqlD ataSourceView.I nitializeParame ters(DbCommand command, ParameterCollec tion parameters, IDictionary exclusionList) +344
System.Web.UI.W ebControls.SqlD ataSourceView.E xecuteSelect(Da taSourceSelectA rguments arguments) +1250
System.Web.UI.D ataSourceView.S elect(DataSourc eSelectArgument s arguments, DataSourceViewS electCallback callback) +84
System.Web.UI.W ebControls.Data BoundControl.Pe rformSelect() +154
System.Web.UI.W ebControls.Base DataBoundContro l.DataBind() +99
System.Web.UI.W ebControls.Grid View.DataBind() +24
System.Web.UI.W ebControls.Base DataBoundContro l.EnsureDataBou nd() +92
System.Web.UI.W ebControls.Base DataBoundContro l.OnPreRender(E ventArgs e) +33
System.Web.UI.W ebControls.Grid View.OnPreRende r(EventArgs e) +74
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +148
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +233
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +233
System.Web.UI.P age.ProcessRequ estMain(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +4435
I have a tree view which has parent nodes of each letter of the alphabet. The root node will be the customers name that relate to the parent node letter.
I also have a gridview which is binded to the treeview control to display all customer records of the selected alphabetical letter.
When I click expand the tree view and click on the customer's name, I get this error.:
Please bear in mind that I have only been using ASP.net for a week.
Thanks for your help.
JN
Input string was not in a correct format.
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.FormatEx ception: Input string was not in a correct format.
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:
[FormatException : Input string was not in a correct format.]
System.Number.S tringToNumber(S tring str, NumberStyles options, NumberBuffer& number, NumberFormatInf o info, Boolean parseDecimal) +2753507
System.Number.P arseInt32(Strin g s, NumberStyles style, NumberFormatInf o info) +102
System.String.S ystem.IConverti ble.ToInt32(IFo rmatProvider provider) +43
System.Convert. ChangeType(Obje ct value, TypeCode typeCode, IFormatProvider provider) +293
System.Web.UI.W ebControls.Para meter.GetValue( Object value, String defaultValue, TypeCode type, Boolean convertEmptyStr ingToNull, Boolean ignoreNullableT ypeChanges) +257
System.Web.UI.W ebControls.Para meter.get_Param eterValue() +92
System.Web.UI.W ebControls.Para meterCollection .GetValues(Http Context context, Control control) +282
System.Web.UI.W ebControls.SqlD ataSourceView.I nitializeParame ters(DbCommand command, ParameterCollec tion parameters, IDictionary exclusionList) +344
System.Web.UI.W ebControls.SqlD ataSourceView.E xecuteSelect(Da taSourceSelectA rguments arguments) +1250
System.Web.UI.D ataSourceView.S elect(DataSourc eSelectArgument s arguments, DataSourceViewS electCallback callback) +84
System.Web.UI.W ebControls.Data BoundControl.Pe rformSelect() +154
System.Web.UI.W ebControls.Base DataBoundContro l.DataBind() +99
System.Web.UI.W ebControls.Grid View.DataBind() +24
System.Web.UI.W ebControls.Base DataBoundContro l.EnsureDataBou nd() +92
System.Web.UI.W ebControls.Base DataBoundContro l.OnPreRender(E ventArgs e) +33
System.Web.UI.W ebControls.Grid View.OnPreRende r(EventArgs e) +74
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +148
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +233
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +233
System.Web.UI.P age.ProcessRequ estMain(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +4435
Comment