Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi is it possible to do the following:

Response.Redirect("file:///c:/somefolder/") or

Server.Transfer("file:///c:/somefolder/")

I get error message if I try the second and "page could not be displayed" if I try the first.

But it works just fine if I press ctrl+click from visual studio, what's the catch?

  • Administrators
Posted

You cannor redirect a client browser to a physical file path on the server like that. The c:\somefolder would need to be accessible as a website and given a proper url.

It might help if you gave a bit more detail about what you are trying to do and why this way.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
You cannor redirect a client browser to a physical file path on the server like that. The c:\somefolder would need to be accessible as a website and given a proper url.

It might help if you gave a bit more detail about what you are trying to do and why this way.

Thank you I was affraid it couldn't be done.

This is why:

I am making application which queries Indexing server. Indexing server is located on our local domain name server and it is indexing shared folders on every computer in network. User should search for files over the network easily and with great speed. When he finds the file he should be able to open it directly from that search application, files are mostly office documents and pictures. It seem logical (I don't know why) to me that it should be done as web application, but now I see that it is much better to abandon that and build windows application instead unless you have some suggestions.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...