Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-30-2007, 12:09 AM   PM User | #1
The Reverend
New Coder

 
Join Date: Mar 2006
Location: I'm lost, livin inside myself
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
The Reverend is an unknown quantity at this point
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();
The Reverend is offline   Reply With Quote
Old 03-30-2007, 01:58 AM   PM User | #2
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 03-30-2007, 03:03 AM   PM User | #3
The Reverend
New Coder

 
Join Date: Mar 2006
Location: I'm lost, livin inside myself
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
The Reverend is an unknown quantity at this point
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();
The Reverend is offline   Reply With Quote
Old 03-30-2007, 12:08 PM   PM User | #4
SSJ
Regular Coder

 
Join Date: Mar 2007
Posts: 230
Thanks: 0
Thanked 4 Times in 4 Posts
SSJ is an unknown quantity at this point
http://www.oracle.com/technology/pub...hull_php2.html
__________________
Best Joomla Design Agency India ||PSD to Joomla Template || Award Winning Web Design Company India
SSJ is offline   Reply With Quote
Old 03-30-2007, 02:04 PM   PM User | #5
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
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...
Daemonspyre is offline   Reply With Quote
Old 03-30-2007, 04:47 PM   PM User | #6
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 03-30-2007, 04:53 PM   PM User | #7
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 04-02-2007, 01:49 PM   PM User | #8
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
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...
Daemonspyre is offline   Reply With Quote
Old 04-02-2007, 03:26 PM   PM User | #9
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 04-02-2007, 03:38 PM   PM User | #10
nexosis
Regular Coder

 
nexosis's Avatar
 
Join Date: Dec 2006
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
nexosis can only hope to improve
http://tizag.com
http://w3schools.com
__________________

progress: HTML: 100% > CSS: 90% > Javascript: 55% > Php:10%
Want an avatar like mine? it's free! just pm me.
nexosis is offline   Reply With Quote
Old 04-02-2007, 03:55 PM   PM User | #11
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
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!
Daemonspyre is offline   Reply With Quote
Old 04-02-2007, 04:39 PM   PM User | #12
nikkiH
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
nikkiH is on a distinguished road
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?
__________________

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/

Last edited by nikkiH; 04-02-2007 at 04:45 PM..
nikkiH is offline   Reply With Quote
Old 04-02-2007, 04:48 PM   PM User | #13
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
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!
Daemonspyre is offline   Reply With Quote
Old 04-02-2007, 05:49 PM   PM User | #14
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 04-02-2007, 06:02 PM   PM User | #15
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
Glad I could help!
Daemonspyre is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 AM.


Advertisement
Log in to turn off these ads.