Open a Folder From ASP.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UmFndQ==?=

    #1

    Open a Folder From ASP.NET

    Hi All

    I am trying to open a folder ( "D:\screenshots ") by clicking a button in the
    web page, which opens the directory/folder in windows explorer in VS. But if
    i deploy the same application and install it, the same code doesnot work. The
    code i have written is as follows:

    Protected Sub Open_Click(ByVa l sender As System.Object, ByVal e As
    System.EventArg s) Handles Open.Click
    Dim sFolderString As String
    sFolderString = "D:\screenshots "
    Process.Start(s FolderString, "")
    End Sub

    Can anyone help me out...
  • John Timney \(MVP\)

    #2
    Re: Open a Folder From ASP.NET

    You cant do this - it will try and open the folder on the webserver and that
    would display the window that process.start will invoke on the webservers
    desktop!

    Get your self a folder explorer example off the web.


    Regards

    John Timney (MVP)




    "Ragu" <Ragu@discussio ns.microsoft.co mwrote in message
    news:F3A0FE2C-45E8-44FD-88BA-D19A7494CFF6@mi crosoft.com...
    Hi All
    >
    I am trying to open a folder ( "D:\screenshots ") by clicking a button in
    the
    web page, which opens the directory/folder in windows explorer in VS. But
    if
    i deploy the same application and install it, the same code doesnot work.
    The
    code i have written is as follows:
    >
    Protected Sub Open_Click(ByVa l sender As System.Object, ByVal e As
    System.EventArg s) Handles Open.Click
    Dim sFolderString As String
    sFolderString = "D:\screenshots "
    Process.Start(s FolderString, "")
    End Sub
    >
    Can anyone help me out...

    Comment

    Working...