dynamic-data

Entity Framework, Dynamic Data and Versioning

I'm in the process of looking around at options for a back office tool. On the face of it the tool is simple CRUD so I was immediately attracted to Dynamic Data on top of Entity Framework (we're definitely a Microsoft shop!). The problem is that future requirement is to support versioning. By this I mean : User performs a series of ...

Xml data in an ASP.Net Dynamic Data Site

I have this problem where I can't get my dynamic data web app to save xml data into a text field. Maybe this is a common problem but searching the web doesn't give me any answers... So heres the steps to recreate my problem: I have database with a table that has a column of type "ntext" (Sql Server 2005). I create a new Dynamic Data E...

post <Asp:DropDownList> value with action link (asp.net MVC JQuery)

I have an on my MVC View page. I use JQuery to filter a grid when the selected index changes. At the bottom of the page I have an action link that. I would like to post this value to the controller that the action link is pointing to. The problem is, obviously the value of the box can change. How could I post dynamically changing d...

DynamicData Custom Roles/Security Per Table

I have a dynamic data ASP.NET application with a requirement to give some users tables X, Y, and Z and others only X and Z. All 3 of these tables are using the standard ListDetails page templates, and we really want to avoid creating custom pages for x, y, and z. What is the best way to handle this security? All of our permissions are...

setting width of datagrid generated by Dynamic data (Entity framework, in .net)

Hi I am generating editable data grids from tables using dynamic data, however, i am unable to set the width of the tables/grids. Can someone please point me to an article/ or suggest how i can do this? Thanks in advance. Regards. Kulu. ...

How do I implement operator[] for dynamic array?

I have a need to implement dynamic array by myself to use it in simple memory manager. struct Block { int* offset; bool used; int size; Block(int* off=NULL, bool isUsed=false, int sz=0): offset(off), used(isUsed), size(sz) {} Block(const Block& b): offset(b.offset), used(b.used), size(b.size) {} }; class BlockList ...

How to implement role based security using Dynamic Data and Active Directory?

What is the best way to implement security using active directory roles on an asp.net dynamic data site? I would like to restrict certain views (and the related links) to certain roles. i.e. user A can only view list actions for table x and user B can only view list actions for table y ...

Should I use SubSonic or Dynamic Data for a new CRUD asp.net application?

I need to throw together a quick CRUD asp.net site, but this may become a bigger application down the road. I have some experience with SubSonic, but it has been so long since I did a project with it I have to relearn it. I am also considering using Dynamic Data. Does anyone have any experience with these tools that can tell me which way...

set a default page in dynamic data

hi everyone, i am trying to set up a default page for my dynamic data website.. the problem is that its a template so it would be something like this: Orders/List.aspx can anyone please help me out with this.. Thanx Owais F ...

Accessing the object/row being edited in Dynamic Data

I'm modifying the "Edit.aspx" default page template used by ASP.NET Dynamic Data and adding some additional controls. I know that I can find the type of object being edited by looking at DetailsDataSource.GetTable().EntityType, but how can I see the actual object itself? Also, can I change the properties of the object and tell the data c...

css for dynamic content

I'm working on adding content to a web-page with javascript. The problem is that the CSS in IE (7) doesn't seem apply to the dynamically added content. Here's an example document.. <html> <head> <style type="text/css"> p.foo { color: #FF4400 ; background-color: #000000 } p.bar { color: #FF0000 ; background-color: #000000 } ...

How do you make a table read-only using ASP.NET's dynamic data scaffolding

How do you make individual tables and/or columns read-only so the edit button won't show in ASP.NET's Dynamic Data framework? I'm using it against an entity data context. Is it possible? ...

Where are the asp.net Dynamic Data limits?

What are the limitations of asp.net dynamic data? What is not possible to do in dynamic data, so that you have to use web forms? ...

Setting the default value of a DateTime Property to DateTime.Now inside the System.ComponentModel Default Value Attrbute

Does any one know how I can specify the Default value for a DateTime property using the System.ComponentModel DefaultValue Attribute? for example I try this: [DefaultValue(typeof(DateTime),DateTime.Now.ToString("yyyy-MM-dd"))] public DateTime DateCreated { get; set; } And it expects the value to be a constant expression. This is in ...

Set service field value in Dynamic Data

In my project many tables are linked to aspnet_Application table by ApplicationId foreign key. I don't want the users to view or edit it, so I'm looking for way to preset this sql table field value before the insert query is executed. I still have scaffolding enabled for this column (in order for DD to generate the right sql script) but ...

Problem with Dynamic Data and entity Framework

Hello, I'm trying to use Dynamic Data with a entity model that has Abstract class that are Derived by sub entities. Whenever i run the website i get this error: model.RegisterContext(typeof(QMSModel.QMSEntities), new ContextConfiguration() { ScaffoldAllTables = false });[KeyNotFoundException: The given key was not present in the dicti...

ASP.NET Dynamic Data DisplayColumn Attribute Causing Sorting Issue

Using ASP.NET Dynamic Data with a LINQ to SQL DataContext from the Northwind Database... When I add a DisplayColumn Attribute to one of my LINQ to SQL "entity" classes and reference a property from my custom code in the partial class, I lose the ability to sort by that column in the generated GridViews. I continue to lose the ability t...

ASP.NET Dynamic Data Add Additional Filter Criteria to Page

How should I be adding additional search/filter criteria to a Dynamic Data Web Application? I created a Dynamic Data Web Application using the Northwind database and I am using a custom page for the Employees table (based on the ListDetails.aspx Page Template). I would like to add additional search/filter/where parameters to the Page. ...

Returning default members when accessing to objects in python

I'm writing an "envirorment" where each variable is composed by a value and a description: class my_var: def __init__(self, value, description): self.value = value self.description = description Variables are created and put inside a dictionary: my_dict["foo"] = my_var(0.5, "A foo var") This is cool but 99% of operat...

Change Select statements generated for generating gridview in Dynamic Data???

I am using ASP.net Dynamic Data scaffolding. I realize that for a table like table1: EducationLevel (id,levelname,modby,modon) table2: Course(id,coursename,modby,modon,belongsToEduLevel) where belongsToEduLevel is the FK. In this case dynamic data never shows levelname in the grid instead, it shows Operations | Modon | EducationProgr...