Hi,
for the second question:
There should be option of choosing the WebForm from two types. "WebForm" and
"WebForm using code separation" (nickname code-beside) or something similar
(can't recall the names exactly now as I don't have the Whidbey IDE here at
work). If you choose the first one, the code goes inline with the aspx and
if you choose the second one, it goes to separate file like with code-behind
model.
BUT: With code-beside the difference is that it (code-beside class) is now
compiled to single class with the linked page, therefore the name
code-beside. In earlier version the dynamically compiled page class derived
from the code-behind class, which meant two different classes (obviously)
and again that event handlers etc couldn't be private. As the new model uses
new partial class feature in Whidbey, all this stuff can now be pushed to
the single class (which is separated to the dynamic page class file and the
code-beside class file if you use code-separation) and event handlers &
members can be private to the page and so on. And also it is now even more
question of personal preference, do you use inline code or code-beside (I'd
still use code-beside) as the IDe supports Intellisense etc for both models
equivally.
My explanation is bit messy so here's link to more quality information:
http://msdn.microsoft.com/asp.net/wh...ompilation.asp
(New Code Compilation Features in ASP.NET Whidbey)
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Doug Holland" <do**********@p recisionobjects .com> wrote in message
news:08******** *************** *****@phx.gbl.. .
Hi There
I just installed the PDC build of Whidbey onto Windows XP
using the 'Web Developer' profile when I installed and
was a little surprised to see that it is only ASP.NET
projects that I have available and now wishing I'd
chosen 'C# Developer' which probably displays all project
type ... how do I switch profiles in VS.NET Whidbey????
Secondly what happened to Microsoft telling us that code
behind was the right way to go (rightly so), because when
I created my first ASP.NET 2.0 'HelloWorld' application
the code behind has disappeared unless I select to add a
new file and select 'Web Form using Code Separation'.
Strange things are a foot in Whidbey Land!!!
- Doug