<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>ASP.NET Dynamic Data</title><link>http://forums.asp.net/1145.aspx</link><description>Discussions regarding the new scaffolding framework in ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2093178.aspx</link><pubDate>Mon, 07 Jan 2008 01:33:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2093178</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2093178.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2093178</wfw:commentRss><description>&lt;p&gt;Ok it&amp;#39;s done and I posted&amp;nbsp;a blog on the DotNetNuke site:&lt;/p&gt;
&lt;p&gt;&lt;a id="dnn_ctr2612_MainView_ViewBlog_lstBlogView_ctl02_lnkEntry" href="http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1701/Default.aspx"&gt;Create Data Driven Modules Instantly&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;There are still some bugs, see Known Issues at the end of this page: &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/"&gt;http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, at this point I want to wait until the next CTP before trying to resolve them rather then spending time on issues that may be fixed with the next code drop.&lt;/p&gt;
&lt;p&gt;The only other issue that I had a problem with was I could not indicate the templates were in a directory other than App_Shared. Also if I can&amp;#39;t use routing I need to be able to indicate what templates are to be used &lt;/p&gt;
&lt;p&gt;&lt;em&gt;(with DotNetNuke we could have dozens of modules using Dynamic Data and they need to have a separate set of templates. This works fine if you&amp;#39;re using the URL routing but if you&amp;#39;re not you&amp;#39;re kinds stuck right now :)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Thank you again for everything!&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2092793.aspx</link><pubDate>Sun, 06 Jan 2008 15:32:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2092793</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2092793.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2092793</wfw:commentRss><description>&lt;p&gt;Yay it&amp;#39;s working!&lt;/p&gt;
&lt;p&gt;I posted the latest code to this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/p/1201594/2092779.aspx#2092779"&gt;http://forums.asp.net/p/1201594/2092779.aspx#2092779&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;1) You&amp;#39;re right on the substring thing. I claim &amp;quot;bleariness&amp;quot; from 4 hours of &amp;quot;try this, save, refresh page, grr that wont work&amp;quot; for that one :)&lt;/p&gt;
&lt;p&gt;2) I can&amp;#39;t imagine how long it would have taken me to locate the Page_InitComplete error...&lt;/p&gt;
&lt;p&gt;3) I&amp;#39;m sure my sample code has bugs but I don&amp;#39;t want to go too far until you guys get to at least the RC stage. I just went through the CT stage with Silverlight last year and I know you can and will make changes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4) I am now going to work on the DotNetNuke module. Again it will be just a &amp;quot;preview&amp;quot; of what will come when Dynamic Data is released. I hope to allow a person to place the module on a page, select one of the avalaible DataContext&amp;#39;s and they are done (Ha it would be cool if I am able to make it work before you guys officially release this feature :) Hopefully I can get this done by February.&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2092497.aspx</link><pubDate>Sun, 06 Jan 2008 05:43:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2092497</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2092497.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2092497</wfw:commentRss><description>&lt;p&gt;I agree, it&amp;#39;s ugly that you need to get the query string this way.&amp;nbsp; We&amp;#39;ll make sure to provide a cleaner technique.&amp;nbsp; As a marginal improvement, note that you can write:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewChildernPath = ChildrenPath.Substring(intStart + 1);&lt;br /&gt;
&lt;p&gt;as by default Substring(i) goes to the end.&amp;nbsp; Obviously not a fundamental difference, but more of an FYI.&lt;/p&gt;
&lt;p&gt;The reason is doesn&amp;#39;t work turns out to be quite simple: you moved the logic from an aspx to an ascx, but since the aspx&amp;nbsp;has a Page_InitComplete method, which ascx&amp;nbsp;don&amp;#39;t support, it ends up getting ignored!&amp;nbsp; I know, you probably wish it had caused a failure.&amp;nbsp; Anyway, just change it to Page_Init and you&amp;#39;ll be on your way.&lt;/p&gt;
&lt;p&gt;As for how it all works:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The filters get their value from the query string (even though they&amp;#39;re&amp;nbsp;hidden in your case).&lt;/li&gt;
&lt;li&gt;The GridView gets the Foreign Key value from the filter (via the DynamicControlParameter) parameter&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Good luck with the rest.&amp;nbsp; BTW, it &lt;strong&gt;really&lt;/strong&gt; helps that you make a fully runnable app available, instead of just posting snippets.&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2092402.aspx</link><pubDate>Sun, 06 Jan 2008 01:44:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2092402</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2092402.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2092402</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s no problem if I have to work on this myself. I just wanted anyone else who was interested to know I would be happy to share the &amp;quot;Glory&amp;quot; :)&lt;/p&gt;
&lt;p&gt;Made a bit of progress. I can create a proper query string:&lt;/p&gt;
&lt;p&gt;&lt;img height="334" src="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/images/img5.jpg" width="514" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;However I don&amp;#39;t know how to process the &amp;quot;Region.RegionID=3&amp;quot; part. Right now the entire Territories table just shows. Is there a &amp;quot;Filter&amp;quot; parameter I should be setting somewhere?&lt;/p&gt;
&lt;p&gt;Also the way I am getting this querystring is Uggggly. It seems you guys exposed a &amp;quot;ChildrenPath&amp;quot; property that is the combination of stuff passiging through the web.config routing (that will be using the MVC routing in the next version). So I guess my latest feedback is that I would like to be able to get a query string without having to use this ugly bit of code:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="dir"&gt;&amp;lt;%@ Control Language=&amp;quot;C#&amp;quot; Inherits=&amp;quot;System.Web.DynamicData.FieldTemplateUserControlBase&amp;quot; %&amp;gt;&lt;/span&gt;

