2 ways to write code in asp.net

Discussion in 'ASP .Net' started by Jignesh Desai, Mar 23, 2005.

  1. There are essentially two ways that you can write code for an ASP.NET
    application.

    Inline code Style
    ---------------------------------------------------------------
    <html>
    <script language="vb" RUNAT="server">
    Private Sub Page_Load()
    Response.Write("This is Inline ASP.NET Application")
    End Sub
    </script>
    </html>
    ---------------------------------------------------------------
    This type of coding is essentially the same as the old ASP code


    Code behiend Style.
    (IN HTML PAGE) ".aspx"
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="profile.aspx.vb"
    Inherits="LW.profile"%>

    (IN CODE BEHIEND PAGE) ".vb"
    Public Class profile
    Inherits System.Web.UI.Page

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
    System.EventArgs) Handles MyBase.Load
    'Put user code to initialize the page here
    End Sub

    End Class


    Regards
    Jignesh Desai
    www.dotnetjini.com
     
    Jignesh Desai, Mar 23, 2005
    #1
    1. Advertising

  2. Jignesh Desai

    Mark Rae Guest

    "Jignesh Desai" <> wrote in message
    news:...

    > There are essentially two ways that you can write code for an ASP.NET
    > application.


    Er, thanks for that...
     
    Mark Rae, Mar 23, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    9
    Views:
    5,742
    abendas
    May 9, 2007
  2. \A_Michigan_User\

    Write ASP.NET 1.1 code with VB.net or VS.net ?

    \A_Michigan_User\, Aug 15, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    1,667
    Saber
    Aug 16, 2005
  3. Rodney Edmondson
    Replies:
    11
    Views:
    668
    Jeremy
    Dec 9, 2003
  4. Jeff T
    Replies:
    5
    Views:
    570
    Mark Rae
    Apr 9, 2007
  5. Kniffel

    Ways to write a XML file

    Kniffel, Jun 4, 2007, in forum: XML
    Replies:
    0
    Views:
    344
    Kniffel
    Jun 4, 2007
Loading...

Share This Page