Separating presentation and logic with code files


show more Separating presentation and logic with code files provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training show less
please wait ...

Separating presentation and logic with code files

Each time you create a brand new ASP. NET web form page, you can select either a page with scripting or a page with the code file and you can make your choice of programming language. In this demonstration, I'll create a page with a separate code file and this time I'll use Visual Basic. I'm still working in the website CreatePages that I opened previously. From the menu, I'll select Website > Add New Item. I'll select Web Form from the Templates list and this time I'll set the name as PageWithCodeFile and set the Language to Visual Basic.

I will select the option Place code in separate file and click Add. Because I have said I want it to create a separate code file, Visual Web Developer created both the ASPX file and the associated file PageWithCodeFile.aspx.vb. If I rename the primary file, Visual Web Developer will rename the associated code file for me. It also manages this attribute, the CodeFile attribute, which is built into the header of the page. Thi...

Separating presentation and logic with code files
Video duration: 4m 17s 6h 24m Beginner Updated Feb 13, 2013

Viewers:

Separating presentation and logic with code files provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training

Subjects:
Developer Web
Software:
ASP.NET
Author:
please wait ...