Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP vs. .NET - coding difference
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP vs. .NET - coding difference

 Post Reply Post Reply Page  <123>
Author
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2003 at 1:03pm

Theres no way its just more "complicated" just because MS wants it to be...

all this boils down to opinion really... you find html+vbscript "easier" than Web Controls,  i think thats insane to think that at this stage of your (limited) .NET knowledge.. maybe my opinion doesn't mean jack squat.. but i have been coding ASP since 2000 and only been seriously into ASP.NET for like 4 months now, but in that short time, i ALWAYS look to do stuff in ASP.NET because there's HUGE advantages to WebControls:

.NET >> Fields are already "re-filled" upon a postback
"Classic" >> You'd have to do value="<%= Request.Form("ThisField") %>" to fill it back in on postback

.NET >> Validation controls hooked onto a Web Control.. all automatic, does client and server side checks
"Classic" >> right all your own javascript, and error handling in script

.NET >> ControlName.DataBind = some sort of collection (array, "recordset", whatever).  Page doesn't have to run this but the inital page load
"Classic" >> needs to goto the DB and loop through and create things like "option" every time the page is loaded

.NET >> Disgustingly easy to disable and hide fields on a programatic basis
"Classic" >> have script kick out javascript to do all this (bleck) or tons of script if...then statements all embedded in the code

.NET >> Code Behind rocks.... pages get parsed and compiled one single time
"Classic" >> the dll has to verify that the page to execute is free of programing errors, syntax errors, etc, on every execution

Now there's one major "faster" thing i have run across in Classic over ASP.NET, and that's the trouble of going to the DB and getting a "recordset" (which technically doesn't exist anymore in ASP.NET).. BUT this is handled my making a nice little module in the application to have some static functions to go do the 10-14 lines of code it takes to Open a connection, feed it SQL, put it into a DataSet, bind it to something like a DataReader, and return the DataReader..  bam.. so in my pages, i simply have something like:

Dim ThisReader As SQLDataReader
ThisReader = GetDataReader("my SQL statement here")
if ThisReader.HasRows() then
   'Do what i need
end if

bah, to me, you thinking "HTML and ASP is easier" is just totally keeping a closed mind about ASP.NET... maybe you should just stick to what you know :-)

there's so much more such as caching, xml access, user controls, stuff like image manipulation, sockets access, ack, soooooo much more available

Contribute to the working anarchy we fondly call the Internet
Back to Top
karp13 View Drop Down
Groupie
Groupie
Avatar

Joined: 03 January 2002
Location: United States
Status: Offline
Points: 152
Post Options Post Options   Thanks (0) Thanks(0)   Quote karp13 Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2003 at 2:06pm
Ya what he said!
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2003 at 2:32pm

He's right. Asp.NET is MUCH more powerfull and easyer, when you can handle it... I can do that now (abit).. and my web-applications run faster, better, and are easy to edit.

Just switch to asp.net, who cares about a couple extra day's, weeks or months . ASP.NET rulezz

Gone..
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2003 at 1:49am

Originally posted by MorningZ MorningZ wrote:

i think thats insane to think that at this stage of your (limited) .NET knowledge..
Actually, lack of it, so far :)))

Thanks, guys. I don't want to bother you any more with questions I can have explained at www.asp.net, but just one question I'm sure I won't be able to find there.

For my vbscripting under ASP i can handcode everything I need even in notepad. Can I do the same with ASP.NET scripting, or editing/coding is possible only in project, opened, let's say in InterDev?

BTW, it's a SERIOS minus, that .NET can't do both javascript and vbscript at the same page :((((( How do you think I can create an exports, like bannerexchange, since standard .NET adRotator has much less built-in functionality, than I need and cannot deal with javascript?

p.s. the last one is not an actual question... that was just a scream :(((

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2003 at 6:12am
Originally posted by 3BEPb 3BEPb wrote:


BTW, it's a SERIOS minus, that .NET can't do both javascript and vbscript at the same page :((((( How do you think I can create an exports, like bannerexchange, since standard .NET adRotator has much less built-in functionality, than I need and cannot deal with javascript?

p.s. the last one is not an actual question... that was just a scream :(((


dunno, why you are "screaming", of course you can do JS code right on an ASPX page

Visual Studio.NET allows you to take advatange of Code-Behind and References and Easy use of creating datasets and everything else....

You can do ASPX pages in notepad (but why?) and do the script, html, and javascript on the single ASPX file, but as mentioned above, you'd be missing out on a lot of the whole concept of a layered application

you'd at least want to use asp.net's free tool, Web Matrix......

Contribute to the working anarchy we fondly call the Internet
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2003 at 8:32am
Of course you can deal with javascript. SCRIPT is client side, so just put it in the html code, right?
Gone..
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2003 at 10:50am

Sometimes I need to generate javascript using vbscript. But I understand (from www.asp.net) that this is impossible. Thanks for explanation again.

MorningZ, don't you know, is Dreamweaver MX - good development tool for .NET?

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2003 at 10:57am

wherever you are reading on asp.net that its "impossible" is misleading you...

you could have an <asp:literal> control in the aspx page and from code behind (or online for that matter) generate the string that holds the JS you need...

as for Dreamweaver, i'm not a good person to ask, i learned VB/VBscript in Visual Studio 6.0, and it was just natural for me to learn VB.NET in Visual Studio.NET which i have been religiously using

Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.