I have a drop down that reads in drives from my local machine. There is another DDL that I would like to link to the drive DDL. So whichever value is selected, I would like to pass that to the second DDL to display directories on that drive, although I am running into some troubles. A newline constant keeps popping up. Any ideas? Thanks
//get value from first Drive drop down
var driveValue = ddl_listDrives.SelectedValue.ToString();
//pass it in directories to be called when btn is clicked
var directorys = Directory.GetDirectories("@" + driveValue + ":\");