&amp;lt;&lt;span class="tag"&gt;script&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&amp;gt;
    protected void Page_Load(object sender, EventArgs e) {
        DynamicMetaChildrenMember column = (DynamicMetaChildrenMember)MetaMember;

        HyperLink1.Text = &amp;quot;View &amp;quot; + column.OtherMetaTable.Name;
    }
    protected string DisplayMetaMemberName()
    {
        DynamicMetaChildrenMember columnData = (DynamicMetaChildrenMember)MetaMember;

        return columnData.OtherMetaTable.DisplayMetaMember.Name;
    }

    protected string NewChildernPath()
    {
        //Get Table Name
        DynamicMetaChildrenMember columnData = (DynamicMetaChildrenMember)MetaMember;
        string TableName =  columnData.OtherMetaTable.Name;
        
        // A very ugly way to get the querystring part of the ChildrenPath
        string NewChildernPath = this.ChildrenPath;
        int intStart = ChildrenPath.IndexOf(&amp;quot;?&amp;quot;);
        NewChildernPath = ChildrenPath.Substring(intStart+1, ((ChildrenPath.Length-1) - intStart));

        string ReturnNewChildrenPath = String.Format(&amp;quot;../../GridView.aspx?TableName={0}&amp;amp;{1}&amp;quot;, TableName, NewChildernPath);

        return ReturnNewChildrenPath;
    }
    
&amp;lt;/&lt;span class="tag"&gt;script&lt;/span&gt;&amp;gt;

&amp;lt;&lt;span class="tag"&gt;asp:HyperLink&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;HyperLink1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; NavigateUrl=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;&lt;span class="dir"&gt;&amp;lt;%#&lt;/span&gt; NewChildernPath() &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;&amp;quot;&lt;/span&gt; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;The latest version (1-5-2008) is posted here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/Non_DNN_DynamicDatTest.htm"&gt;http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/Non_DNN_DynamicDatTest.htm&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2089890.aspx</link><pubDate>Fri, 04 Jan 2008 07:56:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2089890</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2089890.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2089890</wfw:commentRss><description>&lt;p&gt;I tried your sample, and it runs well.&amp;nbsp; Note that the traffic here is still somewhat limited, so you may not get much help from others here (well, I could be proven wrong!).&amp;nbsp; Maybe you should advertise this on a DNN forum as well?&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2088648.aspx</link><pubDate>Thu, 03 Jan 2008 17:44:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2088648</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2088648.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2088648</wfw:commentRss><description>&lt;p&gt;I am going to make this work first as a normal ASP.NET application (non DotNetNuke module). I have posted the &amp;quot;starting point&amp;quot; here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/Non_DNN_DynamicDatTest.htm"&gt;http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/Non_DNN_DynamicDatTest.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should be able to just unzip it, open it with Visual Studio click the F5 key to run it. &lt;/p&gt;
&lt;p&gt;Anyone interested in working on this with me over the next 3-4 weeks feel free to contact me at the email listed on that page.&lt;/p&gt;
&lt;p&gt;After we take it as far as we can I&amp;#39;ll make a DNN Module so both exampes will be avalaible&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2086473.aspx</link><pubDate>Wed, 02 Jan 2008 19:03:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2086473</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2086473.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2086473</wfw:commentRss><description>&lt;p&gt;This is great!&amp;nbsp; I think you may be able to get the links going to the right place by tweaking the ForeignKey.ascx and Children.ascx field templates.&lt;/p&gt;
&lt;p&gt;And yes, you&amp;#39;re right that the next build will likely break what you have, but it should be easily fixable (and hopefully it&amp;#39;ll be less hacky!).&lt;/p&gt;
&lt;p&gt;Let me know when you have something ready, and I&amp;#39;ll blog about it.&lt;/p&gt;
&lt;p&gt;thanks,&lt;br /&gt;David&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2085901.aspx</link><pubDate>Wed, 02 Jan 2008 14:25:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2085901</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2085901.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2085901</wfw:commentRss><description>&lt;p&gt;Yes this works with DotNetNuke also. &lt;/p&gt;
&lt;p&gt;It appears I will be able to use a lot of the built in functionality to allow for the &amp;quot;drill down&amp;quot; through the table relationships. The GridView shows the links they just go to the wrong place. I want to duplicate all the functionality of the normal Dynamic Data Template&lt;/p&gt;
&lt;p&gt;I hope to have something working the next 3-4 weeks. It will be Open Source so others will be able to use it as example of using Dynamic Data in their own projects.&lt;/p&gt;
&lt;p&gt;The ability to use Dynamic Data in this manner allows the developer full control. You should be very happy with the direction of your project.&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2085221.aspx</link><pubDate>Wed, 02 Jan 2008 05:19:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2085221</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2085221.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2085221</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m speechless. &lt;/p&gt;
&lt;p&gt;I hate that I have to go to bed tonight and can&amp;#39;t try this on the DotNetNuke module until tomorrow. And I know I can get the &amp;quot;drill down&amp;quot; working also. I&amp;#39;ll get this module finished and put it out there as an example of what Dynamic Data can do then I&amp;#39;ll fix it when you drop the next CTP because I expect everything will break :)&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t thank you enough!&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2085007.aspx</link><pubDate>Wed, 02 Jan 2008 02:19:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2085007</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2085007.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2085007</wfw:commentRss><description>&lt;p&gt;I meant something slightly different, using a helper custom control instead of doing the logic directly in the ascx&amp;#39;s OnInit.&amp;nbsp; Try this &lt;a class="" href="http://davidebbo.members.winisp.net/MiscFiles/OryxDotNetNukeTest.zip"&gt;revised version&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2084926.aspx</link><pubDate>Wed, 02 Jan 2008 00:00:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084926</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084926.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2084926</wfw:commentRss><description>&lt;p&gt;Darn we are so close! I don&amp;#39;t know why I can&amp;#39;t make it work. It didn&amp;#39;t work with DotNetNuke so I created a non DotNetNuke example (see below). It didn&amp;#39;t work there either. It appears the &amp;quot;OnInit&amp;quot; is not being called.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To reproduce my error. Hopefully it&amp;#39;s just something I&amp;#39;m doing wrong:&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) Create a normal Dynamic Data Site using the Dynamic Data Template.&lt;/p&gt;
&lt;p&gt;2) Insert and replace the files from this .zip file :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/files/DynamicDataControlTest.zip"&gt;DynamicDataControlTest.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3) The first page will work:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/images/img4.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;4) The second page will throw an error:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/images/img6.jpg" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2084866.aspx</link><pubDate>Tue, 01 Jan 2008 22:14:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084866</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084866.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2084866</wfw:commentRss><description>&lt;p&gt;You get this error because your Page_Init gets called after all the control&amp;#39;s Init, so the FilterRepeater fails before you get to change the TableName (presumably, your code is never called at all).&lt;/p&gt;
&lt;p&gt;I think you could work around by adding a helper control on the page, before the FilterRepeater.&amp;nbsp; Make your control do something like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;    &lt;span class="kwd"&gt;public class&lt;/span&gt; TestControl : Control {
        &lt;span class="kwd"&gt;protected override void&lt;/span&gt; OnInit(EventArgs e) {
            &lt;span class="kwd"&gt;base&lt;/span&gt;.OnInit(e);

            &lt;span class="kwd"&gt;string&lt;/span&gt; tableName = Request.QueryString[&lt;span class="st"&gt;&amp;quot;TableName&amp;quot;&lt;/span&gt;];

            var filterRepeater = (DynamicFilterRepeater)FindControl(&lt;span class="st"&gt;&amp;quot;FilterRepeater&amp;quot;&lt;/span&gt;);
            filterRepeater.TableName = tableName;

            var gridDS = (LinqDataSource)FindControl(&lt;span class="st"&gt;&amp;quot;GridDataSource&amp;quot;&lt;/span&gt;);
            gridDS.TableName = tableName;

            var detailsDS = (LinqDataSource)FindControl(&lt;span class="st"&gt;&amp;quot;DetailsDataSource&amp;quot;&lt;/span&gt;);
            detailsDS.TableName = tableName;
        }
    }
