Solved

Formview and DetailView Update

Posted on 2008-06-21
1
228 Views
Last Modified: 2010-05-18
How can a prinary key field be updated in Formview and DetailView in ASP.NET 2? The primary key filed visibly doesn't get updated. Thanks.
0
Comment
Question by:ksfok
1 Comment
 
LVL 14

Accepted Solution

by:
Dustin Hopkins earned 500 total points
ID: 21839707
Is there a reason you need to update a primary key field? You should consider changing your database structure. Hidden, meaningless integer primary keys are preferred over primary keys that contain meaningful data. Because you want to be able to update this attribute, it should not be the primary key. Instead, place a unique constraint on it and define a hidden, meaningless integer primary key. Also the primary key is indexed(MSSQL), so each time you change this field the table indexes must be rebuilt.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now