My app retrieves all servers on the domain and populates a listbox with the server name. When server is clicked in the listbox, the shares on that server is listed in another listbox. When the share listbox is clicked, details about the share is displayed in labels, etc.
What I am trying to do is have a link built with the unc path that is retuned that you can click on and open windows explorer to that unc. I have been able to do this when i create a link staticly, but i have not been able to get it working dynamically.
This is the code that am using with the ImageButton control.
Thanks in advance for you time.
What I am trying to do is have a link built with the unc path that is retuned that you can click on and open windows explorer to that unc. I have been able to do this when i create a link staticly, but i have not been able to get it working dynamically.
This is the code that am using with the ImageButton control.
Code:
protected void ibtnSharePath_Click(object sender, ImageClickEventArgs e)
{
HyperLink h = new HyperLink();
h.NavigateUrl = "file://" + lblRoot.Text;
}
Thanks in advance for you time.