'Place code in separate file' option not available in web application project.

L

Lee

Hi,

I've converted my VS2003 project to a VS2005 web application project.
The reason is to support AJAX. I want to create a new form and am
following a microsoft tutorial. The problem is that the tutorial
states to check the ''Place code in separate file' checkbox when
creating the new form. This is not available for my project.

If I create a brand new project (I guess therefore it is then a
website project) then the option is available when adding a new web
form.

Can anyone let me know if there is a way around this and/or the impact
of not having this checked when creating an AJAX web form.

Thanks
Lee
 
G

Guest

Hi,

I've converted my VS2003 project to a VS2005 web application project.
The reason is to support AJAX. I want to create a new form and am
following a microsoft tutorial. The problem is that the tutorial
states to check the ''Place code in separate file' checkbox when
creating the new form. This is not available for my project.

If I create a brand new project (I guess therefore it is then a
website project) then the option is available when adding a new web
form.

Can anyone let me know if there is a way around this and/or the impact
of not having this checked when creating an AJAX web form.

Thanks
Lee

Yes, this is because of the type of the project. The ASP.NET Web
Application has no that option. In VS.NET 2005, a Web Form uses a code-
behind by default. If you don't need a code in the separated file,
simply remove it. When you've created a new form, it shown in the
Source View, where you can modify the attributes of the form and the
controls contained within it. To switch to Design View, click on the
Design button at the bottom. To view the code-behind of the form (the
code in separate file), double-click on the form and the code-behind
will appear.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top