all groups > visual studio .net general > march 2006 >
You're in the

visual studio .net general

group:

Inline vs code-behind


Inline vs code-behind Sammy
3/31/2006 7:04:13 AM
visual studio .net general: What I like about Inline code model is that you can use the VS 05 designer to
create events for me (similar to opening a page in the design mode and
double-clicking on a button).
Example: select page from the drop-down, then select Load - it automatically
generates:
protected void Page_Load(object sender, EventArgs e)
{
}

My question is why can't I do this in the code-behind model?

I also find that when using the inline model, the lack of intellisense for
importing namespaces is annoying...

Looking for general opinions about which option to use.
Re: Inline vs code-behind Mikhail Arkhipov (Microsoft)
3/31/2006 9:25:14 PM
On 3/31/06 7:04, in article
74BDBB1B-0FAE-4629-B83C-0E92FB212B50@microsoft.com, "Sammy"
[quoted text, click to view]
You can, but only in VB. C# dropdowns so far has been following C++ model
(i.e. navigation only). However, have C# dropdowns behave like VB has been a
popular request so I am sure C# team knows about it.

Thanks
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button