Hello,
I have gone through the forums and found a lot of help about this control, but I am looking for an easy way around what I have to do. I am using it only to grab a file from the portal. I want to get a relative path to the file so it can be used in a Image control as the image url.
Currently, I am taking this route:
DropDownList dl1 = ((DropDownList)ctlURL.FindControl("cboFolders"));
DropDownList dl2 = ((DropDownList)ctlURL.FindControl("cboFiles"));
string str = "portals/" + PortalAlias.PortalID.ToString() + "/" + dl1.SelectedItem.Text + dl2.SelectedItem.Text;
This, however, will fail with a file in the root. Is there an easier way? I don't want to use LinkClick, because i don't believe it will work (admittedly haven't tried).
Thank you,
John