title image


Smiley No overload for method 'TreeNode' takes '1' arguments
Hi,



probiere das:



try

{

SqlConnection connect = new SqlConnection(connString);

SqlCommand cmd = connect.CreateCommand();

cmd.CommandText = "SELECT DISTINCT Sites.PortalName FROM Docs CROSS JOIN Sites";



connect.Open();

SqlDataReader reader = cmd.ExecuteReader();

while (reader.Read())

{

tree.Nodes.Add(new TreeNode(reader["PortalName"].ToString()));

}

connect.Close();



Fehler: "No overload for method 'TreeNode' takes '1' arguments" --> tree.Nodes.Add(new TreeNode...



Was ist daran falsch??



Danke für jede Hilfe!



Gruß Andi



geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: