简体   繁体   中英

How can I reach DataKey cells of GridView on the client-side?

I need to reach DataKey columns of a GridView on the client side by a JavaScript function.

As they they are at least visually disabled on the UI I wonder if I can still reach them on client?

Is it possible?

DataKeys are not published to the client. You have to write out the values some way, either use a hidden field in a template column (but don't set the column to visible="false") or some other means to get this to work.

I'm sure there are other ways too...

HTH.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM