Results 1 to 3 of 3

Thread: ASP not displaying

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    ASP not displaying

    Hi,

    I have a html page as follows
    <html>
    <body>

    <a href = "main.aspx"> Click Here for a ASP.NET Demo</a>

    </body>
    </html>


    I also have a ASP page as follows
    <html>
    <body bgcolor="yellow">
    <center>
    <h2>Hello</h2>
    <p><%Response.Write(now())%></p>
    </center>
    </body>
    </html>

    When I open the html page in IE and click on the link, the ASP page appears but doesn't disply the stuff inside % signs.
    Does anyone know why?
    Don't anthropomorphize computers -- they hate it

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: ASP not displaying

    Originally posted by vbgladiator
    Hi,

    I have a html page as follows
    <html>
    <body>

    <a href = "main.aspx"> Click Here for a ASP.NET Demo</a>

    </body>
    </html>


    I also have a ASP page as follows
    <html>
    <body bgcolor="yellow">
    <center>
    <h2>Hello</h2>
    <p><%Response.Write(now())%></p>
    </center>
    </body>
    </html>

    When I open the html page in IE and click on the link, the ASP page appears but doesn't disply the stuff inside % signs.
    Does anyone know why?
    You're missing a header line at the top that tells it that there's ASP in the page.... <%@script="vbscript" runat="server"%> I think is how it goes....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    I cut and pasted your code and it worked fine for me. You don't need a header line or anything. Do any of your .aspx pages work?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width