Posted on: 6/18/2014 3:14:21 PM | Views : 442

 Hi ,
In my application im trying to check dropdown value with folder name in ftp server.  But pathd.Contains (maincategory.SelectedItem.Text) always it enters into the loop. If I want to create the directory, it should go to else part but it goes to if part. Please any suggestion instead of path.contains(); I tried with directory exists it is also not wotking.
DropDownList clientid = (DropDownList)FormView1.FindControl("ddlClient"); DropDownList maincategory = (DropDownList)FormView1.FindControl("ddlmaincategory"); TextBox CategoryName = (TextBox)FormView1.FindControl("txtCategoryName"); string pathd = @"ftp://path" + clientid.SelectedItem.Text + "/" + maincategory.SelectedItem.Text+ "/"; if (pathd.Contains (maincategory.SelectedItem.Text )) { string path33 = @"ftp: ...

Go to the complete details ...