| Author: Babu Akkandi 10 Jan 2009 | Member Level: Diamond | Rating:  Points: 5 |
Hi,
code behind feature in asp .net enables us to separate the user interface elements from the application logic. The user interface or GUI tags are kept in the .aspx page and the business logic or functional code can become a part of pagename.aspx.cs files.
this model could lead to a slight performance gain (though not very significant) when compared to putting the code in the same .aspx file. But in any case the code in the .cs (code behind) file is going to be a compiled version, with Internet Information Server looking for a dll file for rendering the logic/pages.
The project can be created in the Visual Studio .net by choosing an ASP .Net Application inside the C# projects option. When a new project is created in such a way, the VS .Net automatically connects to the IIS, Creates a virtual directory along with a project directory. After this, it compiles this c-sharp files into a .dll and puts the dll in the ProjectPath\bin folder. Now when the page is accessed via the Web browser, the ASP .Net run-time checks the bin folder for the run time dll and executes the page accordingly.
Hope it Helps!
Thanks and Regards, Babu Akkandi Microsoft Technology
|