C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

what is the code behind technic how it impltements?


Posted Date: 10 Jan 2009      Posted By: sahasra      Member Level: Silver     Points: 1   Responses: 1



what is the code behind technic how it implements?




Responses

Author: Babu Akkandi    10 Jan 2009Member Level: DiamondRating: 2 out of 52 out of 5     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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : To Babu Akkandi and all
Previous : To sravanKumar
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use