Last post Apr 09, 2010 02:49 AM by klca
Jul 08, 2008 10:44 AM|robroe|LINK
This feels like it should be extremely obvious but I can't find a definite answer on it...
I have the 'core' dynamic data (5-23a) installed and I am using this in my project. I have also downloaded, built and played with the 7/2 Futures release, and I would really like to use some of the new features in my current project.
According to David Ebbo's blog
http://blogs.msdn.com/davidebb/archive/2008/06/18/asp-net-dynamic-data-on-codeplex.aspx the Futures run on top of the SP1 stuff, so I was wondering what the best strategy for updating my existing project is. I only have one Custom Page so far as I have
managed to do most things using the metadata classes so its not a big deal to manually update that.
Is the best strategy just to drop the files from Samples\DynamicDataFutureSample\DynamicData over the top of my exisiting DynamicData folder? Or is that too simplistic?
Jul 08, 2008 12:50 PM|scothu|LINK
The main things you need to get the Futures running in a off the shelf Dynamic Data application are the assembly from the DynamicDataFutures class library that is part of the runnable sample. You could either add that project to your solution or compile
it and add the assembly from it to your project. The based on what aspect of the futures you are using you might need to copy a few of the field templates from the DynamicDataFuturesSample/DynamicData/FieldTemplates (DateAjaxCalendar_Edit, DbImage, EmailAddress,
Enumeration, Enumeration_Edit, FileImage, IntegerSlider_Edit, Url are examples of new ones) and if you are using the filtering features there is a Filter directory under DynamicDataFuturesSamples/DynamicData as well. If you run into any problems trying to
add a particular item to your project let us know on the forums here and we will get you an answer ASAP.
Jul 08, 2008 01:06 PM|sjnaughton|LINK
Hi Rob, it's worth noting that if you are using a fiel based website you will need to remove the namespace surrounding the each template and also the
CodeBehind becomes CodeFile in the Page and Control tags.
Jul 09, 2008 06:23 AM|robroe|LINK
Thank you both for your replies.
I had done as you suggested, but I had missed the CodeBehind
-> CodeFile change and that was bamboozling me! I had also removed the namespace but I wasn't sure whether that was the best thing to do. The controls I have tried so far have worked great, and I am going to try using the new filters shortly
so I will report back any problems.
Jul 20, 2008 02:45 PM|alex999|LINK
I also want to use the AdvancedFilterRepeater from the futures. I added the DynamicDataFutures.csproj to my main, core DynamicData project an told it to depend on the DynamicDataFuture project. I then changed List.aspx
to use the AdvancedFilterRepeater instead of the default one, but I get an exception when I try to access the dynamicdata.aspx:
Unknown servertag: asp:AdvancedFilterRepeater.
What else do I have to do?
Thank you for help!
Jul 20, 2008 03:28 PM|marcind|LINK
You need to modify your web.config to associate the asp tag prefix with the DynamicDataFutures assembly.
Jul 20, 2008 04:56 PM|alex999|LINK
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions ..."/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions ..."/>
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData ..."/>
<add tagPrefix="asp" namespace="Microsoft.Web.DynamicData" assembly="Microsoft.Web.DynamicData"/>
I get a parser error, it can't find the assembly. But this is the name when I view the properties of the second project (=DynamicDataFutures.csproj) in my solution.
BTW: why can't VS2008 find the assembly by default while it's one solution with two projects?
Jul 20, 2008 11:11 PM|longbcc112|LINK
Jul 21, 2008 05:41 AM|alex999|LINK
sorry I'm too stupid. I never added external projects or third-party modules to an existing application, so I think I always miss something.
Can anybody tell me step by step how to add the DynamicDataFutures as a subproject to my existing DynamicData 'core' solution? Or give me a link where it is explained which stuff must be included, how to alter the web.config and where to add reference or
files to my solution to get it work.
Or the other way round: compile the DynamicDataFutures on it's own and add the necessary files/references/assemblies to my existing solution, including the new settings in web.config?
At the end it should be possible to compile the whole solution and to use the AdvancedFilterRepeater, that's all. [:S]
Thank you in advance,
Jul 21, 2008 06:39 AM|longbcc112|LINK
Compile the DynamicDataFuture. Copy all the dll under bin folder into your project's bin folder.
Add the files in the bin folder in your solution if your project is a website./ Add references by choosing the dll if your project is a web application.
For AdvancedFilterRepeater, it resides in Microsoft.Web.DynamicData.dll.
Alter the web.config like your own posting,
<add tagPrefix="asp" namespace="Microsoft.Web.DynamicData" assembly="Microsoft.Web.DynamicData"/>
Jul 21, 2008 06:52 AM|sjnaughton|LINK
It's worth noting that to use ALL the features of the DynamicDataFutures it means copying the contents of the DynamicData folder to your DynamicData folder and there are a number of changes you need to make depending on weather your project is a file based
WebSite or a WebApplication.
File Base WebSite
Hope this helps [:D]
Jul 21, 2008 10:15 AM|alex999|LINK
now I did it like longbcc112 said. I tried both, the Microsoft.Web.DynamicData.dll from the compiled DynamicDataFutures project and the .dll's from the DynamicDataFuturesSample project (both belong to the DynamicDataFutures0716.zip). The DynamicDataFuturesSample
project seems to be more suitable, because of the additional AjaxToolkit.dll which is also needed. With both ways I get this error:
Jul 21, 2008 11:04 AM|sjnaughton|LINK
There are a number of extra bits and pieces in the DynamicDataFuturesSample WebApplication thay you will need to port accross to your project again depending on the type of project WebApplication or File based WebSite they need to go in
different places. If a WebApplication Project then in the same location if in a File Based WebSite then classes need to go in the App_Code folder as does the CodeBehind of the
AutocompleteFilter.asmx the AutocompleteFilter.asmx.cs.
Hope this Helps [:D]
Jul 21, 2008 12:21 PM|longbcc112|LINK
Jul 22, 2008 08:12 AM|alex999|LINK
I want to say 'thank you' for all your help. It's partially working now, don't ask me why. I copied a lot of stuff and also added the futures project as a subproject and so on. If there is more time I will reproduce the things so I can get a cleaner project
structure and to get the knowledge how to add future releases in a shorter time without all that obstacles.
I always used the tags from the blog:
<asp:FilterRepeater ID="FilterRepeater" runat="server"> <ItemTemplate> <asp:Label runat="server" Text='<%# Eval("DisplayName") %>' /> <asp:DynamicFilter runat="server" ID="DynamicFilter" OnSelectedIndexChanged="OnFilterSelectedIndexChanged" /> </ItemTemplate> <FooterTemplate><br /><br /></FooterTemplate></asp:FilterRepeater>
Yesterday I got an error depending on the OnSelectedIndexChanged
property. I will change that, perhaps I can then use the Filter without all the problems I had with adding the futures in the previous posts.
Aug 25, 2008 06:07 PM|timothyelvidge|LINK
I know this is probably a silly question but I have spent two hours knocking my head against a brick wall. In the Dynamic Data Futures solution DynamicDataClientSite there are the NorthwindClientEntities.cs class file that looks like it was autogenerated.
How did it get here and how was it generated?
Aug 25, 2008 07:24 PM|scothu|LINK
Aug 25, 2008 08:29 PM|timothyelvidge|LINK
Tried that and i do get something that looks similiar to the NorthwindClientEntities.cs but is not the same. Was the Reference.cs generated in the service reference to the Northwind.svc then modified to get the NorthwindClientEntities.cs class or am I missing
some step in getting this class generated.
Jan 18, 2010 06:55 PM|klca|LINK
Dear Mr. Hunter,
Why isn't possible to get more straight forward answers from the specialists in this matter?
After spending a lot of hours researching, I just found the right answer for creating that file.
Is so simple that I am really amazed in how many "dissapointing answers" I have read about it and none of them seemed to be correct or at least "precise"
I bought the only book that I could find about directly about the Dynamic Data framework "Secrets of Real World ASP.Net Dynamic Data Web Sites" by Craig Shoemaker and besides that I spent almost $7 dollars in it I was just frustrated because it says
almost nothing about the topic. There are more writings about this beautiful technology on any other "simple" people's blogs.
I understand that you, as part of the development team of this technology in Microsoft, should lead us to understand this framework
by itself more easily.
But in real world, as myself that am just delighted with what I think I can get with Dynamic Data, I am also dissapointed because of the lack of information (you must go trough MVC, ADO.Net and other confusing stuff that are used as a mixture in
It should be more simpler for you in teaching us in how to customize filters, modify pages using our own templates (not just general examples with the NorthWind database only).
Sorry if my comment seems to be out of order but I consider myself as an obligation with all people like me that are writing to this blog and never get straight answers as to get your attention so you can be more "exampleful" (I
don't know english well) with your answers.
Carlos Porras (El Salvador)
Apr 09, 2010 02:49 AM|klca|LINK
Reviewing my writings in this blog I found out that it seems like people who come here are not interested in giving or writing their own opinion about many things I have said here and that (according to my best criteria) affect everyone, not just
I have really tried improving the API/GUI of the scaffolding crud interface but I haven't been able to find solutions as to manage properly some the controls contained within a page: FilterReperater specially. I need to be able to get cascading from
them, do postback from within edit/insert for as many foreign keys I might have (referential integrity) for any given table in an specific order, do proper URL routing to my own custom pages, pass values gotten from DropDownLists (pks, fks) between pages (also
in an specific order), etc.
Doesn't really anyone care or is just me who doesn't get a clue about what's going on with the Dynamic Data lack of information stuff (or at least more digestable, precise, understandable and clear in human language)?
I'm in the verge of quitting to the traditional developing approach of DALs and BLLs and giving up on DD.
I'm just waiting the kind valuable aportation of Mr. Steve Naughton who has committed himself in trying
to help me by writing a piece of code as to customize (activate/manage) the features I haven't got yet understood