Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Event Procedures and Methods

Reply
Thread Tools

Event Procedures and Methods

 
 
Kuldeep
Guest
Posts: n/a
 
      05-23-2006
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


 
Reply With Quote
 
 
 
 
Kerem OZMAN
Guest
Posts: n/a
 
      05-23-2006
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" <> wrote in message
news:%...
> 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
>
>



 
Reply With Quote
 
 
 
 
Kuldeep
Guest
Posts: n/a
 
      05-23-2006
Thanks Kerem, that was a good insight.

Regards,
Kuldeep


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using jython to call python procedures/methods KB Python 3 01-21-2010 01:00 AM
Is there a way to find the class methods of a class, just like'methods' finds the instance methods? Kenneth McDonald Ruby 5 09-26-2008 03:09 PM
HELP: ASP & Javascript testing procedures & methods Andrew Wan ASP General 20 07-20-2007 08:45 PM
Safe to have client-side AND server-side page load event procedures? Fred ASP .Net 2 07-12-2004 06:46 PM
Debugging / Single Step into event procedures R Millman ASP .Net 3 08-06-2003 09:28 AM



Advertisments