Exforsys
+ Reply to Thread
Results 1 to 4 of 4

Doubt in asp.net

This is a discussion on Doubt in asp.net within the Microsoft .NET forums, part of the Programming Talk category; Hello What is difference in inline coding and code behind with asp.net. plz. any body explain me in detail like, ...

  1. #1
    zubairsmd is offline Junior Member Array
    Join Date
    Sep 2004
    Answers
    1

    Doubt in asp.net

    Hello
    What is difference in inline coding and code behind with asp.net.
    plz. any body explain me in detail like, how that 2 are compiled. with code behind dll is created. whereas in inline it wont.
    Which one performance wise best

    regards
    Zubair


  2. #2
    azamsharp is offline Junior Member Array
    Join Date
    Feb 2005
    Answers
    1

    Re:Doubt in asp.net

    The coding done in Classic Asp was known as inline coding where you can write Asp tags and directives in the same html file which contained the presentation of your application. The code below is an example of inline coding:



    Private Sub Page_Load()
    Response.Write _
    (\"Hello About Visual Basic!\")
    End Sub



    As you see that your Asp code is mixed with the HTML code and it will be really hard to maintain clarity using inline approach.

    Asp.net introduces another form of coding which is known as code behind model. In that model you can write the code in a separate file so that it does not mingle with the html code in the presentation layer.

    When the page is run for the first time an assembly is created. Later if you change the page and compile again the previously created assembly is overwritten and new version is placed.

    I hope thaty helps.


  3. #3
    Gubendran is offline Junior Member Array
    Join Date
    Aug 2005
    Answers
    3

    Doubt in asp.net

    Code Inline:

    The Code inline model is now the default model for Visual Studio 2005.Any code you add to the page will automatically be added to a


Latest Article

Network Security Risk Assessment and Measurement

Read More...