Forum Moderators: open
1. ASP.Net seems to be slower than plain ASP for almost all activity. (Note: I never managed to use ASP in a standard way and never could work out exactly what use the global.asa file had either.)
2. ASP.Net form field controls just seem like a good way of destroying useful pages when related to SEO. (Assuming at this point that the .aspx page will almost certainly be penalised in comparison with a .htm page)
We have also had some problems in working a good solution to a global database connection, though I think we have this sorted now, much more complicated that the standard ASP solution though.
As for the slowness of .NET, each page has to be compiled before being converted to HTML so it will be a bit slower the first time a page is requested. After that it should actually be faster since the browser is reading a compiled class instead of having to reinterpret the script each time.
ASP.NET is a pretty good ripoff of JSP. JSP has the same lag when you first pull up the page, after which it's nice and speedy.
Mac
This is even on return visits to the cart.
Using the caching features and the new data access methods and objects correctly, I have not noticed any slow executions, and for the most part I can create more powerful applications is a lot less time. ASP.Net is not "scripting" anymore.
[edited by: engine at 8:16 am (utc) on Oct. 14, 2003]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]
Global.asa is really just for stuff you want to fire when your application or sessions start. I use it for redirecting bad bots.
The server controls are good for some things, but I mostly use the regular html controls inside the htmlcontrols class instead of the WebControls class. You can run the regular controls at the server level but change what ever you need. You can also stop the submitting on every event fire.
I have also noted a performance issue using 2000 instead of 2003 server. You may want to look into unsafe code for your components. This allows you to take advantage of pointers and not rely on garbage collection.
Asp works fine for basic in and out of a database. .Net is really meant for full app development. Sometimes it just makes sense to use classic ASP. For a shopping cart though I would use .Net.
What language are you using Ian?
>>global database connection
do you just need the string? You should use your web.config, or more likely the machine.config for more security. If you want the connection open you can create an object to handle all of the database things.
I just wish that I could have my first few projects back in which I didn't use caching to its full potential.