Problem in asp code

Discussion in 'C#' started by imsoflyoh, May 9, 2009.

  1. #1
    im starting a social network site and im trying to get this asp welcome code to work and it wont. All it is doing is saying welcome, but in the address bar it is showing right. Check it out to see if you know whats wrong.

    thekoolaid.x10hosting.com
     
    imsoflyoh, May 9, 2009 IP
  2. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Classic ASP:
    Welcome <%=request.querystring("fname")%> <%=request.querystring("lname")%>
     
    nyxano, May 9, 2009 IP
  3. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It still is not working, did you try it.
     
    imsoflyoh, May 9, 2009 IP
  4. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    When I view the source of your page, I see ASP Code... I shouldn't be able to see that.
     
    nyxano, May 9, 2009 IP
  5. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I dont get it. Do you mean the 2nd page. And how do i fix it.
     
    imsoflyoh, May 9, 2009 IP
  6. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    View the source of your second page. You will see both your HTML and your ASP code in the source. Does the server the page is on support ASP?
     
    nyxano, May 9, 2009 IP
  7. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hmmmmmmm i checked the source already i thought that you were suppose to put asp into html but ill check it
     
    imsoflyoh, May 9, 2009 IP
  8. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    im usi c-panel and i dont know how to change it. but it does say html type file if thats what you mean.
     
    imsoflyoh, May 9, 2009 IP
  9. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You can put ASP Code where ever you want, so long as it is enclosed in with a <% and a %>. However, you are NOT supposed to see that code when viewing the source of a page using your browser.

    Are you sure your hosting company supports the ASP Scripting language?
     
    nyxano, May 9, 2009 IP
  10. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    yea it said they do but if they dont can i do something to use asp
     
    imsoflyoh, May 9, 2009 IP
  11. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ASP is a scripting language installed on the server itself. If the server doesn't have that installed on it - there is nothing you can do... except change to a different hosting provider.
     
    nyxano, May 9, 2009 IP
  12. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Are you sure you are using .asp extension page or an asp hosting?
     
    JJnacy, May 9, 2009 IP
  13. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    yea im sure it is .asp but it seems like asp is not used widley
     
    imsoflyoh, May 9, 2009 IP
  14. nyxano

    nyxano Peon

    Messages:
    417
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #14
    ASP is used quite widely, but that doesn't mean that all hosting companies have it. Looking at X10Hosting, they support ASP.net v2.0 but only via mod_mono to emulate ASP.net on Linux. This isn't the same as Classic ASP.

    You would need to find a hosting company that supports Classic ASP, and uses Windows as their server operating system, not Linux. Unless you find a Linux host that supports Chilisoft ASP or SunONE ASP - ASP emulators designed for Linux.
     
    nyxano, May 9, 2009 IP
  15. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #15
    you can run an asp page with one line simple code as the following
    to see if your host run asp or not

    <%=now%>

    if it work then your server time will be showed via asp

    good luck
     
    JJnacy, May 9, 2009 IP
  16. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    o thank you but i guess ill try to learn php. php just seems confused but thanks
     
    imsoflyoh, May 9, 2009 IP
  17. imsoflyoh

    imsoflyoh Guest

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    ok i got the php to work but it is changed a little bit but i might change it back to ask first and last name
     
    imsoflyoh, May 9, 2009 IP