dynamic-data

T-SQL filtering on dynamic name-value pairs

I'll describe what I am trying to achieve: I am passing down to a SP an xml with name value pairs that I put into a table variable, let's say @nameValuePairs. I need to retrieve a list of IDs for expressions (a table) with those exact match of name-value pairs (attributes, another table) associated. This is my schema: Expressions ta...

Dynamic (Runtime Generated) Forms in ASP.Net MVC

This is a general design question: How would you implement a dynamic (runtime generated) form in ASP.Net MVC? Here's the situation: A site admin can define form parameters (fields, type of fields, validation) with a GUI (MVC view). As needed, the runtime generates the form for the end user based on the admin configuration. I'm assu...

ASP.NET Dynamic data Change text field to dropdown and populate with some data

Hi, I have an ASP.NET dynamic data site and for one of the text fields within Edit and Insert templates I'd like to covert it to dropdown and populate that drop down programmatically. Can you help or point into right direction ? Thanks. ...

Using document.write for fixed html

I'm creating a webform that has combos containing 100 values or so. The values are the same. The form may have several records. So if there are 100 records there are 10,000 lines which seems pretty wrong from a "download" point of view. The thing is: I want to keep that combo dynamic to keep the id from the database. So I came up t...

How to redirect a Google search result to a dynamic Web page?

I'm trying to enter a list of items into Google Base via an XML feed so that, when a user searches for one of these items and then clicks the search result link in Google Base (or plain Google), the user is directed to a dynamic Web page on my Web site. I'm assuming that the only way to specify a specific link (either static or dynamic) ...

RenderHint and ASP .Net Dynamic Data

A while back, when ASP .Net Dynamic Data was fresh into beta, we had built a test site with it, checking out its functionality. It was kind of left there not the subject of much attention. I've now gone back to the site to make modifications, lo and behold, when i tried to load the site, i got this error: The type or namespace na...

Type exists in two assemblies.

I've got a web project. It was a asp .net dynamic data preview that I'm trying to bring into the version 1 dynamic data suite. I've crossed a lot of hurdles but now when i build i see this error: The type 'System.Web.DynamicData.FilterUserControlBase' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__...

How do I get the value of a DynamicControl?

I'm using ASP.NET Dynamic Data functionality to do something a little weird. Namely, create a dynamic list of fields as children of the main object. So basically I have Ticket.Fields. The main page lists all the fields for Ticket, and the Fields property has a DynamicControl that generates a list of controls to collect more data. ...

Persisting dynamic object structures

I envision that in an application we are shortly developing, there will need to be a means in which the user (developers) can specify their own custom datastructures. These structures will need to be persisted, and then reported against within the system. I know there are several way to achieve this i.e: Having your SQL database hold...

Binding Microsoft.Web.DynamicData assembly at runtime failing

I've got a project using DynamicData that was wrote by somebody else. Every time i try debbuging it, I get the message I've attached at the bottom I've already tried deploying the DynamicData dll to GAC, and throwing it into the bin folder, chceking the assemblies full names, installing again VS SP1, and .NET Framework SP1, and chceking...

ASP.NET Dynamic Data : How to Specify Sort Order of Items in Dropdown List

I am using ASP.NET dynamic data for the data adminstration tasks for a Silverlight app that I built. It saved a ton of time not having to write all of the admin screens you typically have to create for end users to manage the data. One thing I cannot figure out how to sort the items in the drop downs that appear on the screens - either ...

...is not a foreign key column and cannot be used here?

I have two views in SQL, and have created mappings to them in Linq to SQL. The two views have an association, which works fine, between Ticket.ProblemCode and Problem.Code When I try to set UIHint("ForeignKey") on Ticket.ProblemCode and run the web page I get the error: 'ProblemCode' is not a foreign key column and cannot be used here...

When trying to integrate one website with another what is the way to go? Iframe or pulling content?

hi, My company has multiple vendors that all have their own websites. I am creating a website that acts as a dashboard where customers can access all of the vendor's sites. I wanted to know what is the best option for doing this? Here's what I have so far: Iframe Can bring in the entire website Seems secure enough (not sure if I'm ...

How to authenticate users entering Dynamic Data admin area in ASP.NET MVC site?

Hello! I have an ASP.NET MVC 1.0 front-end site that is working well, and features as part of it, a Dynamic Data section that I'm using as the back-end admin area for the site. I haven't messed about too much with authentication yet, but this seems like quite a logical web-site design for any new .NET sites being put together these da...

ASP.NET Dynamic Data setting the default value of a Dropdown list

I have a dropdown list (FK) which I would like to set and display a default value based on a login userid. Can you please tell me how to do it? I only want to affect the dropdown filter that appear at the top above the Gridview. Thanks Nikos ...

Why does jQuery UI's datepicker break with a dynamic DOM?

I'm working with a dynamic DOM here, and have called the jQuery UI datepicker to all inputs with a specific class name, in this case .date It works great with the first, static, construct but when I clone it the event handlers don't seem to want to move over. I get the Firebug error: inst is undefined I tried looking into jQuery's...

How do you tell ASP .Net dynamic data to use stored procedures for select?

I see you can specify Insert, Update and Delete stored procs, but no straightforward way for SELECT stored procs. ...

Why is my viewstate growing between postbacks when using dynamic data?

I'm writing a pretty complex web form using ASP.NET Dynamic Data. Several of the controls on this form post back, since there are dependencies between controls. I'm noticing that the viewstate is growing larger with every postback, until after 5 or so there is a long delay between the Render process and the page actually loading in the...

Troubles retrieving data from within OnRowCommand from a GridViews

If I have this <asp:ButtonField runat="server" DataTextField="Name" CommandName="GetName"></asp:ButonField> Within a GridView. Is there any way to retrieve the DataTextField (Name) from the OnRowCommand method? <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource_N...

ASP.NET Dynamic Data Record Selection

I am displaying a list of customer records from SQL Server using L2S where I only want to display active customers (where Status = 'A'). How do I implement this logic in Dynamic Data? I am using the List.aspx template. I don't want the dropdown filtering option. ...