dynamic-data

Should I create an attribute to make camel-cased table names, spaced?

I want to customize the headings of my tables outputted in a dynamic data website. Specifically, if a column has a name like "PhonebookManager", I want it to display, "Phonebook Manager" (note the space). Where should I be looking to get this done? ...

Inside Info on Dynamic Data

This is a sister question to my other one here, not linked to because I'm not posting this to pull views of that. I'm busy with my first dynamic data project and loving it, and, of course, I have a few challenges that I'd like to resolve and also maybe debug myself. However, the framework is quite dense in terms of how what gets done o...

Get return value from SP when using LINQDatasource

Hi All, I have a Dynamic Data Website for edit, update and delete data. As we know, the dynamic data website uses LINQDatasource control for DB operations. For delete, i am using Stored Procedure instead of using default LINQ that returns a int on successfull delete. i have configured my LINQ to SQL class to use the stored procedure for...

Why can't Dynamic Data find pages open for editing?

When I have a template page open in the VS editor, and run my Dynamic Data project, I immediately get an error that the page being edited can't be found, even when this is not the start page. From this I gather the Dynamic Data runtime wants to write something to all pages, and I am very curious why. I'm sure it's nothing as droll as...

jQuery within a Repeater

I'm very new to the world of jQuery and might be asking a fairly trivial question here. I'm curious as to what the community views as the best practice for a databound object with jQuery functionality. As a specific example, I've currently created a repeater bound to a list of objects. Each object has properties such as "link", "thumbna...

Are there any alternative scaffolding frameworks to Asp.Net Dynamic Data?

I have been playing around with Dynamic Data but I find the filtering and navigation aspects basically useless for but the simplest scenarios, even in preview 4. I specifically want to be able to handle hierarchical self-reference tables when editing the data. Does anyone know of an open source project / or cheap alternative framework t...

Pager not working in Dynamic Data Website

Hi all, I have a Dynamic data website. I have customized the List page and using SP with custom paging. Custom paging is working fine as expected. The pager is also working fine, if click next page icon in the pager. The problem is, when click the Last page icon in the GridView pager, it takes to the last page and last 10 records are di...

How to get rid of 'System.Web.DynamicData.DynamicValidator' is not defined error during web application conversion

I am trying to convert a web project to Web Application. After conversion I am getting 'System.Web.DynamicData.DynamicValidator' is not defined error. Any idea how to solve this. Three references needed for dynamic data are in the bin but still giving this error on designer files. ...

How to edit a SQL Server XML data field with asp.net Dynamic Data

I have a site based around asp.net 3.5's Dynamic Data feature. Everything's working great, but I would like to add a tagging feature via a column with an XML data type. I've made the column and added an appropriate schema, but it is showing up as read-only and the scaffold will not display or modify the field. So, I have a few question...

Dynamic Data Entities Web Application - "Object Reference Not Set..." runtime error in List.aspx markup

I have a Dynamic Data Entities Web Application with ADO.NET Entity Model generated from MS SQL 2005 database with 47 tables and about 30 relationships. All works well except one table, which gives Object reference not set to an instance of an object. runtime error when I'm trying to navigate to it from entry page tables' list - Defaul...

Django Dynamic Drop-down List from Database

Hi...I wanted to develop a Django app and one of the functionalities I'd like to have is dynamic drop-down lists...specifically for vehicle makes and models...selecting a specific make will update the models list with only the models that fall under that make....I know this is possible in javascript or jQuery (this would be my best choic...

How do you dynamically allocate a matrix?

How do you dynamically allocate a 2D matrix in C++? I have tried based on what I already know: #include <iostream> int main(){ int rows; int cols; int * arr; arr = new int[rows][cols]; } It works for one parameter, but now for two. What should I do? ...

Dynamic UIImage Content Loading in UITableView code?

im trying to get a tutorial/sample code on how to dynamic download uiimage in uitableview. Just like native iTunes App loading artwork dynamically. its also called "lazy loading" I have been searching it online for a while. The only sample code that is available is: http://kosmaczewski.net/2009/03/08/asynchronous-loading-of-images...

How do I refine and build on a basic scaffolding Dynamic Data project?

Once you create a basic, generated dynamic data project with scaffolding, there are so many more things you can do to customise and improve the project, evolving toward a finely crafted custom application that benefits from reliable infrastructure. You can add metadata for scaffolding tables, customise the standard list and details page...

Dynamic CSS and Javascript

How does one create Dynamic CSS and JavaScript On-The-Fly (using PHP). This needs to be done as different pages have different set of elements sometimes, so wrapping and sending a large CSS/JS everytime would be overkill. And why do many sites have link tags like this: <link rel='stylesheet' type='text/css' href='css/style.css?pg_id=43&...

Set database name dynamically in LINQ to SQL

I am using LINQ to SQL to connect to database from my application. When I am changing environment from production to staging, I can update my connection string in web.config. But there is one more value I need to update when environment changes. That is database name. In LINQ to SQL designer file, database name is mentioned as attribute ...

Images breaking on page refresh?

I am pulling data from a database with Ajax and dynamically populating a div tag with image elements. The image file name corresponds to the data in the database. For instance if there was something in the database called 'foo', I have an item called 'img/foo.jpg' My javascript pulls the data and creates a an image with the src if 'img...

ASP.NET Scaffolding/Templating CRUD Solutions

I've been looking into ASP.NET Dynamic Data and how it does scaffolding and routing. I've only scratched the surface, but it's looking like I'd have to create a template for each table that I didn't want to display all columns the same way. My first impression after looking at dynamic data is that it would seem like less time on the pro...

How do you set [ScaffoldColumn(false)] to be the default for Dynamic Data?

I have a number of tables with lots of columns that I'm using Dynamic Data with. I only want to show a small subset of the columns. Currently when Dynamic Data scaffolds a table it creates all the columns unless I set [ScaffoldColumn(false)] to false. This works but as I only want to display a small subset of the columns it would be eas...

most efficient way to update a site (lots of data) with no refresh?

I am working on a web project that will require quite a bit of updating from multiple users and large ammounts of data. The expected ammount of data is 70 unique rows each with 14 fields that need updated regularly. That's a total of 980 fields. I first attempted a series of synchronous ajax queries to the database using a for loop to ...