If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > What's the difference between code behind and <script language="VB" runat="server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-02, 03:49
sellash sellash is offline
Registered User
 
Join Date: Dec 2002
Location: Israel
Posts: 9
What's the difference between code behind and <script language="VB" runat="server

What is the difference between code behind and a script block that have the runat="server property
Reply With Quote
  #2 (permalink)  
Old 12-09-02, 07:53
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
What do you mean by "code behind" ?
Reply With Quote
  #3 (permalink)  
Old 12-09-02, 08:00
sellash sellash is offline
Registered User
 
Join Date: Dec 2002
Location: Israel
Posts: 9
Quote:
Originally posted by rnealejr
What do you mean by "code behind" ?
I mean the filename.aspx.vb file where you can edit the controllers properties and catch their events.

for example each .aspx.vb file have a sub called :

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

but you can also write it inside the aspx file:

<script runat="server">
Sub Page_Load (sender As Object, e As EventArgs)

Is there a difference between those tow options ?
Reply With Quote
  #4 (permalink)  
Old 12-10-02, 22:33
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
There is no performance impact - only a scaleability/reuseability issue when you code within the aspx file rather than creating separate vb.net or c# files.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On