<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx</link><description>Reading this post made me thinking how exactly markup for a generic control should look like. It would be nice to have something that is SGML-compiliant syntax so we won't have to special case anything in our parser. For example &amp;lt; vc : SomeGenericControl</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Generics in ASP.NET 2.0?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#216961</link><pubDate>Thu, 19 Aug 2004 09:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:216961</guid><dc:creator>James Crowley</dc:creator><description /></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#216963</link><pubDate>Thu, 19 Aug 2004 06:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:216963</guid><dc:creator>Moshe Eshel</dc:creator><description>Why not just add another Attribute to the Element (or even a few) that would be both XML/SGML comliant and also serve the purpose - unless I'm missing something basic.&lt;br&gt;&lt;br&gt;Moshe&lt;br&gt;I wish I had a blog here to be able to put my URL above :(</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#216965</link><pubDate>Thu, 19 Aug 2004 06:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:216965</guid><dc:creator>Mikhail Arkhipov (MSFT)</dc:creator><description>Attributes typically map to control properties, but yes, it is possible to add attributes that specifically target generics types.</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#216970</link><pubDate>Thu, 19 Aug 2004 07:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:216970</guid><dc:creator>Thomas Tomiczek</dc:creator><description>Braces. Easy enough to read.</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217032</link><pubDate>Thu, 19 Aug 2004 10:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217032</guid><dc:creator>Joel Martinez</dc:creator><description>in my opinion, whatever the end result is, please don't break from the standard.  At the end of the day, it is the standards that make sure everything stays within reason and you're not left with a proprietary mess that no one will touch with a ten foot pole.&lt;br&gt;&lt;br&gt;how about using a double underscore to work that out?&lt;br&gt;&lt;br&gt;&amp;lt;ns:control__type runat=&amp;quot;server&amp;quot; /&amp;gt;</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217036</link><pubDate>Thu, 19 Aug 2004 11:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217036</guid><dc:creator>Bill Trowbridge</dc:creator><description>&amp;gt;   It would be nice to have something that is SGML-compiliant syntax so we won't have to special case anything in our parser.&lt;br&gt;&lt;br&gt;It's not just nice.  I'd say it's an absolute requirement that any syntax be completely SGML-compliant.  Otherwise you'd be breaking both the parser and the standard.  (I prefer Moshe's suggestion.)&lt;br&gt;&lt;br&gt;---&lt;br&gt;&amp;gt; ... syntax with semicolons ...&lt;br&gt;&lt;br&gt;I'm not sure if you really mean semicolons, or colons:&lt;br&gt; semicolon = ;&lt;br&gt; colon = :</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217037</link><pubDate>Thu, 19 Aug 2004 11:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217037</guid><dc:creator>lexp</dc:creator><description>&amp;lt;vc:SomeGenericControl(SomeObjectType1.SubType1, SomeObjectType2.SubType2)  runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br&gt;&lt;br&gt;for me is the best one.&lt;br&gt;&lt;br&gt;To be fully XML compliant, consider the following:&lt;br&gt;&lt;br&gt;&amp;lt;vc:SomeGenericControl-SomeObjectType1.SubType1-SomeObjectType2.SubType2 runat=&amp;quot;server&amp;quot; /&amp;gt;</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217039</link><pubDate>Thu, 19 Aug 2004 11:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217039</guid><dc:creator>lexp</dc:creator><description>&amp;lt;vc:SomeGenericControl-SomeObjectType1.SubType1-SomeObjectType2.SubType2 runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br&gt;&lt;br&gt;by the way is very easy to parse. And in future it can be ported to fully XML-complant ASP.NET version (will it be?).</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217053</link><pubDate>Thu, 19 Aug 2004 12:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217053</guid><dc:creator>James Crowley</dc:creator><description>That looks fine to me - I'd definitely go with an SGML-compliant syntax. Any idea if something like this stands any chance of being implemented for the ASP.NET 2.0 parser? ;)</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217129</link><pubDate>Thu, 19 Aug 2004 15:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217129</guid><dc:creator>Mikhail Arkhipov( (MSFT)</dc:creator><description>I like the proposal with dots and dashes. I am always trying to steer file formats towards standard ones since it greatly simplifies my team's life as we don't have to special case yet another format So you don't have to preach XML to me :-)&lt;br&gt;&lt;br&gt;Underscores, I think, are less convenient since element names with underscores are fairly common. Using additional attributes probably not very convenient since we want to be able to specify generics on attributes as well as any control property can be generic. Therefore, notion of the type has to be in the element or attribute name.</description></item><item><title>ASP.NET 2.0 Generic Control Tag Syntax</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217190</link><pubDate>Thu, 19 Aug 2004 20:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217190</guid><dc:creator>hacked.brain</dc:creator><description /></item><item><title>ASP.NET 2.0 Generic Control Tag Syntax</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217192</link><pubDate>Thu, 19 Aug 2004 20:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217192</guid><dc:creator>hacked.brain</dc:creator><description /></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217210</link><pubDate>Thu, 19 Aug 2004 17:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217210</guid><dc:creator>Eric Newton</dc:creator><description>Are we over thinking this?  Generic webcontrols?  I'm having a hard time imagining why you'd want to define a Webcontrol or Form control as a generic?  ...to strongly type the Tag property (on Forms controls)?  &lt;br&gt;&lt;br&gt;Personally, I dont think this is an appropriate use of generics.  Controls should be concrete.</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217339</link><pubDate>Thu, 19 Aug 2004 20:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217339</guid><dc:creator>Sean Gephardt</dc:creator><description>I have to agree with Eric Newton on this, at the page level, generics seem feasible, in fact I'm currently using them that way, as a collection of controls. But to have a ASP.NET control that is a collection of any/all controls seems a bit much. Plus doesn't ASP.net (sarting with the Page class) already provide a control heirarchy?</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217381</link><pubDate>Thu, 19 Aug 2004 21:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217381</guid><dc:creator>chris hollander</dc:creator><description>how does Xaml markup generics?&lt;br&gt;&lt;br&gt;further, it might help if you could give a slightly more concrete example of when you might use this...&lt;br&gt;&lt;br&gt;how about using a namespace qualifier to denote the concrete type information?&lt;br&gt;&lt;br&gt;like, assuming that BindableList is a generic control, which can contain typed references to other controls that will be bound to...&lt;br&gt;&lt;br&gt;&amp;lt;BindableList Generic:Types=&amp;quot;CheckBox, Button&amp;quot; DataSource=&amp;quot;...&amp;quot; /&amp;gt;</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#217464</link><pubDate>Thu, 19 Aug 2004 23:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:217464</guid><dc:creator>Anatoly Lubarsky</dc:creator><description>&amp;lt;vc:SomeGenericControl$SomeObjectType$ runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br&gt;&lt;br&gt;or even&lt;br&gt;&lt;br&gt;&amp;lt;vc:SomeGenericControl$string$MyType.SubType runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br&gt;&lt;br&gt;you got the idea :)</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#219045</link><pubDate>Mon, 23 Aug 2004 19:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:219045</guid><dc:creator>Bertrand Le Roy</dc:creator><description>Funny, I was thinking about the exact same question last week. I came up with the same dash suggestion that's been suggested before because it's readable, xml-compliant, easily parsable and can't conflict with existing controls.&lt;br&gt;The applications I can immediately see are strongly typed textboxes:&lt;br&gt;&amp;lt;asp:TypeBox-DateTime runat=server value=&amp;quot;8/21/2004&amp;quot;/&amp;gt;&lt;br&gt;and strongly typed grid columns.&lt;br&gt;These two alone would justify the feature to me.</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#221057</link><pubDate>Thu, 26 Aug 2004 19:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:221057</guid><dc:creator>Eric Newton</dc:creator><description>I like where you're going with the strongly typed grid columns.  But the &amp;quot;TypeBox-DateTime&amp;quot; doesnt make sense... &lt;br&gt;&lt;br&gt;Consider that the &amp;quot;TypeBox&amp;quot; would theoretically have to validate the text as DateTime, and having the TypeBox's Value property be typed to DateTime is nice, but I still think that CONTROLS should always be concrete...</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#225839</link><pubDate>Sun, 05 Sep 2004 16:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:225839</guid><dc:creator>Derek Harmon</dc:creator><description>What representation would be used when one of the types in the generic is itself a generic?  For example, if I had the conventional template programming example of a Dictionary&amp;amp;lt;string,Iterator&amp;amp;lt;DateTime&amp;amp;gt; &amp;amp;gt;?  Dots and dashes (which of the proposals I like best as '-' is allowed in XML names, but not identifier names) seem to only give us one level of genericism.&lt;br&gt;&lt;br&gt;I see plenty of valuable use cases for server control generics, by the way. Generics are not only for strongly-typed collections! They can be leveraged to construct entire business frameworks. Imagine, if you will, an insurance company's DataGrid that's a generic based on a WholeLifePolicy, a VULPolicy, a TermLifePolicy, etc. Each of these DataGrids could now expose method and property signatures made more type-aware and reusable by being a generic.  This makes them great candidates for being readily genericized based on the type of the company's business objects.</description></item><item><title>XAML and Generics</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#228704</link><pubDate>Mon, 13 Sep 2004 14:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:228704</guid><dc:creator>MyXaml Web  Log</dc:creator><description /></item><item><title>XAML and Generics</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#228705</link><pubDate>Mon, 13 Sep 2004 14:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:228705</guid><dc:creator>MyXaml Web  Log</dc:creator><description /></item><item><title>XAML and Generics</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#228707</link><pubDate>Mon, 13 Sep 2004 14:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:228707</guid><dc:creator>Marc Clifton</dc:creator><description /></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#228889</link><pubDate>Mon, 13 Sep 2004 17:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:228889</guid><dc:creator>Keith J. Farmer</dc:creator><description>How would you handle generic methods, eg&lt;br&gt;&lt;br&gt;FooClass&amp;lt;barType&amp;gt;.FooMethod&amp;lt;bazType&amp;gt;(gleepVar)&lt;br&gt;&lt;br&gt;Perhaps some form of typeDef/methodDef declaration, though specifying the legal generic options at compile-time would disallow the runtime option of&lt;br&gt;&lt;br&gt;FooClass&amp;lt;barVar.GetType()&amp;gt;&lt;br&gt;&lt;br&gt;Of course, another option is to break with XML/SGML.  I wouldn't relish that option at all.&lt;br&gt;&lt;br&gt;Could anything be done with BindableList[[Checkbox, Button]](bar, baz)?</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#228973</link><pubDate>Mon, 13 Sep 2004 20:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:228973</guid><dc:creator>Wilco B.</dc:creator><description>Generics in a markup language</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#228977</link><pubDate>Mon, 13 Sep 2004 20:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:228977</guid><dc:creator>Mikhail Arkhipov (MSFT)</dc:creator><description>Remember, each of the control properties may also be generic. If we add attributes that specifies types for the control class, we will also have to add attributes to specify types for every control property that employs generics. The list of attributes may then become very long.</description></item><item><title>re: How do you see markup syntax of ASP.NET controls with generics?</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#229464</link><pubDate>Tue, 14 Sep 2004 17:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:229464</guid><dc:creator>Wilco B.</dc:creator><description>The control's properties can not be generic, but they can occur in generic types and use the type parameters from the enclosing type. I think what you mean is that the children of a generic control may also be generic. This means that you have to define the type parameters just like you would for its parent.&lt;br&gt;&lt;br&gt;Instead of attributes, using elements might be a more readable/flexible solution.</description></item><item><title>Control Builders &amp; ASP.NET Generic Controls</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#5215550</link><pubDate>Mon, 01 Oct 2007 01:14:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5215550</guid><dc:creator>It Could Be Done!</dc:creator><description>&lt;p&gt;Since the release of .NET 2.0 and ASP.NET 2.0 I was very disappointed that new language power of C# 2&lt;/p&gt;
</description></item><item><title>Control Builders &amp; ASP.NET Generic Control Classes</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#5227829</link><pubDate>Tue, 02 Oct 2007 00:09:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5227829</guid><dc:creator>It Could Be Done!</dc:creator><description>&lt;p&gt;Since the release of .NET 2.0 and ASP.NET 2.0 I was very disappointed that new language power of C# 2&lt;/p&gt;
</description></item><item><title>How to Allow Generic Controls in ASP.NET Pages</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#6658854</link><pubDate>Wed, 05 Dec 2007 01:46:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6658854</guid><dc:creator>Eilon Lipton's Blog</dc:creator><description>&lt;p&gt;Did you ever want to have a Repeater&amp;amp;lt;Customer&amp;amp;gt; control on your page? And its events were all strongly&lt;/p&gt;
</description></item><item><title>Generic Web Controls and EnumDropDownList</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#6669610</link><pubDate>Wed, 05 Dec 2007 22:29:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6669610</guid><dc:creator>Steven Smith</dc:creator><description>&lt;p&gt;I just published an article on ASPAlliance that shows a few different techniques for binding a DropDownList&lt;/p&gt;
</description></item><item><title>Three Requests for ASP.NET 4 and VS 2010</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#8272955</link><pubDate>Sun, 16 Mar 2008 23:24:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8272955</guid><dc:creator>Steven Smith</dc:creator><description>&lt;p&gt;I have three things that have been on my wish list for ASP.NET and/or Visual Studio that I'm curious&lt;/p&gt;
</description></item><item><title>Extending the DropDownList to Support Enums &amp;laquo; using &amp;#8230;</title><link>http://blogs.msdn.com/mikhailarkhipov/archive/2004/08/18/216957.aspx#8994065</link><pubDate>Fri, 10 Oct 2008 14:05:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8994065</guid><dc:creator>Extending the DropDownList to Support Enums &amp;laquo; using &amp;#8230;</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://esersahin.wordpress.com/2008/10/10/extending-the-dropdownlist-to-support-enums/"&gt;http://esersahin.wordpress.com/2008/10/10/extending-the-dropdownlist-to-support-enums/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>