Questions tagged [asp.net-dynamic-data]

ASP.NET Dynamic Data allows users to easily create extensible, data-driven Web applications by using scaffolding, which uses metadata from the data model to create the UI for Web applications. It dynamically generates Web Pages at run time from data model with list, add, edit templates with support for sorting and paging.

ASP.NET Dynamic Data is an extension to Microsoft's ASP.NET platform which allows users to easily create extensible, data-driven Web applications by using scaffolding. Scaffolding uses metadata from the data model to create the UI for the Web application. Scaffolding auto-generates Web pages that provide create, read, update and delete (CRUD) operations for each table in the model.

References:

220 questions
4
votes
2 answers

Scrambling URLS for dynamic data

What is the best method to obfuscate the urls created in Dynamic Data? eg \Products\List.aspx?ProductId=2 could become \Products\List.aspx?x=UHJvZHVjdElkPTI= where "ProductId=2" is base 64 encoded to prevent casual snooping on…
4
votes
1 answer

How can I filter choices out of a drop down list when using Dynamic Data?

I feel like this should be easy, but I don't see any way to do it. I'm using ASP.NET Dynamic Data with Linq to SQL. I've got a table with an Association to the Technician table. The Parent Property is TechAssignment, and on the web form I'm…
CodeRedick
  • 7,346
  • 7
  • 46
  • 72
4
votes
4 answers

Error in using Dynamic Data Entities Web Site in VS2012

I decided to use Dynamic Data Entities Web Site in VS2012. So, I created this Web Site, then added App_Code directory and added a new edmx to it and named it myDB.edmx. After that I uncommented the code line in Global.asax which registers the entity…
4
votes
3 answers

ASP.NET Dynamic Data with Entity Framework: Many to Many insert difference on server

I created a simple ASP.NET Dynamic Data application and it works perfectly on my development machine. When I deploy it, everything works fine as well except for the insert-page for an item that has a Many-to-Many relationship to other tables. The…
Stefan
  • 1,719
  • 2
  • 15
  • 27
3
votes
4 answers

DynamicData - How can I show the child count in the Children.ascx.cs FieldTemplate?

MS DynamicData's Children.ascx.cs file has a Page_Load method that returns a hyperlink which says "View Children". I want to append the number of children to the end of the hyperlink text. Below is my attempt. How can I make the hyperlink say "View…
Benjamin
  • 3,134
  • 6
  • 36
  • 57
3
votes
4 answers

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…
Aaron Hoffman
  • 6,604
  • 8
  • 56
  • 61
3
votes
3 answers

Override SaveChanges in Entity Framework 5

Using C#, I've generated my DB model using "Generate from Database". The POCO classes and context are generated with T4 templates. everything is working fine and the app is able to edit, insert etc. except I cannot override the SaveChanges method in…
3
votes
1 answer

Dynamic data model "Visible Tables" count always Zero

I have added a new system(DB) to the existing dynamic data application. I have registered routes in global.asax . I have given scaffoldalltables to true. But in table navigation while giving DataSource to gridview, Visibletables count is always…
Ram
  • 27
  • 3
3
votes
2 answers

How to create breadcrumbs using Dynamic Data/LINQTOSQL framework?

I need some EXAMPLES or IDEAS on how to created dynamic breadcrumb control which will dynamically generated breadcrumbs for Dynamic Date framework powered by LINQTOSQL
Chicago
  • 1,619
  • 4
  • 19
  • 32
3
votes
0 answers

Dynamic Data one-to-many relationships using non-PK fields: Foreign table List.aspx links use incorrect key for one-to-many relationships

Problem: The urls created between tables with one-to-many relationships are incorrect. How can I fix this? I'm using LINQ to SQL with Dynamic Data. I have two tables: Users and Addresses: * There is a one-to-many from Users TO Addresses ie: A user…
Lanceomagnifico
  • 1,293
  • 15
  • 22
3
votes
1 answer

Hide filters in ASP.NET Dynamic Data

Using ASP.NET with Dynamic Data my page looks like: I want to hide the drop-down lists Invoicing Complete and Restricted Hours at the top of the page. I have made them invisible from the table by using: [HideColumnIn(PageTemplate.ListDetails,…
John
  • 3,965
  • 21
  • 77
  • 163
3
votes
4 answers

asp.net dynamic data web site : passing default value while inserting/updating records

I am working in ASP.NET Dynamic Data web application and have an issue of passing default value while inserting/updating records. In my application all table has following common column: CreatedBy (Default Value : Logged in user) CreatedDate …
Paul
  • 457
  • 2
  • 11
  • 26
2
votes
0 answers

spring.net dependency injections in the dynamic data project

I am trying to use spring.net for dependency injection in the asp.net dynamic data project. Spring is configured correct because service locator pattern works. I configured spring as for web.forms project, but dependency injection doesn't work for…
Anatoliy
  • 672
  • 5
  • 12
2
votes
0 answers

ASP.NET DynamicData Validate Custom Image FieldTemplate

I've created a custom Image Field Template which works fine. I decided to create some kind of validation for image sizes so I've created a custom validation attribute. here is the code: public class ImageSizeValidator : ValidationAttribute { …
mani_007
  • 628
  • 7
  • 14
2
votes
1 answer

Exception "Item has already been added." in MetaModel.Register

My Global.asax contains the below code, public class Global : System.Web.HttpApplication { private MetaModel _s_Model = new AdvancedMetaModel(); public MetaModel s_Model { get { …
Anand
  • 119
  • 1
  • 2
  • 4
1
2
3
14 15