Solved

Formview and DetailView Update

Posted on 2008-06-21
1
236 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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