Posted on: 8/30/2012 8:31:11 AM | Views : 481

Hi all, suppose I've retrieved a file from a server whose name had been replaced with a GUID using the following code:
DataTable dt = new DataTable("INFO"); dt.Columns.Add("url", typeof(string)); string[] fileEntries = Directory.GetFiles(Server.MapPath("~/myFolder/")); dt.Rows.Add("~/myFolder/" + Path.GetFileName(fileName)); grid.DataSource = dt; grid.DataBind(); it will have a random string as its name. If I wanted to modify the above code to change the file name to what ever I want how would I do that? Thanks for your help.
...

Go to the complete details ...