0

What is the difference between Code Inline and Code Behind?

As the names suggest I would presume that Code Inline refers to code that is in the same file as the .aspx and Code Behind refers to code that is in a seperate file.

Im not too sure if thats correct or not.

Also how would I do this in VS 2013? When selecting a web form there is no option or check box to place code in a seperate file

Edited by iConqueror: Added content

2
Contributors
2
Replies
18
Views
3 Years
Discussion Span
Last Post by iConqueror
0

As the names suggest I would presume that Code Inline refers to code that is in the same file as the .aspx and Code Behind refers to code that is in a seperate file.

Correct. The benefit of having hte code-behind model is that you can let web designers work on the .aspx file while the web developers (programmers) work on the .aspx.cs file.

If you are both the designer and developer, you will still see a benifit with regards to organization.

When selecting a web form there is no option or check box to place code in a seperate file

There should be... Do you have web dev version installed?

94450f465936e284cfd8d4a023c277cb

0

Thankyou. This is what I see when I right click -> Add New Item 3d5279d81e31306cbfd4f8b88e5d823a
As you can see there is no option to choose to place code into a seperate file

Edited by iConqueror: fgh

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.