Results 1 to 14 of 14

Thread: ASP Newbie Please help

  1. #1
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts

    ASP Newbie Please help

    Have installed IIS, .Net Framework, but still my simple asp.net page won't work.

    I keep getting an error saying that I haven't got vb installed on the server.

    Any ideas??

  2. #2
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    By the way,

    this is my code:

    <script language="vb" runat="server">
    Sub Page_Load()
    time.text=Hour(now) & ":" & Minute(Now) & ":" & Second(Now)
    End Sub
    </Script>

    <html>
    <head>
    <title>The Punctual Web Server</title>
    </head>

    <body>
    <h1>Welcome</h1>
    In server land the time is currently:
    <asp:label id="time runat="server" />
    </body>
    </html>

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    Are you using visual studio or coding by hand?
    Last edited by Mart; 05-12-2003 at 02:58 PM.

  4. #4
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    cheers mate, have changed that but it still doesn't work.

    I don't think that there should be a problem with the code - i copied it out of a book.

    is there likely to be a problem with my setup. the .net framework does contain everything I should need doesn't it?

  5. #5
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    I just tried your code in my IIS and it worked fine.


    Has your file got an .aspx extension ?

    I tried it with .asp and get the error your describe.

  6. #6
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    Cheers, found a missing "

    and moved folder that the file was in.

    Will have a play with file structure later.

  7. #7
    Senior Member Shad's Avatar
    Join Date
    Jul 2003
    Location
    In front
    Posts
    2,782
    Thanks
    23
    Thanked
    42 times in 25 posts
    Well done, usually small errors that throw you.

    It's a great language to learn, stick with it
    Simon


  8. #8
    Senior Member
    Join Date
    Oct 2003
    Posts
    2,069
    Thanks
    4
    Thanked
    7 times in 3 posts
    But not as great as PHP
    Twigman

  9. #9
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    Unfortunately I'm developing a system for the RAF, and for the foreseeable future they love micros**t. That means access/sql server and asp .

    Lets hope they wake up to opensource pretty soon. (I think the french government has made the switch recently)

  10. #10
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    PHP maybe better than ASP but ASP.NET is far better than both. String typing, intellisense and the compiler make life a lot easier.

  11. #11
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    I've suddenly become all confused

    What's the difference between asp and asp.net

    Mart, you mentioned a compiler, but I didn't have to compile the code above, and I didn't compile the asp stuff I did a couple of years ago.

    I'm coding by hand, using dreamweaver MX for the visual stuff

  12. #12
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    738
    Thanked
    1,609 times in 1,048 posts
    Originally posted by Mart
    PHP maybe better than ASP but ASP.NET is far better than both. String typing, intellisense and the compiler make life a lot easier.
    PHP5 ?

    btw, this topic deserves a new thread tbh, lets not crash this one !
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  13. #13
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    You don't have to explicitly compile the code for the page you have. The default behaviour for ASP.NET is to use just in time conpilation when the page is first requested.

    You may notice a delay when you first visit your page but not on subsequent visits. The delay is due to the JIT compiler, it actually creates a temporary .dll file that represents your aspx page.

    Each time the page is requested ASPNET checks to see if the timestamp on the aspx page is different to the compiled one. If they differ it recompiles the page.

    If you add int n = 100/0; somewhere in your code you should get the compilation error page returned.

    If you get a runtime error whilst loading your page the error page returned has a link to the path of the temp dll.

    I have to confess I know next to nothing about php5 so looks like a new thread would be a good place to start.

  14. #14
    Member
    Join Date
    Aug 2003
    Location
    Wimbledon
    Posts
    141
    Thanks
    0
    Thanked
    0 times in 0 posts
    ASP and ASP.NET

    ASP is an older technology, files have .asp etension, server side code is normally vbscript

    ASP.NET is a newer technology, files have .aspx or .asmx extension. Server side code written in any of the .NET languages (c#, VB.NET)

    Both can co-exist on the web server, IIS routes the incoming requests to the correct one by using file extensions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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