473,657 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

scripts vs. code behind

Hello,

I would like to know what the advantages and disadvantages of using on-page
scripts versus code-behind are. It seems to me that both accomplish the same
thing, so I would like to hear pros and cons.

Thanks,

Neil
Nov 19 '05 #1
3 1138
See this link. It might be help you. Good luck!!!

http://msdn.microsoft.com/asp.net/de...n-us/dv_vstech
art/html/vstchworkingwit hsingle-filewebformspag esinvisualstudi o.asp

-Mukund

"Neil Zanella" <nz******@cs.mu n.ca> wrote in message
news:b6******** *************** ***@posting.goo gle.com...
Hello,

I would like to know what the advantages and disadvantages of using on-page scripts versus code-behind are. It seems to me that both accomplish the same thing, so I would like to hear pros and cons.

Thanks,

Neil

Nov 19 '05 #2
TJS
it's not either or , use both..
compile reusable functions (.vb classes) into DLL's and put individual
pages into scripts (.aspx ) which call content from modules (.ascx)
"Neil Zanella" <nz******@cs.mu n.ca> wrote in message
news:b6******** *************** ***@posting.goo gle.com...
Hello,

I would like to know what the advantages and disadvantages of using
on-page
scripts versus code-behind are. It seems to me that both accomplish the
same
thing, so I would like to hear pros and cons.

Thanks,

Neil

Nov 19 '05 #3
Hi Neil,

The advantage of using "scripts" as you call it (non-compiled pages), is
that you don't need to compile them, which saves you a little trouble if you
don't have Visual Studio.Net. You are correct in that, in the final
analysis, there isn't much difference in performance from each type of app.
Non-compiled pages are compiled at run-time, and are cached.

One advantage of using compiled apps is that you can organize your app into
various DLLs, some of which can be used across multiple applications, such
as Business layer or Data Layer DLLs. Sharing copies of page files would be
much more complicated.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Neil Zanella" <nz******@cs.mu n.ca> wrote in message
news:b6******** *************** ***@posting.goo gle.com...
Hello,

I would like to know what the advantages and disadvantages of using
on-page
scripts versus code-behind are. It seems to me that both accomplish the
same
thing, so I would like to hear pros and cons.

Thanks,

Neil

Nov 19 '05 #4

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

Similar topics

2
12737
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of scripts for that). Some of the Sql scripts can be quite long, and so we break them out to their own script files and call them all from one main ..sql file, using sqlplus to execute it all. The admin would run the file like:
2
1536
by: Christo | last post by:
Does anyone have any familiarity with using Python Scripts behind-the-scenes (server side) to adjust the experience of the visitor to the site? Thanks Christo
46
3833
by: Adam Turner via AccessMonster.com | last post by:
If I had a field called "Name" in an Access table "Contact Info", and the field contained VBScript... Function Main(rstFields) Main = rstFields.Item("FirstName").Value End Function 1. How do I pass a recordset into this field? 2. How do I capture the return value?
1
1579
by: Microsoft | last post by:
I am trying to add asp.net data based functionality to a html template that includes Dreamweaver Fireworks-based fly out menus. Things seem to run OK running through a browser but the doing debugging runs via Visual Studio always throws errors on the Fireworks scripts. Is there some way to tell the debugger to skip this code? Or is there some way to get it to recognize the objects using whatever interpreter is in the plugin that...
5
36852
by: Richard Dixson | last post by:
I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my code behind. However I am not able to do this at all, I am going about this wrong, I think and need guideance. If this was just straight HTML I would do this: <table> <tr><td>field 1</td><td>value 1 set by code behind</td></tr>
171
7692
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) like it because you can split the code from the design. That is logical. But if you are the only one working on the code, it seem a little overkill. I use Dreamweaver to do my design and find it a bit of a hassle to have multiple files open...
29
3667
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 id="Form1" method="post" runat="server"> <%
2
4817
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 required: <%@ Register TagPrefix="UC" TagName="MyUserCtrl" Src="MyUC.ascx" %> Assuming that the ASPX page doesn't use a code-behind, I can access the properties, events etc. of the user control in the ASPX page in this way (assume that the ASPX page...
3
2543
by: gamesforums | last post by:
Hi Everyone! I work in a company that has developed several VB.Net Web applications. Currently we use SourceGear's Vault for source control and versioning for the application files. One area that have been left behind a little bit is the version control on database level. Our typical installation of an application is like this:
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.