Hi everyone,
as a follow on from my previous thread about alternatives to PHP/Mysql. I am giving ASP.NET C# a look.
Now, in PHP I would have a config.php file included which would create a few object instances based on some class files I had also created ( $conn = new databaseconnection('localhost','bob','dog','bob_db'); $pageview = new pageview($conn,$table_name); )
each of those objects could then be called later within a specific page and display what is required/expected. I would also include a header and footer php script which have their content created based on variables.
I was expecting ASP.net c# to be different and I know you compile your application whereas php does it on the fly, but I am really struggling to see how I can do something similar.
Obviously I need to do alot of reading up to get going with this, but I was expecting this kind of thing to be pretty standard.
I suppose what I am getting at is, in PHP I do not need to have much code written on a per page basis, but as far as I can currently tell with ASP.net, I have to. Am I missing something here?
Ta


LinkBack URL
About LinkBacks
Reply With Quote
) to an application that is slowed down by the compilation. On the other hand, you could also write a Class Library using Visual Studio and pre-compile this, placing the resulting dll in a \bin\ folder. This will reduce the compilation time of the first request to the site.

