Is it possible to detect or use a different template in the asp.net repeater for the last iteration in the repeater?
If not I could just use a for loop but I’m curious if it can be done.
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.
If you know how many items you are expecting, you could use the e.Item.ItemIndex property to check if you are on the last item. Or, depending on what you are trying to do, you might be able to take advantage of the footer template.