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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.