Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: What's ASP.NET?

  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts

    What's ASP.NET?

    I didn't want to make the first thread, but now that someone's made the very useful "eek" thread, I can ask a question. What's the difference between ASP and ASP.NET?
    If you're reading this, it may already be too late!

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    I don't know much about it myself, however compared to classic ASP, ASP.Net is part of Microsoft's .Net technology, doesn't use vBscript as it's default language and is apparenly a lot easier to code.

    http://www.aspnetfaq.com/default.aspx?CategoryId=49
    http://lists.evolt.org/archive/Week-...01/058396.html
    ..might help.

  • #3
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts

    eek


  • #4
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post
    from what ive heard in encourages lazy coding techniques but is powerfull none the less

  • #5
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Cool, I'm all about lazy.
    If you're reading this, it may already be too late!

  • #6
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Quote Originally Posted by Serex
    from what ive heard in encourages lazy coding techniques but is powerfull none the less
    Hmmm, obviously you have never used it. I would be interested to hear more about how using it encourages lazy coding. IMO using ASP.NET vs using Classic ASP makes the programmer better at coding.

    You are right in one thing. ASP.NET is much more powerful than classic ASP.

    Classic ASP uses scripting languages on the server side and has support for VBScript and JScript built in, and has extensions to use python and PerlScript. Most people will use VBScript. ASP.NET use the complete version of the language, and supports any.Net compliant language including APL, C++, C#, COBOL, EIFFEL, FORTH, FORTRAN, JAVA, JScript, PASCAL, PERL, PYTHON, RPG, VISUAL BASIC 7. Most people use VB.Net (VB 7) or C#.

    In classic ASP using VBScript as the server side language, all variables are of the type variant, and do not have to be declared before use. Leading to lazy programming techniques. In ASP.NET variables must be declared and typed before use.

    Code in classic ASP is interpreted by the ISA server. Code in ASP.NET is compiled, therefore runs faster.


    Code in classic ASP is quite often intermingled with html on the page. Code has to be placed where you want the output to appear. (If done with sub routines the call to the sub routine is placed where the output is to appear.) ASP.NET code is often in a seperate code behind file, or it is in a script block at the top of the page. If you are working in a team environment the person doing the HTML can make changes to layout etc without effecting the code.

    Classic ASP uses COM objects to accomplish things like database connections, uploads, email. These COM .dll's must be registered on the server, the server will need to be stopped and restarted before they can be used. ASP.NET doesn't need COM objects to do any of these.

    In classic ASP, display of data from a database generally uses a recordset and a loop to naviagate each row of the database. In ASP.Net database display is done using either the DataGrid, DataList, or Repeater. These are all web controls. Database display never uses a loop.

    Debugging in Classic ASP is difficult without Visual Studio. VBScript offers On Error Resume Next, the errors generated are vague at best. VB.Net uses the Try Catch error handling block. Errors produced are not vague and show the code and the line number as well as a detailed description of the error.

    Those are some of the differences others may point out more.

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    ^ Really good comparison, miranda.

    Another item I would point out is that Classic ASP makes several server-side objects available to the scripting language involved, including Request, Response, Session, Cookie, and Server. There's one or two others as well, but can't think of them at the moment. ASP.NET, however, has many many more intrinsic objects available to the server-side scripting - can't think any of those at the moment either! But because ASP.NET is part of the .NET framework, it has access to everything that is in the framework...e.g. classes, methods, controls, etc.

  • #8
    Regular Coder
    Join Date
    Dec 2002
    Location
    UK
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice comments.

    I learned classic ASP about 3 years ago, found it v. easy to leanr.
    Year ago I started learning .NET (VB & C#) and then started using Web Matrix to create web app's via asp.net and didnt really like it.

  • #9
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    I don't like ASP, in any form..at all - I stick to learning PHP.

  • #10
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I think ASP is cool, but I like PHP better too.
    If you're reading this, it may already be too late!

  • #11
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Quote Originally Posted by weazel
    I don't like ASP, in any form..at all - I stick to learning PHP.
    I personally do work in PHP, ASP Classic, and ASP.Net. I messed with CFM a few years ago too, and decided to leave that alone. I base the decision on which platform to use on my clients needs. You can never know too many programming languages or technologies.

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by miranda
    You can never know too many programming languages or technologies.
    Exactly right. I agree. The more you have on your resume, the more attractive you will be to a potential employer. Besides, knowing their similarities and differences will help you to decide which would be best to use in a particular situation.

    Personally, I have a lot of experience with Classic ASP and PHP...I hope to spend some time this summer learning the .NET framework and using ASP.NET. I like to learn new things, and it could be useful someday.
    Last edited by Grant Palin; 07-09-2005 at 01:06 AM.

  • #13
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    The ASP.NET 2.0 framework will blow you away when you get your hands on it. If you are learning the language spend the money and buy the watered down version of Visual Studio.

    There is a learning curve at first since it is no scripting language. I say jump on the language if you get the chance.

    My 2 cents.
    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #14
    Regular Coder
    Join Date
    Jan 2005
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am no ASP.net expert, and nor do I claim to be, but dont some of the data grid web controls encourage sloppy code? If you take a look at the generated html from one it is often non-w3c valid. Is it possible to make asp.net web controls output valid code?

  • #15
    Regular Coder
    Join Date
    Feb 2005
    Location
    Texas
    Posts
    472
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Well here's a question. Am I going to be able to use ASP without that IIS thing?
    If you're reading this, it may already be too late!


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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