
- Forum
- Programming Talk
- Microsoft .NET
- Doubt in asp.net
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, ...
-
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
-
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.
-
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
« Microsoft .NET : Implementing The Google Web Service In VB.NET - Introduction | MS SQL Server 2000 not functioning »
Privacy and Legal | Contact Us | DMCA | Sitemap
Copyright © 2000 - 2011 exforsys.com. All Rights Reserved

Reply With Quote





