opening text files in browser through hyperlinks

Hi

I am using a ultrawegrid which has a column which contians names of text files which are present in D drive of server. I am able to create a hyperlink to the file by appending the absolute path in asp 2.0 (.net 2005). But when I click on that link the file is not opening.

I want to open the file on whose name the user clicks, in a new browser window. Can anybody help me on this

Sohan



Answer this question

opening text files in browser through hyperlinks

  • Mehmet Metin

    Hi

    The best way to start Security permission setting is the Walkthrough about the security. I will suggest you to read any Walkthrough about Security in MSDN. I have no metrial for VS 2005 at this time.



  • merrickchaffer

    Hi

    If you place the file in the Web Application Folder or in any Innner folder in the Web Application then it will be accessable through Web Browser other wise it will not be accessable. Because the asp .NET has no persmission to read file from other location. Or you have to set the permission to do so



  • Veeral

    Hi,

    Thanks for the answer. Can you tell me how to set permission to read file from other location.

    Thanks,

    Sohan


  • opening text files in browser through hyperlinks