I usually use expressions like this
CommandArgument='<%# Container.DataItemIndex.ToString() %> '
But I could not find Container in the msdn, can u help?
Thanks
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.
Containeris a keyword that is only applicable to data binding expressions and is a reference to the naming container.See this from MSDN (How to: Access Members of a Control’s Naming Container):
And this (Using the NamingContainer Property to Determine a Control’s Naming Container):