Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2002
    Location
    Israel
    Posts
    9

    Unanswered: 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

  2. #2
    Join Date
    Feb 2002
    Posts
    2,232
    What do you mean by "code behind" ?

  3. #3
    Join Date
    Dec 2002
    Location
    Israel
    Posts
    9
    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 ?

  4. #4
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •