System.ArgumentException:in treeview
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I am creating a dynamic treeview from sql database while running the page i get the following error
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 52.
I am writing the small code snipet where the error is occuring
private void GenerateTreeView()
{
SqlConnection con=new SqlConnection("server=server-name;database=pubs;user id=sa;password=sa;" + Server.MapPath("~/data/Tree.sql"));
con.Open();I dont know what causing it this error. sasi