davidebb:
...Before we go into the implementation details, could you describe at a high level what the end result you're trying to build looks like? Is it more:
-
Something very similar to the default Dynamic Data scaffold app, except that you use user controls instead of pages
-
A much more custom solution, where you want to hand user controls for some specific tables
Well, I think that what I want would want to have pretty much the same default Dynamic Data scaffold application.
However, instead of Details.aspx, I would want to have Details.ascx.... and.... instead of List.aspx, I would want to have List.ascx.... etc....
That way, one could place the ASCX on any custom ASPX page that I wanted and then when I navigate to that ASPX I put the object type in the query-string.
So, instead of going to a typical Dynamic Data generated URL like this...
http://localhost:2440/TestDynamicEntities/Address/List.aspx
...I would instead go a custom URL like this...
http://localhost:2440/TestDynamicEntities/MyCustomPage.aspx?ObjectType=Address&AddressID=2
...and then in decarative markup in the page...
MyCustomPage.aspx
...I would have any number of Dynamic-Data-based ASCX controls.... if it has a List.ascx control, then that control would load a list of Address objects... if it has Details.ascx then it would load the Address object with AddressID=2... etc....
...each ASCX knows what to do and what to look for on the query string... etc...
...I am just brainstorming here... haven't worked out the details....
....maybe it would be too hard to handle more than one ASCX on a custom page.... so maybe just allow one but I would rather not have that restriction...
....maybe it would be too hard to handle more than one object type on a custom page.... so maybe just allow one but I would rather not have that restriction but it would be very ugly to pack a query string value with a delimited list and or ordered pairing but...
...etc....
...does any of that sound sane???
...what do you think???
Thank you.
-- Mark Kamoski