I’ve finally gotten around to having a closer look at the current Whidbey beta – particularly from the ASP.NET angle. However, I’ve got a fairly straightforward question that so far I haven’t been able to find any answer to – or even the slightest hint of one. Suppose I want to create a custom Web Control, that accepts a type parameter so that, for instance, we can provide a strongly typed DataItem property.
Obviously you can create an instance of this object by doing
in the page load event, but at the moment there doesn’t seem to be a way to define this in the aspx page, along the lines of
<vc:SomeGenericControl : SomeObjectType runat=”server” />
or equivalent. Is this something that just hasn’t made the current beta, or is that syntax not going to be included at all?