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 21
  1. #1
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP Beginner: Tutorials?

    I'm just starting to learn ASP, I already know PHP and Java fairly well, so I am already familiar with basic programming concepts. I used the W3 schools tutorial as a starting point, but what other tutorials are good for a beginner who doesn't need programming 101 explained?

    Also, what's the difference between ASP and ASP.NET?

    I know these questions are fairly simple, but I'd appreciate any help that can be provided.
    $guiness &= new sixpack();
    $guiness->chug();

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    ASP is old and crappy and few people use it on purpose any more. ASP.NET is the new ASP, with tons of improvements.

    4 Guys From Rolla rock for both.
    http://www.4guysfromrolla.com/

    MSDN (Microsoft) has tons of tutorials for .NET.
    http://msdn2.microsoft.com/en-us/asp.net/default.aspx
    http://asp.net/

    Honestly, unless you really need ASP for legacy apps, there is little reason to learn it. .NET is utterly and completely different. Plus, as a PHP coder, you are bound to prefer C# to VB, and Classic ASP only supports VBScript (jscript doesn't count, no one used it and there are very few examples, much less tutorials, on it).

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your reply, I've only started with this stuff in the last few days and it's blowing my mind with what you can do. Why is ASP.net less popular than PHP, or is it? How is the server load vs. with PHP and how available is hosting and so forth?
    $guiness &= new sixpack();
    $guiness->chug();

  • #4
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts

  • #5
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    I disagree with you, nikkiH...

    I find that .NET is much slower, more server-intensive, and, although has some cool techniques in it, is not that much more useful than Classic ASP.

    I can do as much in ASP as I can in .NET, including AJAX (which was touted as not compatible with ASP).

    It's all in how you use the functionality and for what purposes.

    Just my 0.02...

  • #6
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Well, I do code intranet web applications, so I might be a bit biased towards enterprise level tools. I have Visual Studio and ajax.net and a ton of other tools (both official and unofficial), plus a really nice web server.

    PHP is more popular because it's free, among other things. .NET is expensive to develop well (you really do need Studio to leverage the power), hosts cost more, and it is more server intensive. PHP has a huge community and lots of free and open source apps, so you rarely have to completely re-invent the wheel.

    However, I would still never choose Classic ASP. If I want an app that is not .NET, non-enterprise, I'd choose, well, PHP.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #7
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    And again, this thing won't let me edit. LOL

    Consider this the edit.

    Well, I do code intranet web applications, so I might be a bit biased towards enterprise level tools. I have Visual Studio and ajax.net and a ton of other tools (both official and unofficial), plus a really nice web server.
    I cannot do these things in Classic ASP (at least not without hassle or 3rd party tools):
    * Multiple file uploads
    * Automatic form validation
    * SQL parameters (not dynamically generated sql, which is open to injection attacks)
    * pretty much anything I want to do is easier and faster, since 99% of what I do deals with database actions, either query, insert, update, or delete

    PHP is more popular because it's free, among other things. .NET is expensive to develop well (you really do need Studio to leverage the power), hosts cost more, and it is more server intensive. PHP has a huge community and lots of free and open source apps, so you rarely have to completely re-invent the wheel.

    However, I would still never choose Classic ASP. If I want an app that is not .NET, non-enterprise, I'd choose, well, PHP.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #8
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Since this is NOT a flame war, simply a discussion...

    I also code some pretty intensive Classic ASP web applications, which do include AJAX, web-based WYSIWYG text editors, CMS, etc.

    They are all encrypted and secured both on the web server and the database server using 256 AES encryption (http://www.truecrypt.org).

    I can do multiple file uploads using ASP (minus the 3rd party stuff), I have coded my own Auto-form validation (NO FP-bots), and do have SQL-Injection safe dynamic SQL syntax based on forms and search fields.

    The web server that I have is a Quad Xeon, so power is not an issue. I just find that Classic ASP has the same tools that .NET does IF YOU KNOW HOW TO MANIPULATE THE SYSTEM...

    Now, that being said ---
    Does .NET provide a better platform for some systems and groups - YES.
    Does .NET allow for more robust applications - YES.
    Does .NET work for everyone - NO.

    PHP won't work for me in this situation either, as I am not a good PHP coder.

    Just another $0.02 from another coding perspective...

  • #9
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Interesting.
    Perhaps .NET is simply better out of the box than Classic ASP. Meaning both have good power and whatnot, but you have to do more hand-coding with classic.

    Out of curiosity, how do you handle mail with classic? I'm stuck with classic for an older app I maintain, and I have tried both cdonts and cdosys, and I still am not getting errors when mail addresses bounce, yet if even one is invalid, the whole darn mail fails and nothing is sent.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #10
    Regular Coder nexosis's Avatar
    Join Date
    Dec 2006
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    progress: HTML: 100% > CSS: 90% > Javascript: 55% > Php:10%
    Want an avatar like mine? it's free! just pm me.

  • #11
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    CDONTS and CDOSYS are both NT 4.0 and ASP2.0 based, both are long "gone".

    I use a free emailer called ASPEmail. You can download it from http://www.aspemail.com. Supports Reply-To, Security (inc. SMTP-AUTH), CC, BCC, Encryption (but only for the paid version), Subject, Body, HTML / Text, etc.

    Be happy to help you configure if you need it, but it's pretty easy.

    Lastly, I learned how to use computers in DOS/UNIX, so I am used to CLIs and hand-coding everything. I still code HTML by hand. Only use FP for the color-coding.

    HTH!

  • #12
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Thanks for the tip!
    What does it do if one address in the list is invalid? Return false, but still send to valid addresses, or throw an error and not send at all?
    Last edited by nikkiH; 04-02-2007 at 04:45 PM.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #13
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    If the address is invalid, it will throw a 550 error, on which you can tell it to either On Error Resume Next OR tell it to record the error somewhere and move on.

    It's a simple DLL that gets loaded into the IIS of the box, then it's up to you to add the methods as necessary.

    Depending on the reason for the mailer, I use 2 loops.

    Loop 1) Pull email address. IF IsNull(email) = false THEN... Continue on to Loop 2. ELSE Movenext

    Loop 2) If Valid Email, send, ELSE ON ERROR RESUME NEXT; EXIT FOR. Exits the second loop and goes to the next Email address.

    But, I am also a data NaughtZ and I routinely go through and doublecheck all my entries. My forms also have an email check routine that makes sure that you are using a valid top-level domain before it lets you submit the form.

    HTH!

  • #14
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    A quick little test it actually sent the mail to the valid address and sent an Undeliverable to the From address. Which is PERFECT.
    Thanks so much for the link!

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #15
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Glad I could help!


  •  
    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
    •