Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET 2.0 vs ASP Classic

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Hi, just thought I would share a recent enlightening experience with those of you trying to find a reason to use ASP.NET.

I was not a believer and was very against this whole .net thing. However work sent me on a course to learn the basics of ASP.NET 2.0

For the first day I sat there saying “So what, I can do that in classic” or “I built a class to do that already”
On the second day however it happened. The instructor said to me
“Ok then, in asp how would you great a data sort table data grid, with paging that allowed you to update and delete row data on the grid and how long would it take”

So I went through the data connection script that I would paste in, then the table with the record set loop, then the class I had built to do sorting…modify that a bit, then get the paging functions and modify them a bit. Then I suppose add some JavaScript to hide the text boxes and show them if I click on an edit button. Then I would write a script to handle the submit and do the update, maybe use an ajax moment.
Should take about 30 minutes to an hour. Probably 2 hours. Not bad!!

He then went to his pc, set up a database connection in VS 2005 Express (Basically adds the access database to the project)
He opens the Database explorer window. Drags the table onto the page. Ticks the “Enable Paging, Enable Sorting, Enable Editing, Enable Deleting”
He then clicks ok and turns to me and says “Finished”

Now the results were ok, but it took 5 minutes. I could spend the other 1 hour and 55 minutes making it look pretty. In the mean time my boss has seen the main form and is dead happy at my productivity!!!

Look at it as a time saver, the language is not that hard to learn either!!!


}...the bane of my life!
 
I switched to asp.net as soon as it came out and it does have many advantages, but there is one big disadvantage, imo, in asp when you made a change you simply saved the file and you were done, only that page was affected and it did not affect any current users, the next time the page was accessed it was the new version, it was not compiled, simple. With asp.net however you have to do a rebuild and replace the codebehind dll, which knocks off all the user sessions and they have to log in again, thus I only do rebuilds during off hours now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top