locked
Hyperlink on GridView - Direct to the network folder RRS feed

  • Question

  • User-900007357 posted

    Hi:
    I need to go to the net work folder (Ex: \\files\POLICIES\CURRENT_DATE) from the FOLDER hyperlink field. FOLDER is column in a database table. I have following code, but when I click on folder it doesn't do anything. Your assistance is highly appreciated. 

    Dakshina

    <asp:gridview ID="grv" runat="server" AutoGenerateColumns="False">
    <Columns>
    <asp:BoundField DataField="ORG_NAME" HeaderText="Organization Name" />
    <asp:HyperLinkField DataNavigateUrlFields="FOLDER" DataTextField="FOLDER" HeaderText="Folder" />
    </Columns>
    </asp:gridview>

    Monday, October 29, 2018 4:06 PM

All replies

  • User839733648 posted

    Hi daksri,

    I need to go to the net work folder (Ex: \\files\POLICIES\CURRENT_DATE) from the FOLDER hyperlink field.

    As far as I'm concerned, it is related to a security issue.

    I have following code, but when I click on folder it doesn't do anything.

    It seems impossible that you open a hyperlink which is localed in file manager from browser directly.

    If you want to do something with the content of file from the folder, I suggest that you could try another way like uploading files.

    One idea you could refer to the link: https://stackoverflow.com/questions/6320924/coding-web-page-to-display-name-and-link-to-all-files-in-a-folder 

    Best Regards,

    Jenifer

    Tuesday, October 30, 2018 6:39 AM