ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Code behind

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#)
View previous topic :: View next topic  
Author Message
marbles



Joined: 01 Mar 2006
Posts: 16

PostPosted: Wed Mar 01, 2006 5:59 pm    Post subject: Code behind Reply with quote

Do you all use the code behind technique, or do you embed your asp.net commands in the .aspx page?

I always use code behind, I enjoy keeping my classes, bjects and functions in its own file, this is the more OOP approach and one that I find the best when it comes to adding to and editing code as it's easy to find what you want to change.
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Wed Mar 01, 2006 9:21 pm    Post subject: Reply with quote

I use code-behind only and never mix HTML with server-side ASP.NET code. It's cleaner this way, and you don't have to deal with spaghetti code anymore Smile
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Darth



Joined: 01 Mar 2006
Posts: 9

PostPosted: Thu Mar 02, 2006 5:44 pm    Post subject: Reply with quote

Same here. That is what I hated about plain asp.
It's like writing javascript rather than a server side programming language.

It saves you a heck of alot of time having all that code in one or two files and seperate from your HTML mess! Smile
Back to top
View user's profile Send private message
bongo



Joined: 07 Mar 2006
Posts: 11

PostPosted: Tue Mar 07, 2006 12:57 pm    Post subject: Reply with quote

I use code behind too. The asp code itself is alreadly so messy. If the vb codings are added, it will be confusing and chaotic. Confused
Back to top
View user's profile Send private message
James



Joined: 20 Feb 2006
Posts: 24

PostPosted: Fri Mar 10, 2006 12:06 am    Post subject: Reply with quote

Well that can depend on your coding technique Smile
It can be possible to use inline code if its a very small application or a few web pages.
At times like that, code behind can be overkill.

Does anyone know which takes longer for the server to process - code behind or inline code?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial