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
Printable View
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
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.
really, it is all a matter of personal preference. i keep my code separate because i think it is cleaner.
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.
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.
Amen to that!
Yes, it was shown in a tutorial, hence why I was unsure, anyways I put all my coding externally now :DQuote:
Originally Posted by mendhak