473,403 Members | 2,222 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,403 software developers and data experts.

Code Behind Class File Question Do Most People Use This Design?

jm
I am still migrating from old ASP to ASP.NET with VB.NET. I created
an app as a single file type application and later found out about
Visual Studio and code behind class files. Is that the predominant
design method? Or just with Visual Studio (guess they are the only
ones who can do it)? Does the compiling the .net page do any good?
Does it make it more scalable or something? Insights on this issue
please. Thank you.

http://msdn.microsoft.com/library/de...sCodeModel.asp
Nov 18 '05 #1
2 1098
"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
I am still migrating from old ASP to ASP.NET with VB.NET. I created
an app as a single file type application and later found out about
Visual Studio and code behind class files. Is that the predominant
design method? Or just with Visual Studio (guess they are the only
ones who can do it)? Does the compiling the .net page do any good?
Does it make it more scalable or something? Insights on this issue
please. Thank you.


Going compiled-codebehind will give you a performance boost over inline
script. In my applications, I've used both methods - single file pages with
a discrete <script /> block (like what WebMatrix does) can be easier to
maintain for lower priority applications. These applications can be repaired
with Notepad if need be.

But going the code behind route does give you more speed, especially if your
classes are compiled.

R.
Nov 18 '05 #2
j m

Stupid question here, so I can use the code behind forms, what I read
elsewhere as webforms, with databases, etc.? It just compiled because I
was able to use Visual Studio to do it? A "benefit" of paying for
Visual Studio .NET?

For example, now, I have an ASP.NET app that has a few datagrids on it,
controls, the events, etc. and some client-side javascript. In the web
form model, all that vb.net gets compiled into a .dll and the page
simply has the datagrids, etc. on it with the JavaScript? And somehow,
in the page, I call that .dll like calling a class COM object (like the
old ASP way)?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

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...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.