DatakeyNames for ASPNET 2.0

Published 10-22-2005 1:58 AM | jokiz

ASP.NET 2.0 GridView comes with DataKeyNames property as part of its improved security.  It is the equivalent of using DataKeyField in ASPNET 1.0 to store the PKID used in databinding.  Data will be saved as part of the grid's viewstate and is therefore not readily available to the client browsers as text.

My big question is how do we store the complex/clustered keys for the current DataGrid of ASPNET 1.0?  Is the deprecated practice of having hidden/invisible boundcolumns the only way?  I've been asking this question in the forums and newsgroups and got no replies until now.

Filed under: , , ,

Comments

# keithrull said on October 21, 2005 3:15 PM:

Isn't DatakeyField still allowed in 1.1? i still use it.

# jokiz said on October 23, 2005 10:45 PM:

i also use it, but it only works for single column/property PK not for complex/clustered PKs

# Levitra. said on March 26, 2009 10:44 PM:

Levitra and sperm count. Levitra.