Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 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 March 23rd, 2004, 01:59 AM
Authorized User
 
Join Date: Sep 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 9 - Admin Menu not working

Hi again Imar!

I am referring your Beginning Dreamweaver MX book and on chapter 9 now.

The problem I am facing is in the “Page Monitoring” section. In the ‘Try It Out’. I am not getting the output from the admin.asp page correctly.

When I click on the ‘Popular First Page’ link, all it shows is follows:

The most popular first page for new users is: with 0 hits
The most popular first page for returning visitors is: with 0 hits

It doesn’t show the directory name nor the file name, and it always shows 0 hits, no matter how many times I visit the related pages.

Since it did not work for a long time, I at last copied all the files from your source code and ran the program. But still the result is the same.

What could be wrong?

Shubhada.


 
Old March 23rd, 2004, 03:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Shubhada,

If the code from the download has the same result, it must be something again with your setup.

Did you change anything in the setup? Is TheSoccerSite located under C:\Inetpub\wwwroot? Is the folder TheSoccerSite still marked as a Virtual Directory under IIS?

It's important that TheSoccerSite is marked as a VD, so it will have its own Session and Application objects. Only then will the code in global.asa fire correctly, and will the page counters work correctly.

Stupid question: did you open the Events.asp page before you hit the admin page?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 23rd, 2004, 04:21 AM
Authorized User
 
Join Date: Sep 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar!

I checked everything again. TheSoccerSite is located under C:\Inetpub\wwwroot. TheSoccerSite is still marked as a virtual directory under the PWS and it is given all three permissions - Read, Execute and Scripts.

Yes, I did visit the Events page 3-4 times before I hit the admin page, but still I am not getting the proper result.

Last time when I had the problem the code in global.asa was not firing properly because I did not have the site marked as an application. But after correcting that problem global.asa started firing properly - and I did not make any changes after that.

Shubhada.


 
Old March 23rd, 2004, 05:00 AM
Authorized User
 
Join Date: Sep 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is some more information if it helps:

Under the PWS, TheSoccerSite is defined as follows:

Directory: C:\TheSoccerSite (and not C:\Inetpub\wwwroot\TheSoccerSite)Alias: TheSoccerSite

(All three permissions are given).

 
Old March 23rd, 2004, 08:20 AM
Authorized User
 
Join Date: Sep 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar!

I re-read the article you had suggested in the last topic discussion. I have also been searching on google the whole day for the possible solution. But nothing seems to work.

:(

Should I give up?

Shubhada.


 
Old March 23rd, 2004, 10:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Shubhada,

No, don't give up. We should be able to figure this out.

Can you do a little test for me? In the global.asa, add the following in Session_OnStart():

Session("Test") = "Test Value"

Then in home.asp, add the following somewhere between the body tags:

<%
  Response.Write("Session Test has a value of " & Session("Test"))
%>

What do you see? Do you get the text value?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 23rd, 2004, 02:20 PM
Authorized User
 
Join Date: Sep 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar!

After adding the code I get the following value displayed in the home.asp:

Session Test has a value of Test Value

- Shubhada.


 
Old March 23rd, 2004, 02:29 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right. So that does work. Strange again.

Can you send me the files for this example, including the global.asa file you just used in the test scenario? Make sure that the global.asa also contains the code for the example. (You are using the same global.asa file in both cases, aren't you??)

Please don't forget to include the functions.asp file.

If you want, you can put the entire TheSoccerSite folder in a ZIP file and send it to me.

If you send me an e-,ail through my profile page, I'll reply so you can send me the attachment.
Please zip all files before you send them to me.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 24th, 2004, 02:46 AM
Authorized User
 
Join Date: Sep 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar!

I have sent you an e-mail through your profile page.
I'll send the zip file containing all the files as soon as you reply.

Shubhada.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu not working on server - Bugbase snbelani BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 12 September 8th, 2008 02:02 PM
Chapter 11/12 Admin Login's msnodgrass BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 23rd, 2006 09:45 PM
I can't login admin account all chapter ? pop99 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 4th, 2006 05:17 AM
Chapter 6 / Appendix B - Admin / WDABase Classes scgtman BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 May 20th, 2006 05:54 AM
Menu shortcut keys not working! ebs Access 0 December 22nd, 2004 07:57 AM





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