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

Event Procedures and Methods

Hi All,

Could anybody give me some ideas on the advantages and disadvantages when it
comes to having Event Procedures and Methods in .aspx page rather than
having them in .aspx.cs/.aspx.vb

Regards,
Kuldeep
May 23 '06 #1
2 1081
Based on my personal experience it's better to use codebehind pages (i.e.
aspx.vb and aspx.cs) since it helps you to seperate the code and static
content. And prior to Visual Studio 2005 you do not have some IDE features
like intellisense when you are writing inline code (i.e. ASP.NET code within
an aspx file.) But in some special cases (like data binding some controls
together or catching events from objects within a DataGrid column -VS.NET
2003- etc. you might want to use inline code or tag-based attributes and
events of controls. But as I said they are special cases and they're not
like that you are writing alll the code inline.) Also theree's a new web
site project model with Visual Studio 2005 so that your code changes are
reflected to your website almost instantly. Prior to Visual Studio 2005
default project model for web applications (for Visual Studio.NET) was
precompiling all your codebehind pages inside of an assembly and that was
causing some problems with deployment and updates sometimes. But Visual
Studio 2005 has support for intellisense within aspx files and a new project
model. So in short, I like my code tidy and my static content seperated but
it's always up to you to decide. Oh and a side note, you can bring back the
old web application model (precompiled) to Visual Studio 2005 with a small
update from Microsoft if you wish.It has a slight advandatge of hiding your
VB or C# code within an assembly but remember that there are great
decompilers for C# out there.Link for web application project model:
http://msdn.microsoft.com/asp.net/re...p/default.aspx
"Kuldeep" <ku****************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi All,

Could anybody give me some ideas on the advantages and disadvantages when
it comes to having Event Procedures and Methods in .aspx page rather than
having them in .aspx.cs/.aspx.vb

Regards,
Kuldeep

May 23 '06 #2
Thanks Kerem, that was a good insight.

Regards,
Kuldeep
May 23 '06 #3

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

Similar topics

6
by: dwilliams | last post by:
Our organization has implemented an ASP.net application with an n-tiered architecture, made up of a business/data layer that calls T-SQL Stored procedures. We are attempting to better manage the...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
4
by: Corepaul | last post by:
I am a newbie using Access 2000. I am using the following test in the txtAlbum OnExit procedure to prevent leaving an empty text box for a required field If (IsNull(txtAlbum.Value)) Or...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
2
by: Sandy | last post by:
Hello - I am used to retrieving data with stored procedures. DataSets have me baffled inasmuch as it exposes Sql statements directly in the code, however, I think I need to be working with...
7
by: Michael D. Ober | last post by:
Is there anyway to raise an event from a class and require that any program using that class (not just inheritance) have an event handler for specific events in the class? In my case, some events...
16
by: Neil | last post by:
I am using Access 2003, and have an ongoing problem of every once in a while losing an event procedure for a form or control. The procedure's still in the code module, but the form or control's...
18
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
7
by: Andrus | last post by:
I noticed that DataGridView CellValidated() and other event handler first parameter is object: Grid.CellValidated+=new DataGridViewCellEventHandler(Grid_CellValidated); .... void...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.