Codebehind, Codefile, Inline & Profiles

I installed against all rules SP1 for Visual Studio 2005 on Vista. After then i developed my projects as Web Project. This have some changes for your daily work:

1. No inline Code is possible, Attibut codebehind is used again. This ends up that you can not work with visual web developer with the same files cause its using Attribut Codefile

2. i can not view file in browser ( right click in aspx)

3. Profile doesnt work. Means you can not type profile.myVal which is defined in web.config as Profile MyVal. Workaround is a Class Generator which i have not used.

I switch back to file based development. 

Published Friday, December 29, 2006 10:59 AM by preishuber
Filed under:

Comments

# re: Codebehind, Codefile, Inline & Profiles

Friday, December 29, 2006 3:34 PM by Rick Strahl

Hi Hannes,

I think you used a Web Application Project which is available in ADDITION to stock projects. SP1 ships both models now...

And you most certainly CAN use inline code with WAP projects. It's just the project won't let you add them that way through the options. You can manually add an ASPX without CodeBehind and it will edit just fine in VS.NET.

I agree with you on the View in Browser which is missing from the designer view. It's still there in the project view though.

Visual Web Developer doesn't support Web Application Projects at all - only stock projects.

Leave a Comment

(required) 
(required) 
(optional)
(required)