How can you create a route that accept an undefined number of strings? The folder browser should be able to browse the specified folder and all the sub folders. Using JQuery to get the folders back from the server. The problem is how to build the JQuery?
$.ajax({
type: "POST",
url: "http://localhost:30218/Data/Folder1/Folder2/etc",
dataType: "json",
success: function (data) { }
});
I mean, how can you create a MVC 2 url that could be like 10 subfolders deep? I don't want to define a static number of maximum folders that it can contain. How can you create the url and what routing should you use? Querystrings for subfolders?