473,386 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Code Behind - who uses it?

Hi,
i was in the book store this weekend checkingout some ASP.NET books. I
noticed that many do not use the "new" code-behind model much. Why is
this?

What do you ASP.NET developers use and why?

thanks much.

Aug 6 '06 #1
6 985
To code behind or not, it is the same when it comes to performance.
But I think most of web developers prefer to use code behind, because they'd
like to separate code from presentation, so designers can work with aspx and
code developers work with vb or cs.
Also this made your project much easier to navigate and work with.
Books my refere to inline coding just for simplification, and in later
chapters they should mention the code behind technique..
any way, this is only reflect my idea and opinion
Regards,
--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications
"farseer" wrote:
Hi,
i was in the book store this weekend checkingout some ASP.NET books. I
noticed that many do not use the "new" code-behind model much. Why is
this?

What do you ASP.NET developers use and why?

thanks much.

Aug 6 '06 #2
Based on my own experience, if I want a single - file page that is easy to
show as an example, that is usually when I use inline server-side <script>.
So it makes sense possibly for a book, and also because in the early days of
..NET the original ASP.NET developers came from the classic ASP space where
there is no such thing as "Codebehind". In fact, the original IBuySpy
reference app was written in all inline code with no codebehind files.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"farseer" wrote:
Hi,
i was in the book store this weekend checkingout some ASP.NET books. I
noticed that many do not use the "new" code-behind model much. Why is
this?

What do you ASP.NET developers use and why?

thanks much.

Aug 7 '06 #3
i am all of the separation of code from presentation...my biggest gripe

however is that it's not like the old days when you can make changes on

the fly if needed. Now, for any change that you need to make, you must

recompile the distributable dll and re-publish your web-site. That to
me is a bit discouraging as compared to code that is actually embedded
in a single file and compiled ont he fly (like JIT).
Peter wrote:
Based on my own experience, if I want a single - file page that is easy to
show as an example, that is usually when I use inline server-side <script>.
So it makes sense possibly for a book, and also because in the early days of
.NET the original ASP.NET developers came from the classic ASP space where
there is no such thing as "Codebehind". In fact, the original IBuySpy
reference app was written in all inline code with no codebehind files.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"farseer" wrote:
Hi,
i was in the book store this weekend checkingout some ASP.NET books. I
noticed that many do not use the "new" code-behind model much. Why is
this?

What do you ASP.NET developers use and why?

thanks much.
Aug 12 '06 #4
"farseer" <fa*****@optonline.netwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>i am all of the separation of code from presentation...my biggest gripe
however is that it's not like the old days when you can make changes on
the fly if needed. Now, for any change that you need to make, you must
recompile the distributable dll and re-publish your web-site. That to
me is a bit discouraging as compared to code that is actually embedded
in a single file and compiled ont he fly (like JIT).
You can't possibly be serious...???
Aug 12 '06 #5
This isn't a valid comparison. The "old days" (classic asp) was interpreted
code. This is compiled code. My suggestion: "get over it!".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"farseer" wrote:
i am all of the separation of code from presentation...my biggest gripe

however is that it's not like the old days when you can make changes on

the fly if needed. Now, for any change that you need to make, you must

recompile the distributable dll and re-publish your web-site. That to
me is a bit discouraging as compared to code that is actually embedded
in a single file and compiled ont he fly (like JIT).
Peter wrote:
Based on my own experience, if I want a single - file page that is easy to
show as an example, that is usually when I use inline server-side <script>.
So it makes sense possibly for a book, and also because in the early days of
.NET the original ASP.NET developers came from the classic ASP space where
there is no such thing as "Codebehind". In fact, the original IBuySpy
reference app was written in all inline code with no codebehind files.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"farseer" wrote:
Hi,
i was in the book store this weekend checkingout some ASP.NET books. I
noticed that many do not use the "new" code-behind model much. Why is
this?
>
What do you ASP.NET developers use and why?
>
thanks much.
>
>

Aug 12 '06 #6
i think you are correct muhammed, anyway i wanted to ask you where to
take the MCTS course in egypt, thnx

Sharing makes All the Difference

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Aug 12 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wh | last post by:
After spent a good half day looking for a solution I'm no further finding an answer so I'd appreciate any ideas as to how this can be done. I have developed a user control that resides in a .ascx...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
1
by: Me | last post by:
Hi, I inherited a web application that has several very similar forms for gathering user data. User's must choose the form that best fits their needs and fill it out. Each form has about 15...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
1
by: LiveCycle | last post by:
Hi, I'm putting together a project that uses ASP.NET in VS2005. It uses a single master page that is responsible for most of the heavy lifting. About 90% of the 200 pages have the same...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.