 |
BOOK: ASP.NET Website Programming Problem-Design-Solution  | This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

September 9th, 2004, 08:07 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Download.aspx gets downloaded
I am testing the downloaded ThePhile sample web site.
When I click the download link in FileManager, I get the usual File Download dialog, but it says it is going to download "download.aspx", NOT the file I selected. I can step through the code and see that theFile.FullName is correct (the file I selected) in Page_Load of the Download class.
Anyone have an idea?
Thanks
|
|

September 9th, 2004, 08:09 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
How was your machine set up? Do you have .NET installed?
|
|

September 9th, 2004, 08:22 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, .NET is set up and other features of FileManager that I have tried work OK. Clicking a doc file for example opens it in WORD as I would expect.
|
|

September 9th, 2004, 08:27 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Has any other .aspx page worked on your machine?
|
|

September 9th, 2004, 10:17 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
To get to the place where clicking the download link is failing, I had to go throtgh the main default.aspx, then select the filemanager link to go to browsefiles.aspx, which correctly displays the files and folders in TherPhile, then I can click the download link, and watch it step through the code in the Page_Load of doenload.aspx. Is that the kind of thing you mean by "other aspx files working?"
|
|

September 9th, 2004, 05:02 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
What do you see for a URL and QueryString when you hover over the download link in IE?
This is the kind of thing you should see:
http://localhost/Modules/FileManager...=/filename.ext
Eric
|
|

September 9th, 2004, 05:21 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I just see the word "Download", which I thought was by design. When I hover over the pencil I see "Edit Attributes", and that works fine, taking me to a javasript prompt to edit attributes.
|
|

September 9th, 2004, 10:15 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm not talking about the hint (also called a Tool Tip). I'm talking about the status bar at the bottom of IE: make sure View, Status Bar is checked. Then hover over the download button and look at the status bar at the bottom.
Eric
|
|

September 9th, 2004, 11:27 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry...
Here is what I see when I hover over the Book Notes dodc file :
http://localhost/ThePhileVB/WebModul...hePhileVB/Wrox Website Programming Book Notes.doc
|
|

September 10th, 2004, 10:56 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
That looks OK to me. I tried it with filenames that have spaces, and that also works for me.
Can you rename this file in the File Manager?
Did you set up Windows Authorization for the File Manager the way the book describes (using NTFS security to restrict access to files)?
Instead of using Windows Auth, I changed mine to use Forms Auth.
Eric
|
|
 |