Wrox Programmer Forums
|
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
 
Old September 9th, 2004, 08:07 AM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



 
Old September 9th, 2004, 08:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

How was your machine set up? Do you have .NET installed?

 
Old September 9th, 2004, 08:22 AM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.



 
Old September 9th, 2004, 08:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Has any other .aspx page worked on your machine?

 
Old September 9th, 2004, 10:17 AM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?"



 
Old September 9th, 2004, 05:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old September 9th, 2004, 05:21 PM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.




 
Old September 9th, 2004, 10:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old September 9th, 2004, 11:27 PM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



 
Old September 10th, 2004, 10:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
downloaded code Joseph BOOK: Beginning SQL 5 December 23rd, 2007 09:35 PM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
New.aspx works but login.aspx fails Validation nigelhamilton BOOK: ASP.NET Website Programming Problem-Design-Solution 8 September 13th, 2004 02:29 AM
HowTo Pass Form data from Page1.aspx to Page2.aspx dati ASP.NET 1.0 and 1.1 Basics 6 January 27th, 2004 06:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.