&lt;/pre&gt;&amp;nbsp;&amp;nbsp; 
&lt;p&gt;Sure, it&amp;#39;s a hack, but at this point let&amp;#39;s try to get you going any way we can.&amp;nbsp; We&amp;#39;ll clean up later! :)&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2084840.aspx</link><pubDate>Tue, 01 Jan 2008 21:32:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084840</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084840.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2084840</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;davidebb:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;But note that if you don’t care about the linking behavior, you should be able to get most of the Dynamic Data behavior by setting the DataContext/TableName yourself (which it sounds like you tried?).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt; 
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;Yes this does work. &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;I am able to get this to show:&lt;/span&gt; 
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;img height="439" src="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/images/img1A.jpg" width="584" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;by setting the table name using code like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;GridDataSource.TableName = Request.QueryString[&lt;span class="st"&gt;&amp;quot;TableName&amp;quot;&lt;/span&gt;];&lt;/pre&gt;&amp;nbsp;&lt;/span&gt; 
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;I could set the links&amp;nbsp;to &amp;quot;drill down&amp;quot; into details&amp;nbsp;manually. If&amp;nbsp;I need to I can &amp;quot;walk&amp;nbsp;through&amp;quot; the tables and foreign keys in the datacontext the same way&amp;nbsp;your code does if I have to.&lt;/span&gt; 
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;davidebb:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/span&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Basically, in your ListDetailsTemplate, I would add custom logic that sets the TableName on the FilterRepeater and DataSources.&amp;nbsp; Presumably, you could make a call into your framework that sets up all those things?&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;And that is where I am currently stuck. The following code won&amp;#39;t work :(:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;protected void&lt;/span&gt; Page_Init(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)
{
  &lt;span class="kwd"&gt;this&lt;/span&gt;.FilterRepeater.TableName = Request.QueryString[&lt;span class="st"&gt;&amp;quot;TableName&amp;quot;&lt;/span&gt;];
}&lt;/pre&gt;
&lt;p&gt;It doesn&amp;#39;t throw an error but it&amp;nbsp;doesn&amp;#39;t set the value or it sets it too late. DotNetNuke log shows the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;AssemblyVersion: 04.08.00&lt;br /&gt;PortalID: 0&lt;br /&gt;PortalName: My Website&lt;br /&gt;UserID: -1&lt;br /&gt;UserName: &lt;br /&gt;ActiveTabID: 36&lt;br /&gt;ActiveTabName: Home&lt;br /&gt;RawURL: /DotNetNuke/Home/tabid/36/ctl/ListDetails/mid/371/TableName/Modules/Default.aspx&lt;br /&gt;AbsoluteURL: /DotNetNuke/Default.aspx&lt;br /&gt;AbsoluteURLReferrer: &lt;/em&gt;&lt;a href="http://localhost:49388/DotNetNuke/Home/tabid/36/ctl/ListDetails/mid/371/TableName/Modules/Default.aspx"&gt;&lt;em&gt;http://localhost:49388/DotNetNuke/Home/tabid/36/ctl/ListDetails/mid/371/TableName/Modules/Default.aspx&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;em&gt;UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022)&lt;br /&gt;DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider&lt;br /&gt;ExceptionGUID: ac2d59b2-5fa8-4106-a568-23d1a0fc1cd1&lt;br /&gt;InnerException: The DynamicFilterRepeater &amp;#39;FilterRepeater&amp;#39; doesn&amp;#39;t have a TableName attribute, and one could not be inferred from the URL.&lt;br /&gt;FileName: &lt;br /&gt;FileLineNumber: 0&lt;br /&gt;FileColumnNumber: 0&lt;br /&gt;Method: System.Web.DynamicData.DynamicDataManager.GetTableInternal&lt;br /&gt;StackTrace: &lt;br /&gt;Message: System.Exception: The DynamicFilterRepeater &amp;#39;FilterRepeater&amp;#39; doesn&amp;#39;t have a TableName attribute, and one could not be inferred from the URL. at System.Web.DynamicData.DynamicDataManager.GetTableInternal(Control owner, String tableName) at System.Web.DynamicData.DynamicDataManager.GetTable(Control owner, String tableName) at System.Web.DynamicData.DynamicFilterRepeater.&amp;lt;GetColumns&amp;gt;d__0.MoveNext() at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at System.Web.DynamicData.DynamicFilterRepeater.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings)&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you can get me past this point then I think I can get this thing working :)&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2084827.aspx</link><pubDate>Tue, 01 Jan 2008 21:07:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084827</guid><dc:creator>davidebb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084827.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2084827</wfw:commentRss><description>&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I think I see why it doesn’t work.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The logic to figure out the table name from the URL is not actually based on the request URL, but on the AppRelativeVirtualPath of the aspx/ascx that has the dynamic controls.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;So in your case it’s the path to the ascx, which is not the right thing to look at.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;In newer builds using the MVC routing, the table name is figured at at the routing level, so this would I think work better.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;But note that if you don’t care about the linking behavior, you should be able to get most of the Dynamic Data behavior by setting the DataContext/TableName yourself (which it sounds like you tried?).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Basically, in your ListDetailsTemplate, I would add custom logic that sets the TableName on the FilterRepeater and DataSources.&amp;nbsp; Presumably, you could make a call into your framework that sets up all those things?&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;David&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;PS: queryStringKeyPrefix adds an optional prefix to all query string params used by Dynamic Data, and won’t help you much.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Trying to make this work with DotNetNuke</title><link>http://forums.asp.net/thread/2084682.aspx</link><pubDate>Tue, 01 Jan 2008 16:19:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084682</guid><dc:creator>adefwebserver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084682.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=2084682</wfw:commentRss><description>&lt;p&gt;Darn it didn&amp;#39;t work. I suspect the problem is the {view} part. I really don&amp;#39;t have a view.&lt;/p&gt;
&lt;p&gt;I posted the latest version of the code I was using at: &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/"&gt;http://www.adefwebserver.com/DotNetNukeHELP/DynamicData/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sure you guys don&amp;#39;t have time to play with DotNetNuke so the easy setup to duplicate my problem is to make a website where you have a page that shows the tables. Then when you click on a table it takes you back to the same page but shows you the table details using the Dynamic GridView. Right now it seems this is not possible.&lt;/p&gt;
&lt;p&gt;It would be possible if I can put in code to tell the Dynamic controls what the datacontext and Table name are. It does not appear that the current or the MVC routing is prepared to handle this.&lt;/p&gt;
&lt;p&gt;Now if you are able to do this then the problem would be that the DotNetNuke Default.aspx page is somehow intercepting this needed information. Perhaps&amp;nbsp;the reason I can&amp;#39;t get Dynamic Data to work is that the Dynamic controls are trying to bind to a Data Context that would be there with a normal .aspx page but is not with the DotNetNuke Default.aspx page?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;</description></item></channel></rss>