Do you have to have a web form with a homepage in the add items?
Placing code in a separate file is another concept called code-behind
. You will have an ASPX
file and a cs
/ vb
file that handles events.
eg
Default.aspx
Default.aspx.cs
EDIT : based on the comment.
You may be using the Web Site
on your laptop, but the Web Application
is working. See Web Application Projects v Website Projects .
Take a look at the ASP.NET website or ASP.NET web application? , it can also help in deciding what to use. As a rule, I always use a web application.
You can use VS to convert from a website to a web application , but AFAIK, you cannot do it the other way round unless you create a new project and copy it in appropriate parts, which can be a lot of work depending on size site.
source share