Re: Is asp.net database design different to ado and access?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I assume you mean you have dragged tables onto a DataSet? Cool. You now have
Table Adapters. Add the Relationship. You can now bind like you desire. As
for INSERT and update, run the table adapters in the order they need to be
inserted into the database (parente first, child last).

What generally causes problems with relationships is improper ordering of
saving items. If you have automagic stuff, you will have to take control and
force them to save (and pull out of the database, for that matter) in the
proper order.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
<kiwileiro> wrote in message news:u8MxGR6zGHA.4796@xxxxxxxxxxxxxxxxxxxxxxx
Hi, i am using asp.net 2.0 to make a database front end. I would like
opinions on which field of a lookup table to store in the main table.

Currently I store the keyfield value from a dropdownlist that is
retrieving data from another table, in to my main table.

I have had difficulties when trying to display the data in the
itemtemplate of a gridview.

There appears to be no easy way to show the RELATED TABLE information
without linking the tables in the query to retrieve it.

Doing this though makes it harder to update the table adapter in Edit or
Insert mode. I would rather use the adapters as Visual Studio made them
for me.

A helpful person in a forum has suggested that instead of storing the
keyfield in the table that I store the actual text value, and that would
make it a lot easier as I have just to display the value and not link to
it.

I have made many Access and winform databases but this is my first asp.net
one.

In an Access or winforms database I would bind the keyfield and save that
in to the main table. As asp doesnt have the continuous state connected to
the database, I wonder if we design differently too.

What are your thoughts on this? What is a preferred approach to a very
common issue?



.



Relevant Pages

  • Re: Problem Updating Adapters
    ... If I setup two adapters for the Orders, and OrderDetails ... tables from Northwind, and then I delete an Order with related order ... I get a constraint violation in the database (because I am updating ...
    (microsoft.public.dotnet.framework.adonet)
  • TableAdapter - fails when database name changed
    ... I have a project that includes a number of Table Adapters. ... I am configuring it to point to a database on ... This database has a different name to the one on my ... Is there any way to prevent the generated .XSD file having hardcoded ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Enterprise Library
    ... here's problem with using database specific adapters like SqlDataAdapter and OracleDataAdapter in your application.. ... If you have any database specific adapters being used inside your code, as soon as your application hits it and it's the wrong type of database it's going to break and you probably won't get an error while compiling. ... query an XML file so that I'm a little unsure about. ...
    (microsoft.public.dotnet.framework)
  • Re: Delphi 2005 feature matrix...
    ... All the *added* database stuff (BDP, ... Dataset, Adapters, etc. ... It also has dbGo for both .Net and Win32. ...
    (borland.public.delphi.non-technical)
  • Re: NDIS IM filter driver binding
    ... You might be able to control bindings if you use a notification object dll ... then send down a list of ids for the adapters you dont want to bind to, ... Adapters to bind with my NDIS IM filter driver. ...
    (microsoft.public.development.device.drivers)