Hi expert,
Please help: I am creating a asp.net tree view and the following vb.net code throws me an error:
Input string was not in a correct format.
[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat)
Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value, NumberFormatInfo NumberFormat)
[InvalidCastException: Cast from string "<p OnMouseOver=popup('Directorie" to type 'Double' is not valid.]
Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value, NumberFormatInfo NumberFormat)
Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value)
Code:
----------------------------------------------------------------------------------------------------------------------------------------
TreeView1.GetNodeFromIndex("0").Text = "<p OnMouseOver=popup('Directories:_" + dir.GetDirectories().Length + "@brFiles:_" + dir.GetFiles().Length + "') " + "OnMouseOut=kill()>_dir</p>"