DevPinoy.org
A Filipino Developers Community
ATTENTION:Take our Code Challenge for the month of October 2008 and win some great prize! Learn more about it here!

DatakeyNames for ASPNET 2.0

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.


Posted Oct 22 2005, 01:58 AM by jokiz
Filed under: , , ,

Comments

keithrull wrote re: DatakeyNames for ASPNET 2.0
on 10-21-2005 3:15 PM
Isn't DatakeyField still allowed in 1.1? i still use it.
jokiz wrote re: DatakeyNames for ASPNET 2.0
on 10-23-2005 10:45 PM
i also use it, but it only works for single column/property PK not for complex/clustered PKs

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Enter the numbers above:

Copyright DevPinoy 2005-2008
Powered by Community Server (Commercial Edition), by Telligent Systems