none
Code Behind RRS feed

All replies

  • Before asp.net 2.0, the page code used to be inline with the HTML. Thus the code would be present in the presentation layer/logic.

    In code-behind the basic concept is to seperate the HTML and the presentation logic /business lagic.

    So code behind is nothing but a seperate class file which contains the code for the page. In the visual studio IDE, by convention if the page name is <pagename>.<pageextension> , then the code behind would be <pagename>.<pageextension>.<programming language>

    eg : page = student.aspx , then code behind in VB.net would be student.aspx.vb

     

    If you need any more clarification, you know where to find me.....

     

    Friday, September 7, 2007 1:49 PM
  • Adnan Hussain is right.....The code behind file concept is based on the phenomena of partial class.

    Tuesday, September 11, 2007 5:23 AM
  •  

    In Classic ASP means earlier verion of the Website Devlopment through ASP(Microsoft Active Server Pages Web Application devlopment Technology), we write our code in one single physical file in which we,

    embeded design logic and buisness logic in same file.

    Which sometimes become hactic to read or understand beacuse of too much length and in-depth complexcity,.

    Thank's Godd.. and microsoft which brings a new innovative and revised version of ASP so it becomes ASP.NET.

    In which the Code Behind Feature come with the use of Visual studio as an IDE.

    when we write our code then actually we design our code in html with CSS in Seperate File and implement Buisness logic in different file( like coding in C#).

    In which we write the or design the Page is called <Name>.aspx

    And in which we write logic from language is called <Name>.aspx.cs(In case if Language is used as C#)

    I hope this answer may solve your query..

    For further Reference explore MSDN.

    Wednesday, September 12, 2007 10:13 AM