Missing Code Behind ASP.Net 2.0

P

pbishop

Hi,

I'm fairly new to ASP.Net. I have Visual Web Developer 2005 Express.
Except for the default.aspx, whenever I create a new Web form, no code
behind (aspx.vb) page is created. The same thing is happening for
master pages.

I have exited Visual Web Developer 2005 Express and restarted it, and I

have rebooted the PC, but the problem persists.

I have tried to create my own code behind pages from scratch, but then
I get an error that <filename>.aspx.vb could not be found. Closing and

opening Visual Web Developer 2005 Express helped after I fiddled with
the code (it doesn't help that all my books are ASP.Net 1.0 - the 2.0
books are on the way). I got rid of the error for one webform code
behind file, one master code behind file, but not the sub master code
behind file.

Anyway, I'd like to find out how to get Visual Web Developer 2005
Express to create the code behind files for me, but if not, at least
what to do to create them manually correctly in version 2.0. I've
searched the newsgroups to see if anyone else has experienced this, but

can't find any references to it. I've been reading my books and other
articles on line, but can't find anything to solve the problem.

Any help is appreciated!

Peggy
 
C

Chris Dunaway

Firstly, make sure you click the "Show All Files" button at the top of
the Solution Explorer. Perhaps you just can't see the code behind
files.

Secondly, unless you have changed it, I believe that ASP.Net 2.0 now
defaults to a code inline model instead of code behind. Check out this
article for more information:

http://www.ftponline.com/reports/vslivesf/2005/onion/
 

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

Top