Send a file that resides above the virtual directory to the browser using ASP.

How do you send a file that resides above the virtual
directory to the browser using ASP.
this doesn't work:
<% Response.Redirect(Server.Mappath("..\..\..\files\"
& rsgetefile("filename"))) %>

Basically you can't send a person to the location as that
would totally
defeat the purpose of placing files above the virtual root.
You can stream a
file from a page on the site if you use the physical location
on the server
to call it.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"lovewebdev" <[email protected]> wrote in
message
news:ec2paf$9ht$[email protected]..
> How do you send a file that resides above the virtual
directory to the
> browser using ASP.
>
> this doesn't work:
> <% Response.Redirect(Server.Mappath("..\..\..\files\"
> rsgetefile("filename"))) %>
>

Similar Messages

  • How do I create a .llb file that holds all the subVIs used in a VI?

    Hi
    I wish to create a .llb file that holds all the subVIs(~200) used in my main VI.
    When I open my main VI, and look into the 'show VI hierarchy' I see a lot of subVIs, so to copy all these subVIs into the library file is going to be really time consuming. I am hoping there is an option in Labview by which I could automatically put all these subVIs into one library file?
    Thank you
    Gautham Radhakrishnan
    Dept. Of Physics
    University of Toronto

    In your toplevel VI, go to "File..save with options".
    Now select "Development distribution", press save, and give it a name for the llb.
    LabVIEW Champion . Do more with less code and in less time .

  • How do I create a .llb file that includes only the subVIs used in a VI?

    hi....
    can anybody help me ...i wanna creat a library file that holds only the sub-VIs that are running in particular main VI .
    are there options for that in labview??

    I don't think understand the answer. From just the top level VI, do like I said and an llb will be created with the top level and all subVIs. You can also edit the llb (Tools>Edit VI Library) and make your main VI top level. A note of caution. An llb was originally designed as a means of storing VIs with extended names. With modern OS's allowing long file names, an llb is less useful except as a convenient means of distributing a group of VIs from one location to another. This would be done as a final distribution such as an instrument driver or to another developer who would then convert the llb to a folder. There are several problems with keeping the development VIs in an llb. One is that it doesn't work with any form of source code cont
    rol. Another is that a corrupt VI in an llb can and has made the entire llb unreadable so unless you are absolutely religous about backups, you made find yourself in deep trouble some day.

  • Uploading the file to server from the browser using JSP

    I have facing difficulty while uploading the file from the browser using user interface to the server or to the database. As previousy i was working in coldfusion, i find it very easy there with cffile command, but i am confused how to do that in JSP
    please reply soon, as i am stuck in my project because of that
    Sarosh

    Check out http://www.jspsmart.com , They have a nice free upload api that can be used w/ JSPs or Servlets. I hear O'Reilly has a nice one too. May as well use someone elses if they've done it already.

  • SWF files that reside above HTML

    How do you create a .SWF that seems to reside above html
    content. I have
    seen these being used increasingly as advertisements.
    Thanks.

    I have left the page up for quite a while to see if it is just taking longer to load that clip and that doesn't seem to be it.  I am just stumped and honestly not knowledgable on how websites and servers work - just know how to get my documents up so I can send links.

  • Swf files that scale with the browser

    I uploaded a swf file with dreamweaver as a stand alone window and it works fine.  How do I get the swf file to scale larger or smaller as the user adjusts their browser window larger and smaller?  I would like to get the swf file to scale along with the browser window.  I posted this in dreamweaver but was told this is an action script issue.

    I found a simple solution, and I believe it is what you are looking for.
    1. In Flash, go to File>Publish Settings
    2. Click on the HTML Tab
    3. Where is says Dimensions, select Percent
    4. Though it is probably default, make sure the width and height are both set to 100.
    5. Click ok then go to File>Publish
    Now your movie should scale with the browser window.
    If you do not have Flash, then you can simple work with this sample code below:
    <object width="100%" height="100%" id="xyz" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="xyz.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <embed src="xyz.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="xyz"
        align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    Notice how width and height are set to "100%"? That's all you need.

  • Since upgrading to Firefox 4 I cannot get PDF files to open in the browser using Acrobat 9.0

    I have my Application options set to "Use Adobe Acrobat 9.0 (default)," yet clicking on a pdf link causes the file to be downloaded and opened outside of the browser.
    I've checked for missing plug-ins, but that only leads me to a download page for Adobe Reader 10, which should not be necessary since I already have the full version of Acrobat.

    In my case it's with .puz files, which are crossword puzzle files used by sites like the New York Times and read by the application AcrossLite. I went into preferences and tried to change the action for the file type from "Save File" to AcrossLite but it would not take. Set it instead to "Always Ask" and then in the dialogue box selected AcrossLite and "always do this" and it gave an unknown error.
    This is FF 4 on a Mac.

  • Can you only share files that reside in the public folder

    We have a few macs on our home network, and sometimes we share files.
    But when I want to copy a file from say my wife's computer which is named "Jane's mac", when I connect, I only can copy a file from her shared folder.
    Is there any way to open up the files so they can be shared with everyone on the network, or do we have to put them in the shared folder.
    Obviously security is an issue as I wouldn't want anyone to be able to get access to our home folders, but just out of convenience, I was curious.
    Thanks.
    Russell

    I should add that this is on the computer on which you want to share from. Then you can set whatever user(s) that are set up on that computer that you want to be able to access those shared folders. The user can be one with an account on the computer from which you're sharing, or in the Address Book on that system, or some other places. Then from the other computer you connect using the user name and password you've allowed access.
    Hope this helps.

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

  • How can I send a file that CAN NOT be printed or saved by the recipient?

    How can I send a file that CAN NOT be printed or saved by the recipient?

    Impossible. PDF files don't stream, so they cannot be opened until they've been saved.
    You can truly prevent printing by using DRM, or ask nicely by using a permissions password (though that's ignored by non-Adobe software).

  • How do I send a file that is 2 mb via adobe send file now. I have the student version of cs 6

    How do I send a file that is 2 mb via adobe send file now. I have the student version of cs 6. Does this cost money, or can I send a certain size for free. I just want to send a file so I can access it on my ipad. It's a PDF that is too large to email.

    Adobe Send can certainly do that.
    Or you can do it manually:
    upload the file to Acrobat.com
    check the file on the Acrobat.com site and click Send
    use Create Anonymous Link and click the Create Link button
    copy the created download link and send it by email

  • Zen is playing the song that is above the one that i wanted to p

    hello,?i got the zen at 2 this afternoon, it said charge it for 4 hours... i did (i did 5 hours but it still did not take away the charging icon)?i disconnect it and start playing the music but the Zen is playing the songs that are above the song that i wanted to play... like say track is the the one i wanna play... its highlighted.. i click play, it plays track 2 which is above track .... wtf?helppp

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    If Roddy's suggestions fail to help continue with this:
    1 - open iPhoto and select a couple of photos.
    2 - use the Share ➙ iWeb ➙ Photo page menu option.
    Give it a couple of tries if the first one doesn't help.
    OT

  • How do I import a file that is on the desktop to iMovie?

    How do I import a file that is on the desktop to iMovie?
    I had some 8 mm film put onto DVD by yesdvd and now want to import the 3 hours of video into iMovie to edit and create a short story.
    I have created a dmg file on my desktop from the DVD but am at a loss as to what's next.  There are a bunch of files on the dmg file, including one that says video, which has a bunch of files in it that are video.  I assume I need to convert them to a format which iMovie likes.  Which one should I use, and which program should I get to do it?
    Once I have done that, where should I put the converted files and how do I work with them using iMovie?

    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    (unless you are running Lion in which case see below))
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.
    And from the TOU of these forums:
    Keep within the Law
    No material may be submitted that is intended to promote or commit an illegal act.
    Do not submit software or descriptions of processes that break or otherwise ‘work around’ digital rights management software or hardware. This includes conversations about ‘ripping’ DVDs or working around FairPlay software used on the iTunes Store.
    If you are running Lion:
    From the MPEG Streamclip homepage
    The installer of the MPEG-2 Playback Component may refuse to install the component in Lion. Apple states the component is unnecessary in Lion, however MPEG Streamclip still needs it.
    To install the component in Lion, please download MPEG Streamclip 1.9.3b7 beta above; inside the disk image you will find the Utility MPEG2 Component Lion: use it to install the MPEG-2 Playback Component in Lion. The original installer's disk image (QuickTimeMPEG2.dmg) is required.
    The current versions of MPEG Streamclip cannot take advantage of the built-in MPEG-2 functionality of Lion. For MPEG-2 files you still need to install the QuickTime MPEG-2 Playback Component, which is not preinstalled in Lion. You don't have to install QuickTime 7.

  • I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should lo

    I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should look and B is what happens after I have I opened several tabs. I can get it back to normal if I click on VIEW than click on customize. When the customize window appears FireFox returns to its normal state. I than click on the done box and go back to what I have been doing. I tried resetting FireFox back to default settings, but that did not correct the problem.
    This began happening about a month ago. Is there a way I can fix this problem? Thanks for your help.I don't know how to attach my 2 attachments that shows the problem I am having.
    [email address removed to protect your privacy and security]
    <! [email protected] -->

    I found the images here: https://support.mozilla.org/en-US/questions/977542#answer-501598

  • [O365] [EWSMA 2.0] [C#] [Windows] How do you create a contact folder that resides under the "My Contacts" node in OWA for O365

    In OWA for Office 365 you can create a contact folder that resides under the "My Contacts" node on "Peoples" tab. This folder ends up appearing under the "Contacts" folder in the exchange store. However, if you attempt to create
    a contact folder under "My Contacts" using Outlook it ends up under "Other Contacts" node in OWA for O365. Even if you attempt to position folder at the root of exchange store it still places it under the "Other Contacts" folder.
    The same is also true if you attempt to create a folder using EWS. Is there a way to create a folder using EWS that will appear under the "My Contacts" node in OWA for O365? I've tried the following with no luck:
    ContactsFolder myContactsFolder = new ContactsFolder(EwsService);
    myContactsFolder.DisplayName = "My contacts folder";
    // Set other properties
    myContactsFolder.Save(WellKnownFolderName.Contacts);
    and
    ContactsFolder myContactsFolder = newContactsFolder(EwsService);
    myContactsFolder.DisplayName = "My contacts folder";
    // Set other properties
    myContactsFolder.Save(WellKnownFolderName.MsgFolderRoot);

    Hi Tony,
    Lots of questions, here goes:
    CAN YOU: Yes.  You can create multiple server nodes.  You can add a server node by going into the Visual Administrator and clicking the add node button.  Make sure you have the required space on the physical drive to accomodate the space needed for the new node (hint: check the space of your existing node).
    PERFORMANCE: Yes, maybe.  If you are running on a 32bit OS, yes, this will definitely improve your performance as you are most likely memory constrained at the moment.  If you are running on an x64 or 64bit OS, you will find that performance will improve but only to the extent that you have memory free and that you have available CPU for the new node.  Remember Java processes are CPU hogs at times, especially during startup, and the more of them you have, the more CPU you need.  Also, watch out for garbage collections.  Be sure to tune your instance to with incrementals and fulls in mind.  Another benefit of multiple nodes is the HA you get by default when you add more than 1 node.  Now if 1 node should crash or restart, your portal is still running and accessible on the other node.
    PARAMETERS: Yes and no.  For java startup parameters, you can create a template under the global --> servers to have your parameters be all the same  When you create a node, those parameters will be used.   But, your currently configured child configuration parameters will not be reflected in the new instance since those parameters are taken from the global (parent).  This is what the global is for and you should consider adjusting the global if you want your child nodes to have consistant values.
    Let me know if you have more questions.
    -jwise

Maybe you are looking for

  • Can I change the way iCal displays events in Month view?

    I don't like the way iCal in the new OS displays events in Month view.  It's counter intuitive to have the time of the event be at the far right and grayed out.  I find myself staring and slowly scanning down the display just to find out when I have

  • ICal Alarm Preferences?

    Is there any way to change preferences in ICal so that an alarm is created automatically when you create an appointment? It's possible to do this in MS Outlook, so I'd hate to think that Mac doesn't have something similar. It's way too easy to forget

  • Placing music in a slideshow - can't move it where I want it

    I'm so frustrated...I'm doing a wedding slideshow; first time with the new version of iMovie. I am trying to place a second song in the slideshow, and I want it to start in the middle of one of my "fade out" transitions. But when I try to drag it, it

  • HP Quality Center Enterprise Integration problem

    Hello, I have a problem with the Solution Manager Enterprise Integration for Quality Center. I configured the adapter without any problems. Anything set up, BUT when I try to export the Business Blueprint in solar01 using send to quality center I alw

  • Match does not sync new songs on a Smart Playlists to iPhone. This has worked in the past, but stopped with 12.1.

    I have tried to turn Match off and on several times on both the computer (iTunes 12.1.0.50) and iPhone 6 (64 GB).  It syncs correctly to my laptop, but not to iPhone 6 or 2nd Gen iPad (64GB) both running IOS 8.1.3.  This seemed to work fine prior to