dynamic-data

App_Code folder is missing in VS 2010.

I was trying to create a Dynamic Data Website using VS 2010 RC. An attempt to create an App_Code folder where I would put a LINQ to SQL class, failed. When I selected 'Add ASP.NET Folder' to add the folder, I had options to create only the following folders: App_GlobalResources App_LocalResources App_Data App_Browsers Theme What ha...

Entity Framework 4 + Self-Tracking Entities + ASP.NET Dynamic Data = Error

I'm using the Self-Tracking Entities codegen option in EF4 (VS2010 RC), and I'm trying to use Dynamic Data to build a quick-and-dirty website for editing. The Entities, Data Context, and EDMX files are all in separate assemblies, and this model works well when I call everything in code. But when I try to use it with Dynamic Data, right o...

asp.net MVC DisplayTemplates and EditorTemplate naming convention

Hi, I've got a couple of questions about the naming convention for the DisplayTemplates and EditorTemplates in MVC 2. If for example I have a customer object with a child list of account how do I: Create a display template for the list of accounts, what is the file called? When I'm doing a foreach( var c in Model.Accounts ) how do I ...

Can ASP.NET Dynamic Data be made to work with custom business objects rather than data objects?

I'm working on a project in which we have a database, data layer (entity framework), business layer and web/UI layer. I want to use ASP.NET Dynamic Data for the web layer, but don't want it to access the data layer or database, as I want it to be purely running off business logic, and not directly accessing the data. However, it appear...

Understanding the delete link in ASP.NET Dynamic Data scaffolds.

Since the automatic scaffolding of ASP.NET Dynamic Data Web Pages does most of the things I need to do for this project on its on, I'd like to use it as a basis. Now, I like to add another link to the "Edit" "Delete" "Details" trio on my custom table view. I'd like it behave much like the "Delete" button, i.e. not call another page, but...

ASP.Net Dynamic Data - DataType Validation

Hi Dynamic Data question: I have 2 fields of type Nullable<DateTime> on my model When I use the insert form and enter a garbage string e.g. "sdfsdfas" for a date it gives me an ugly error message Unable to convert input string ' rtgh' to type 'System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyTo...

Creating a custom GridView control that supports DynamicData

I'm very disappointed in the built-in GridView control. I wanted to make a simple data-entry web application, thinking Dynamic Data would save me time. But it turns out that the GridView doesn't even support basic user interface scenarios such as inserting a new row. Since the project I'm building will incorporate this scenario a lot,...

Dynamically make tables/columns readonly/hidden in ASP.NET DD

I'm making a security permission system for a Dynamic Data site based on the article Securing Dynamic Data Preview 4 Refresh. The system contains an additional permission kind: "deny an operation for a record/field if a record is not owned by an user". If an user can read only own objects, we need to have an always enabled filter in Lis...

Form with dynamic number of items

Hello, Just thinking about the best way to build an Order form that would (from user-perspective): Allow adding multiple items. Each item has Name, Job Type drop-down and File upload. User can add or remove items. User must provide at least one item. All the items should be validated (eg: Name, JobType and File are required). When he ...

asp.net dynamic data application won't accept input with "<" in it

I'm new to using asp.net dynamic data apps.. I just generated a simple app from my schema, and in one table I'm trying to insert a record where one of the fields is a varchar(255) field. I am finding that any input that has the "<" character in it will cause the app to throw an error when you try to save it, with the exception being if ...

dynamic data - all option in paging

I'm developing a dynamic data web app. On list.aspx page it has GridViewPager control for paging, it option in drop down list as 10,20,.. rows in a page like that, but it does not an option show all rows in a page. How I can add "All" option in it? ...

Dynamic Data: how to filter dropdown for foreign key on edit page

Using Linq-to-SQL and Dynamic Data. On a Dynamic Data edit screen, a dropdown lists the possible values for a foreign key. I need to filter the values listed in this dropdown, preferably by adding a where clause on the linq-to-sql query. Any ideas? ...

Asp.net Dynamic Data - Field not rendered on List page

I have created a Dynamic Data site against an Entity Framework Model I have 2 fields which are nvarchar(max) in the DB and they do not get rendered on the list view This is probably a sensible default But how do I override this? Have tried adding various attributes to my MetaData class e.g [ScaffoldColumn(true)] [UIHint("RuleData")]...

Ext JS ComboBox Dynamic Behaviour

Hi All, I am trying to load/show completely different set of values in a combobox(this one resides as a editor within an EditorGridPanel) based on the valueField of another combobox(this one resides outside the grid in top bar). I have already seen a tutorial(http://www.extjs.com/learn/Tutorial%3ALinked%5FCombos%5FTutorial%5Ffor%5FExt%5...

Home/Landing screen design for a website in asp.net

Hi, I have an web based application. The content for the Home page has been currently mentioned in the HTML code for the Home page using , and tags. To change the content anytime in future, it needs to be changed in the HTML code. :( Is there a way that we can pick up the content from some external place and get it reflected through ...

How do we relate database sequence with Primary key in Dynamic Data uisng Entity framework 4.0

While inserting new record in Dynamic Data using Entity Framework 4.0 in ADO.NET, i need to set our own sequence (already created in database) to that primary key column. How do we set this sequence to Primary key column ...

How do i get an instance of the entity type based on MetaTable

is there a way to go from a MetaTable to an instance of an entity type so it can be queried with LINQ? What I want to do is this: MetaTable table = GridDataSource.GetTable (); var entity = table.GetInstanceOfEntity(); var test = (from t in entity select t).ToList(); where table.GetInstanceOfEntity() is something that I'm not sure how ...

Using jstl tags in a dynamically created div

I want to be able to show some data based on criteria the user enters in a text field. I can easily take this data, process the form post, and show the data on another page. However, I want to be able to do it all on the same page - they click the button, and a new div shows up with the information. This doesn't seem too complicated, ...

Create chart using dynamic interactive ranges to select the series in Excel 2007

I would like to create a non-VBA based solution to the following question: How do I create a multi-series chart that will allow a user to select from a dropdown to change the data being graphed? I can do this already when the data series is contiguous; however, I'd like to be able to do it for non-contiguous data. Is this possible? M...

Is it possible to use ASP.NET Dynamic Data and SubSonic 3?

Is it possible to use ASP.NET Dynamic Data with SubSonic 3 in-place of Linq to SQL classes or the Entity Framework? MetaModel.RegisterContext() throws an exception if you use the context class that SubSonic generates. I thought I remembered coming across a SubSonic/Dynamic Data example back before SubSonic 3 was released but I can't find...