<?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>Marcin On ASP.NET : samples</title><link>http://blogs.msdn.com/marcinon/archive/tags/samples/default.aspx</link><description>Tags: samples</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Dynamic Data Futures 7/16 update posted</title><link>http://blogs.msdn.com/marcinon/archive/2008/07/17/dynamic-data-futures-7-16-update-posted.aspx</link><pubDate>Fri, 18 Jul 2008 04:27:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8745643</guid><dc:creator>marcind</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/marcinon/comments/8745643.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcinon/commentrss.aspx?PostID=8745643</wfw:commentRss><description>&lt;p&gt;We have just posted an updated version of &lt;a href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475"&gt;Dynamic Data Futures&lt;/a&gt; on &lt;a href="http://www.codeplex.com/aspnet"&gt;codeplex&lt;/a&gt;. The Dynamic Data Features project is a combination of a class library and sample website that showcases some of the future work that will be coming to Dynamic Data. It also contains some workarounds for existing Dynamic Data bugs and issues.&lt;/p&gt;  &lt;p&gt;Here's a rough list of what is new from last week:&lt;/p&gt;  &lt;li&gt;Added ImprovedDynamicValidator control that fixes issues with DynamicValidator correctly catching exceptions thrown off a validated data model object. A tag mapping in web.config is used to automatically replace all instance of DynamicValidator with ImprovedDynamicValidator. This validator is also now added to the ForeignKey_Edit template. &lt;/li&gt;  &lt;li&gt;Added EnumDataTypeAttribute that can be used to mark integral columns as actually representing enumerated CLR types. &lt;/li&gt;  &lt;li&gt;Modified the Enumeration field template and filter template to take EnumDataTypeAttribute into account. &lt;/li&gt;  &lt;li&gt;Modified the Enumeration filter template to detect if an enum is in flags mode and display a CheckBoxList instead of a DropDownList. &lt;/li&gt;  &lt;li&gt;Added validation to the DbImage_Edit template. It now verifies that the provided file is a valid image and also that a file is provided at all if the column is required. &lt;/li&gt;  &lt;li&gt;Added constraints to routes to illustrate how to block invalid requests. &lt;/li&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8745643" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcinon/archive/tags/samples/default.aspx">samples</category><category domain="http://blogs.msdn.com/marcinon/archive/tags/ASP.NET+Dynamic+Data+Futures/default.aspx">ASP.NET Dynamic Data Futures</category></item><item><title>Dynamic Data Futures 6/25 update posted</title><link>http://blogs.msdn.com/marcinon/archive/2008/06/25/dynamic-data-futures-6-25-update-posted.aspx</link><pubDate>Thu, 26 Jun 2008 01:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8653781</guid><dc:creator>marcind</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/marcinon/comments/8653781.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcinon/commentrss.aspx?PostID=8653781</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; the Dynamic Data Futures &lt;A class="" href="http://blogs.msdn.com/marcinon/archive/2008/07/02/dynamic-data-futures-7-2-update-posted.aspx" mce_href="http://blogs.msdn.com/marcinon/archive/2008/07/02/dynamic-data-futures-7-2-update-posted.aspx"&gt;was updated on 7/2&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;We have just posted an updated version of &lt;A href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475" mce_href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475"&gt;Dynamic Data Futures&lt;/A&gt; (known for the last 10 days as Dynamic Data Extensions) on &lt;A href="http://www.codeplex.com/aspnet" mce_href="http://www.codeplex.com/aspnet"&gt;codeplex&lt;/A&gt;. The Dynamic Data Features project is a combination of a class library and sample website that showcases some of the future work that will be coming to Dynamic Data. It also contains some workarounds for existing Dynamic Data bugs and issues.&lt;/P&gt;
&lt;P&gt;Here's a rough list of what is new from last week:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Moved/renamed a number of library files for better logical organization. Classes are now organized what they generally do instead of how they apply to a particular sample.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Updated DbImage.ascx to better handle compound and GUID primary key tables. Also, page templates will disable AJAX partial rendering when editing an image column to allow the FileUpload control to work properly.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Added support for complex where parameters. This can be seen in the pages under ComplexWhereParameters in the sample app that already have a Where clause for LinqDataSource but also use the filters to contribute extra components.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Added automatic support for enumerated type columns. UIHint is no longer needed to reference Enumeration.ascx.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Moved a number of extension/utility methods to the DynamicDataFutures class. This includes localization helpers, metadata helpers, and default value helpers.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Consolidated IAutoFieldGenerator implementations into a single AdvancedFieldGenerator class. It now includes functionality enabling column ordering, programatically excluding a list of columns, and a workaround for issues with attribute localization.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Refactored common LINQ Expression generation code into the LinqExpressionHelper class.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8653781" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcinon/archive/tags/samples/default.aspx">samples</category><category domain="http://blogs.msdn.com/marcinon/archive/tags/ASP.NET+Dynamic+Data+Futures/default.aspx">ASP.NET Dynamic Data Futures</category></item><item><title>Dynamic Data samples: Extending the FilterRepeater</title><link>http://blogs.msdn.com/marcinon/archive/2008/05/29/dynamic-data-samples-extending-the-filterrepeater.aspx</link><pubDate>Fri, 30 May 2008 04:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8561002</guid><dc:creator>marcind</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/marcinon/comments/8561002.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcinon/commentrss.aspx?PostID=8561002</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;6/25 Update:&lt;/STRONG&gt; This sample has become part of the &lt;A class="" href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475" mce_href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475"&gt;&lt;FONT color=#555555&gt;Dynamic Data Futures&lt;/FONT&gt;&lt;/A&gt; project on codeplex. You can still use this code but you should check out the Futures project as it contains a lot more. The key conecpts are the same, though some names or APIs might have changed.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Note&lt;/I&gt;: This post is part of a series, see the list of other &lt;A href="http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples.aspx" mce_href="http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples.aspx"&gt;Dynamic Data samples&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The FilterRepeater is a control in Dynamic Data that is responsible for automatically emitting a list of filter controls that can be used to filter data rows displayed for a table. The filters work by providing a list of where parameters to the data source for each supported column type. By default Dynamic Data supports foreign key and boolean columns and renders them using a DropDownList. This and upcoming posts will talk about ways in which you can add filtering for other column types and how to modify the filter UI.&lt;/P&gt;
&lt;P&gt;All of the code referenced here is part of the &lt;A href="http://blogs.msdn.com/marcinon/attachment/8561002.ashx" mce_href="http://blogs.msdn.com/marcinon/attachment/8561002.ashx"&gt;AdvancedFilterRepeaterSample solution&lt;/A&gt;.To run the sample open the solution in Visual Studio 2008 SP1 Beta or later and run AdvancedFilterRepeaterSite (note: it might not be the default project for the solution, so right click on Default.aspx inside the project and choose View in Browser). Navigate to the list page for the Products table where you can experiment with some new filtering options. For example, type "con" into the Categories filter. You should see an AJAX autocomplete drop-down instead of the default drop-down list.&lt;BR&gt;&lt;/P&gt;
&lt;H3&gt;Introduction to FilterRepeater&lt;/H3&gt;
&lt;P&gt;FilterRepeater is a specialized Repeater control that will automatically bind to a collection of filterable columns for the given request's table: if a request comes in for /Products/List.aspx, it will bind to the columns in the Products table. The table is chosen based on the route that the request matched, or it can be overridden by setting the TableName and ContextTypeName properties.&lt;/P&gt;
&lt;P&gt;To work correctly FilterRepeater expects its ItemTemplate to have correct content. Specifically, it requires a control with a known ID ("DynamicFilter" by default) that derives from FilterUserControlBase. When databinding occurs FilterRepeater initializes an instance of the filter control with information about the column to filter.&lt;/P&gt;
&lt;P&gt;Below is a snippet of the code that ships in the default Dynamic Data templates:&lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:FilterRepeater &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;FilterRepeater&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;server&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;ItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;        &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:Label &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;server&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;'&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;%# &lt;SPAN style="COLOR: red"&gt;Eval&lt;/SPAN&gt;("&lt;SPAN style="COLOR: blue"&gt;DisplayName&lt;/SPAN&gt;") %&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;' /&amp;gt;&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:DynamicFilter &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;server&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;DynamicFilter&lt;/SPAN&gt;"&lt;BR&gt;             &lt;SPAN style="COLOR: red"&gt;OnSelectedIndexChanged&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;OnFilterSelectedIndexChanged&lt;/SPAN&gt;" &lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&lt;BR&gt;    &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;ItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;FooterTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;br &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;br &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;FooterTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:FilterRepeater&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt; &lt;/PRE&gt;
&lt;H3&gt;FilterRepeater version 2.0 (well, more like 1.1 really)&lt;/H3&gt;
&lt;P&gt;The DynamicDataExtensions project contains a simple extension of FilterRepeater called AdvancedFilterRepeater. It is not really that advanced (I started with that name and never bothered to change it) as it overrides only one method: GetFilteredColumns. This method is what is used as the databinding source. Below is a slightly simplified source of how it is implemented:&lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;public class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;AdvancedFilterRepeater &lt;/SPAN&gt;: &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;FilterRepeater &lt;/SPAN&gt;{&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;protected override &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;IEnumerable&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;MetaColumn&lt;/SPAN&gt;&amp;gt; GetFilteredColumns() {&lt;SPAN style="COLOR: green"&gt;&lt;BR&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;return &lt;/SPAN&gt;Table.Columns.Where(c =&amp;gt; IsFilterableColumn(c)).OrderBy(column =&amp;gt; column, &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;FilterOrderComparer&lt;/SPAN&gt;());&lt;BR&gt;    }&lt;BR&gt;&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;protected bool &lt;/SPAN&gt;IsFilterableColumn(&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;MetaColumn &lt;/SPAN&gt;column) {&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(column.IsCustomProperty) &lt;SPAN style="COLOR: blue"&gt;return false&lt;/SPAN&gt;;&lt;BR&gt;&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;var &lt;/SPAN&gt;filterAttribute = column.Attributes.OfType&amp;lt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;FilterAttribute&lt;/SPAN&gt;&amp;gt;().FirstOrDefault();&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(filterAttribute != &lt;SPAN style="COLOR: blue"&gt;null&lt;/SPAN&gt;) &lt;SPAN style="COLOR: blue"&gt;return &lt;/SPAN&gt;filterAttribute.Enabled;&lt;BR&gt;&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(column &lt;SPAN style="COLOR: blue"&gt;is &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;MetaForeignKeyColumn&lt;/SPAN&gt;) &lt;SPAN style="COLOR: blue"&gt;return true&lt;/SPAN&gt;;&lt;BR&gt;&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;if &lt;/SPAN&gt;(column.ColumnType == &lt;SPAN style="COLOR: blue"&gt;typeof&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;bool&lt;/SPAN&gt;)) &lt;SPAN style="COLOR: blue"&gt;return true&lt;/SPAN&gt;;&lt;BR&gt;&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;return false&lt;/SPAN&gt;;&lt;BR&gt;    }&lt;BR&gt;&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;private class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;FilterOrderComparer &lt;/SPAN&gt;: &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;IComparer&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;MetaColumn&lt;/SPAN&gt;&amp;gt; {&lt;BR&gt;        &lt;SPAN style="COLOR: green"&gt;// implementation omitted for brevity&lt;/SPAN&gt;&lt;BR&gt;    }&lt;BR&gt;}&lt;/PRE&gt;
&lt;P&gt;The Table property is automatically populated with the right MetaTable instance based on the table resolution rules mentioned in the previous section. The rest is a simple LINQ extension method query and some boolean logic to choose the filterable columns. The only way this deviates from the default process is the addition and handling of FilterAttribute, which is a new attribute written for the purpose of this sample. It combines the roles of UIHintAttribute and ScaffoldColumnAttribute from Dynamic Data field templates and should be applied to columns in an analogous manner. Here's the full signature:&lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;public sealed class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;FilterAttribute &lt;/SPAN&gt;: &lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Attribute &lt;/SPAN&gt;{&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;public string &lt;/SPAN&gt;FilterControl { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;SPAN style="COLOR: green"&gt;&lt;BR&gt;    &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;public int &lt;/SPAN&gt;Order { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;public bool &lt;/SPAN&gt;Enabled { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;}&lt;/PRE&gt;
&lt;P&gt;The FilterControl property lets you specify which user control to use as the filter while the Enabled property lets you omit a given column's filter in the AdvancedFilterRepeater. The Order property let's you specify an ordering weight.&lt;/P&gt;
&lt;H3&gt;Specifying custom filter controls&lt;/H3&gt;
&lt;P&gt;The reason why the implementation of AdvancedFilterRepeater is so simple is because a lot of work is done in two other components:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;FilterFactory is the equivalent of FieldTemplateFactory for filters. It uses the information in a column's FilterAttribute to determine which filter user control to instantiate for the column. It takes the value of the attribute's FilterControl property and looks for a user control located at ~\DynamicData\Filters\{FilterControl}.ascx. If a filter attribute is not specified ~\DynamicData\Filters\Default.ascx is used, which is identical to the FilterUserControl.ascx that is part of the default Dynamic Data template. &lt;/LI&gt;
&lt;LI&gt;DelegatingFilter is a control that derives from FilterUserControlBase (which means that it is itself a filter) and delegates the filtering behavior to another filter control. It uses the FilterFactory class to determine which control to use. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;In order to take advantage of AdvancedFilterRepeater and DelegatingFilter you need to replace the existing FilterRepeater in your List.aspx page template with the following code:&lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:AdvancedFilterRepeater &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;id&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;AdvancedFilterRepeater&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;server&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;HeaderTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;        &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;table&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;HeaderTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;ItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;        &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;tr&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;            &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;td &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;valign&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;top&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;%# &lt;SPAN style="COLOR: red"&gt;Eval&lt;/SPAN&gt;("&lt;SPAN style="COLOR: blue"&gt;DisplayName&lt;/SPAN&gt;") %&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;:&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;td&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt; &lt;BR&gt;            &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;td&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:DelegatingFilter &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;server&lt;/SPAN&gt;" &lt;SPAN style="COLOR: red"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;DynamicFilter&lt;/SPAN&gt;"&lt;BR&gt;                     &lt;SPAN style="COLOR: red"&gt;OnSelectionChanged&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="COLOR: blue"&gt;OnFilterSelectionChanged&lt;/SPAN&gt;" &lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&lt;BR&gt;        &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;tr&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;ItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;FooterTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;        &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;table&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;    &amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;FooterTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;asp:AdvancedFilterRepeater&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;This template is pretty similar to the default one seen earlier in this post except it wraps each filtered column in a table row for cleaner formatting (yes, using tables for layout is wrong but this post is not about layouts). And of course DynamicFilter has been replaced with DelegatingFilter.&lt;/P&gt;
&lt;P&gt;To take advantage of the custom filter controls included in the sample such as autocomplete filter or cascading filter you need to annotate your data model with FilterAttribute. Here's a snippet of how it is done in the sample:&lt;/P&gt;&lt;PRE class=code&gt;[&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;MetadataType&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;typeof&lt;/SPAN&gt;(&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product_MD&lt;/SPAN&gt;))]&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;public partial class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product &lt;/SPAN&gt;{ }&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;public class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product_MD &lt;/SPAN&gt;{&lt;BR&gt;    &lt;SPAN style="COLOR: green"&gt;// Display the Category and Supplier filters using the Autocomplete.ascx filter control&lt;BR&gt;    &lt;/SPAN&gt;[&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Filter&lt;/SPAN&gt;(FilterControl = &lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"Autocomplete"&lt;/SPAN&gt;)]&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;public object &lt;/SPAN&gt;Category { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;    [&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Filter&lt;/SPAN&gt;(FilterControl = &lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"Autocomplete"&lt;/SPAN&gt;)]&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;public object &lt;/SPAN&gt;Supplier { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;&lt;BR&gt;    &lt;SPAN style="COLOR: green"&gt;// Display the Discontinued filter using the BooleanRadio.ascx filter control&lt;BR&gt;    // Make sure the Discontinued filter is displayed first&lt;BR&gt;    &lt;/SPAN&gt;[&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Filter&lt;/SPAN&gt;(FilterControl = &lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"BooleanRadio"&lt;/SPAN&gt;, Order = 1)]&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;public object &lt;/SPAN&gt;Discontinued { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;&lt;BR&gt;    &lt;SPAN style="COLOR: green"&gt;// Display the UnitsInStock filter using Integer.ascx filter control&lt;BR&gt;    &lt;/SPAN&gt;[&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Filter&lt;/SPAN&gt;(FilterControl = &lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"Integer"&lt;/SPAN&gt;)]&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;public object &lt;/SPAN&gt;UnitsInStock { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;}&lt;/PRE&gt;
&lt;P&gt;When you run the application and view the list page for the Products table the appropriate filters get inserted automatically. Future posts will discuss how the more advanced filters are implemented.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8561002" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/marcinon/attachment/8561002.ashx" length="1280408" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/marcinon/archive/tags/ASP.NET+Dynamic+Data/default.aspx">ASP.NET Dynamic Data</category><category domain="http://blogs.msdn.com/marcinon/archive/tags/samples/default.aspx">samples</category></item><item><title>Dynamic Data samples: Custom metadata providers</title><link>http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples-custom-metadata-providers.aspx</link><pubDate>Fri, 23 May 2008 02:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8535066</guid><dc:creator>marcind</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/marcinon/comments/8535066.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcinon/commentrss.aspx?PostID=8535066</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;6/25 Update:&lt;/STRONG&gt; This sample has become part of the &lt;A class="" href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475" mce_href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14475"&gt;Dynamic Data Futures&lt;/A&gt; project on codeplex. You can still use this code but you should check out the Futures project as it contains a lot more. The key conecpts are the same, though some names or APIs might have changed.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Note&lt;/I&gt;: This post is part of a series, see the list of other &lt;A href="http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples.aspx" mce_href="http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples.aspx"&gt;Dynamic Data samples&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;A while back I posted some &lt;A href="http://blogs.msdn.com/marcinon/archive/2007/12/10/adding-custom-metadata-providers-in-asp-net-3-5-extensions-preview.aspx" mce_href="http://blogs.msdn.com/marcinon/archive/2007/12/10/adding-custom-metadata-providers-in-asp-net-3-5-extensions-preview.aspx"&gt;sample code for adding custom metadata providers&lt;/A&gt;. Since then much has changed in the Dynamic Data runtime and it is time to post an updated version. This sample illustrates how to write a custom metadata provider that allows you to programmatically add metadata attributes to an in-memory store before you register your model with the Dynamic Data runtime in Global.asax.&lt;/P&gt;
&lt;P&gt;This sample should work with the &lt;A href="http://code.msdn.microsoft.com/dynamicdata" mce_href="http://code.msdn.microsoft.com/dynamicdata"&gt;latest preview release of Dynamic Data&lt;/A&gt;.&lt;BR&gt;&lt;/P&gt;
&lt;H3&gt;Running the sample&lt;/H3&gt;
&lt;P&gt;Download the &lt;A class="" href="http://blogs.msdn.com/marcinon/attachment/8535066.ashx" mce_href="http://blogs.msdn.com/marcinon/attachment/8535066.ashx"&gt;metadata provider sample&lt;/A&gt; solution, extract to your preferred location, and open in Visual Studio 2008 SP1. The solution contains two projects: a sample website and a small library project that contains the metadata provider code.&lt;/P&gt;
&lt;P&gt;Run the included website and go the Products list page. Once there hit Edit on any of the rows. You will be taken to a details view for the row you are editing. Change the UnitsInStock field to a negative value and move out of the field: a range validation error appears. Go back to the same field, clear it, and move out again: a required validation error appears.&lt;/P&gt;
&lt;H3&gt;How it works&lt;/H3&gt;
&lt;P&gt;The website scaffolds a small subset of the Northwind sample database. The UnitsInStock column on the Product table is decorated with two attributes: RequiredAttribute and RangeAttribute. However, the unique thing here is that each attribute is coming from a different source.&lt;/P&gt;
&lt;P&gt;The RequiredAttribute is declared in the default Dynamic Data way using a metadata proxy class:&lt;/P&gt;&lt;PRE class=code&gt;[&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;MetadataType&lt;/SPAN&gt;(&lt;SPAN style="COLOR: blue"&gt;typeof&lt;/SPAN&gt;(&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product_MD&lt;/SPAN&gt;))]&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;public partial class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product &lt;/SPAN&gt;{&lt;BR&gt;&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;private class &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product_MD &lt;/SPAN&gt;{&lt;BR&gt;        [&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Required&lt;/SPAN&gt;(ErrorMessage=&lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"This field is required [from MetadataType]"&lt;/SPAN&gt;)]&lt;BR&gt;        &lt;SPAN style="COLOR: blue"&gt;public object &lt;/SPAN&gt;UnitsInStock { &lt;SPAN style="COLOR: blue"&gt;get&lt;/SPAN&gt;; &lt;SPAN style="COLOR: blue"&gt;set&lt;/SPAN&gt;; }&lt;BR&gt;    }&lt;BR&gt;}&lt;/PRE&gt;
&lt;P&gt;The RangeAttribute is added to the InMemoryMetadataManager class in Global.asax:&lt;/P&gt;&lt;PRE class=code&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;InMemoryMetadataManager&lt;/SPAN&gt;.AddColumnAttributes&amp;lt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;Product&lt;/SPAN&gt;&amp;gt;(p =&amp;gt; p.UnitsInStock,&lt;BR&gt;    &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;RangeAttribute&lt;/SPAN&gt;(0, 1000) { &lt;BR&gt;        ErrorMessage = &lt;SPAN style="COLOR: rgb(163,21,21)"&gt;"This field must be between {1} and {2} [from InMemeroyMetadataManager]." &lt;/SPAN&gt;}&lt;BR&gt;);&lt;/PRE&gt;
&lt;P&gt;The AddColumnAttributes function shown here has a way to strongly type the property references (as opposed to writing something like AddColumnAttributes("UnitsInStock", ...)) using a simple lambda expression. This provides for some nice IntelliSense support that would not be available if you were referring to properties using simple strings.&lt;/P&gt;
&lt;P&gt;In order to have the Dynamic Data runtime pick up the metadata attributes added to InMemoryMetadataManager you need to modify your model registration call in Global.asax:&lt;/P&gt;&lt;PRE class=code&gt;model.RegisterContext(&lt;SPAN style="COLOR: blue"&gt;typeof&lt;/SPAN&gt;(&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;NorthwindDataContext&lt;/SPAN&gt;), &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;ContextConfiguration&lt;/SPAN&gt;() {&lt;BR&gt;    ScaffoldAllTables = &lt;SPAN style="COLOR: blue"&gt;true&lt;/SPAN&gt;,&lt;BR&gt;    MetadataProviderFactory =&lt;BR&gt;        (type =&amp;gt; &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;InMemoryMetadataTypeDescriptionProvider&lt;/SPAN&gt;(type, &lt;SPAN style="COLOR: blue"&gt;new &lt;/SPAN&gt;&lt;SPAN style="COLOR: rgb(43,145,175)"&gt;AssociatedMetadataTypeTypeDescriptionProvider&lt;/SPAN&gt;(type)))&lt;BR&gt;});&lt;/PRE&gt;
&lt;P&gt;The MetadataProviderFactory&amp;nbsp;property of ContextConfiguration lets you specify a metadata provider factory method that is used by the Dynamic Data runtime to obtain an instance of a &lt;A href="http://msdn.microsoft.com/en-us/library/system.componentmodel.typedescriptionprovider.aspx" mce_href="http://msdn.microsoft.com/en-us/library/system.componentmodel.typedescriptionprovider.aspx"&gt;TypeDescriptionProvider&lt;/A&gt; that acts as the source of metadata attributes for a given table (type). The sample above also illustrates TypeDescriptionProvider chaining, which is what supports the fact that the table receives metadata from two sources: the InMemory provider adds its metadata to the results returned by the AssociatedMetadataType provider and returns a combined collection.&lt;/P&gt;
&lt;H3&gt;Truly dynamic metadata&lt;/H3&gt;
&lt;P&gt;At this point it is tempting to consider a dynamic metadata provider that would let you add, remove, and modify attributes throughout the lifetime of the application and not just during the application's startup phase. For example, you could imagine having&amp;nbsp;some sort of administrative interface that would let you turn on and off whether a field is required or modify its description, even after the model has already been registered.&lt;/P&gt;
&lt;P&gt;While it would seem that such a scenario would require minimal changes to the InMemoryMetadataManager class there is one detail about Dynamic Data that makes this a lot more complicated: the current Dynamic Data runtime fetches the metadata upon model registration and then caches it inernally for the lifetime of the app domain. This means that any changes that you make to the metadata through InMemoryMetadataManager after the model has been registered will be ignored.&lt;/P&gt;
&lt;P&gt;This is a limitation of Dynamic Data that we will address in future versions. For the time being the only way to get around this would be to &lt;A href="http://msdn.microsoft.com/en-us/library/system.web.httpruntime.unloadappdomain.aspx" mce_href="http://msdn.microsoft.com/en-us/library/system.web.httpruntime.unloadappdomain.aspx"&gt;unload the app domain&lt;/A&gt;. However, this is means that you will need to find a place (such as a database) to store the new metadata while the app restarts.&lt;/P&gt;
&lt;H3&gt;What about the XML metadata?&lt;/H3&gt;
&lt;P&gt;My old custom metadata provider sample had an implementation of an XML-based metadata provider but the current one does not. The reason for this is that since the December CTP we have added support for even more attributes and some of the attributes have become a lot more complex. Because much of the old sample had to do with deserializing CLR attributes from an XML representation instead of anything specific to Dynamic Data I decided not to develop the old XML provider any further. However, if somebody ever wrote the appropriate XML parsing code it could easily be used to populate the InMemoryMetadataManager with the right values, essentially resulting in an XML metadata provider. Just remember about the domain unloading mentioned earlier.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8535066" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/marcinon/attachment/8535066.ashx" length="869249" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/marcinon/archive/tags/metadata/default.aspx">metadata</category><category domain="http://blogs.msdn.com/marcinon/archive/tags/ASP.NET+Dynamic+Data/default.aspx">ASP.NET Dynamic Data</category><category domain="http://blogs.msdn.com/marcinon/archive/tags/samples/default.aspx">samples</category></item><item><title>Dynamic Data samples</title><link>http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples.aspx</link><pubDate>Thu, 22 May 2008 20:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8532588</guid><dc:creator>marcind</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/marcinon/comments/8532588.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcinon/commentrss.aspx?PostID=8532588</wfw:commentRss><description>&lt;P&gt;In breaks between writing the Dynamic Data runtime I also write samples illustrating the various ways Dynamic Data can be extended and customized, often in response to questions on the Dynamic Data forum. In a series of upcoming posts I will share these samples with you as well as discuss how the various extensions work with the Dynamic Data runtime. This post is meant to serve as a list of the samples:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A class="" href="http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples-custom-metadata-providers.aspx" mce_href="http://blogs.msdn.com/marcinon/archive/2008/05/22/dynamic-data-samples-custom-metadata-providers.aspx"&gt;Custom metadata providers&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/marcinon/archive/2008/05/29/dynamic-data-samples-extending-the-filterrepeater.aspx" mce_href="http://blogs.msdn.com/marcinon/archive/2008/05/29/dynamic-data-samples-extending-the-filterrepeater.aspx"&gt;Extending the FilterRepeater&lt;/A&gt; &lt;B&gt;{5/29 new}&lt;/B&gt; &lt;/LI&gt;
&lt;LI&gt;Autocomplete filter&lt;/LI&gt;
&lt;LI&gt;Cascading drop-down filter&lt;/LI&gt;
&lt;LI&gt;Declaring filter ordering&lt;/LI&gt;
&lt;LI&gt;.... &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The list will be updated with links as samples become available.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8532588" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcinon/archive/tags/ASP.NET+Dynamic+Data/default.aspx">ASP.NET Dynamic Data</category><category domain="http://blogs.msdn.com/marcinon/archive/tags/samples/default.aspx">samples</category></item></channel></rss>