开发者

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

开发者 https://www.devze.com 2023-02-16 11:00 出处:网络
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开发者_JAVA百科 can still reach them on c

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开发者_JAVA百科 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消