473,503 Members | 8,784 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 1132
See this link. It might be help you. Good luck!!!

http://msdn.microsoft.com/asp.net/de...n-us/dv_vstech
art/html/vstchworkingwithsingle-filewebformspagesinvisualstudio.asp

-Mukund

"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
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.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
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.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
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
12716
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...
2
1530
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
3787
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...
1
1571
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...
5
36827
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...
171
7583
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)...
29
3645
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...
2
4804
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...
3
2535
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...
0
7267
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,...
0
7316
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...
1
6976
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...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
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...
0
3160
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...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.