Problem with ASP

This is a discussion on Problem with ASP within the A Brief History of Cprogramming.com forums, part of the Community Boards category; this question might not be the question this board usually gets, but c if you can help me out. I ...

  1. #1
    Unregistered
    Guest

    Problem with ASP

    this question might not be the question this board usually gets, but c if you can help me out.
    I started learning ASP a couple of days ago and i'm trying to try out the things i'm learning, but my IE wouldn't open a *.ASP file. Whenever i try to open an asp file, it gives me the SAVE AS... window thing. I have a microsoft personal server setup and a access database for the server. I don't know how to fix this. The *.asp files from the internet works fine, but i can't open a asp file from my computer.

    the question is not very clear, and i apologize for that. Any help would be appreciated.
    thnkx

  2. #2
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    804
    I posted that question guys, my stupid internet got disconnected while i was writing that.
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: commander_android@hotmail.com []*[]

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Asp files need to be run through a webserver for IE to view them....

    Have a go at setting up IIS ( the webserver that comes with Win2K++)

    A while back when I was fooling with it I came across a prog on Programmer's Heaven that allows you to type in a special URL to the APS file on your hard drive and run them straight into IE.....It doesnt need the webserver to be properly configured and allows you to test your scripts.......

    Have a look over there

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Err....not sure, but I think this is what I was talking about - here

  5. #5
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    I think PWS (Personal Web Server) comes with other versions of windows and should do the same thing.

    You should find something that will help you set it up here:
    http://www.developerfusion.com/asp/
    VC++ 6

  6. #6
    aur entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    Go to your folder where you ASP file is located. Go to properties, click the web sharing tab. Select "share this folder". Give the folder an alias (i.e. - a nickname). Click all of the options - read, execute, scripts.

    Now go to your control panel. Open up the Network icon. Click on the Identification tab. You should see the name of your PC appear. Go to IE, in the address bar type in http://thenameofyourpc/foo (foo being the alias of your folder).

    Hope this helps.

  7. #7
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    804
    thanks Stealth! it's working now.

    and fordy, i was downloading the program because it sounded interesting, BEFORE i saw the 400 $ price tag!! I simply can't
    afford a program leagaly!

    VBprogrammer: I had the personal webserver, I just didn't know how to use it to get th scripts working!


    thnkx for your help guys!

    NOW I"M READY TO LEARN ASP!!!!!!!!!!

  8. #8
    aur entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    No worries . ASP is a b!tch sometimes, but its easy enough once you get the hang of it.

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by Commander
    thanks Stealth! it's working now.

    and fordy, i was downloading the program because it sounded interesting, BEFORE i saw the 400 $ price tag!! I simply can't
    afford a program leagaly!
    Yeah...I noticed that on download....but I got it up and working... cant remember if it was time limited, but I thought it might do the trick until you got the webserver up and running.....

  10. #10
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    804
    Originally posted by [stealth]
    No worries . ASP is a b!tch sometimes, but its easy enough once you get the hang of it.
    your right, asp IS a ..........! I couldn't get this code ( i copied it out of a sample i got with my book) to work.
    Code:
    <% '----------------  Content Rotator ---------------------
        set randomNews = Server.CreateObject("MSWC.ContentRotator")
        Response.Write randomNews.choosecontent("Content.txt")
       '----------------  End Content Rotator -----------------%>
    and content.txt looked something like this:
    Code:
    %% #3 // Sky Surfers
    The sequel to "Sky Surfers" will be coming out in theatres 
    next month.  A new team member will be added with special 
    powers, and a romance may be starting between Ilsa and Gripper.
    %% #2 // Incredible Rocket
    More movie news, Josh Collins best seller  "Adam Ansley's 
    Incredible Rocket" will be made into a movie.  The cast is 
    still being picked and filming starts sometime after the 
    New Year.
    %% #3 // Salami
    "The Salami That Ate Cleveland" is breaking box office records 
    everywhere.  Tickets have been sold out for days for the new 
    sf thriller comedy.  Be sure to see it if you love farce and 
    suspense.
    %% #4 // Chase the Vision
    Marrissa Denning's new book "Chase the Vision" will be released 
    this week.  It's the latest in her Dream Chaser series.
    %% #3 // Eternity and Beyond
    Look for a surprise season ender on "Eternity and Beyond".  Will 
    Russ finally tell Gena where he comes from?
    have any idea of what's wrong?
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: commander_android@hotmail.com []*[]

  11. #11
    aur entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    Can you attach the files (all not just the ASP file)?

  12. #12
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    804
    I will attach the files.
    here is the index.asp and content.txt and some of the other files you might need to run the adrotator thing.
    I think they are still a read-only file, you might have to change that.
    hope i added all the files..
    Attached Files Attached Files
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: commander_android@hotmail.com []*[]

  13. #13
    aur entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    I'll take a good look at it tommorow and get back to you

  14. #14
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    804
    this is the error :: Server.CreateObject Failed

    I have no clue how to fix that... i have all the server files, atleast i YHINK i have all the server files
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: commander_android@hotmail.com []*[]

  15. #15
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by Commander
    this is the error :: Server.CreateObject Failed

    I have no clue how to fix that... i have all the server files, atleast i YHINK i have all the server files
    Is the Content Rotator component installed correctly in your web server... (I think it's controt.dll) What's the full error message you get?

    and are you using PWS? If so, I'm not sure these components are installed by default. You may be able to d/l them from somewhere if you really want to.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21