|
-
Apr 8th, 2007, 04:05 PM
#1
Thread Starter
Hyperactive Member
[2005] Which is Best
Hi
I am new to asp.net and have noticed that vb coding can be stored within aspx.vb, or just the aspx page I am currently working on.
Personally I like to keep the coding within the page at the moment, but would like some opinions.
Cheers
Learning C♯
Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)
-
Apr 8th, 2007, 07:21 PM
#2
Re: [2005] Which is Best
It's better to seperate design (html) from code (vb, c#). This is one advance asp.net introduced not just by having a seperate code page but also server controls instead of code in the html itself.
-
Apr 9th, 2007, 09:19 AM
#3
Hyperactive Member
Re: [2005] Which is Best
really, it is all a matter of personal preference. i keep my code separate because i think it is cleaner.
If this post helps, please RATE MY POST!
Using Visual Studio 2005 SE
-
Apr 10th, 2007, 12:31 PM
#4
Hyperactive Member
Re: [2005] Which is Best
Code behind files are a good mindset. Separation of code is a good mindset. This mindset keeps you on a path of keeping things separate like creating objects. You'll probably find this mindset will help you with object oriented programming. So yes it will keep things clearer to you in your code, but it will also keep your mind oriented towards better organization of all coding aspects.
Good Luck with your programming.
-
Apr 10th, 2007, 04:42 PM
#5
Re: [2005] Which is Best
Placing the code in the same .aspx page is for amateurs. Shown in tutorials to save writing and typing efforts. And books to save space.
Also, if anyone places their code in the .aspx file then they will not enter Jesus' glorious kingdom of heaven.
-
Apr 10th, 2007, 10:03 PM
#6
Hyperactive Member
-
Apr 12th, 2007, 05:00 AM
#7
Thread Starter
Hyperactive Member
Re: [2005] Which is Best
 Originally Posted by mendhak
Placing the code in the same .aspx page is for amateurs. Shown in tutorials to save writing and typing efforts. And books to save space.
Also, if anyone places their code in the .aspx file then they will not enter Jesus' glorious kingdom of heaven.
Yes, it was shown in a tutorial, hence why I was unsure, anyways I put all my coding externally now
Learning C♯
Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|