Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

i have a CalendarExtender in a repeater. i.e., AjaxControl.

n

i want to find it. how can i do.

i know, about other controls, like,for textbox:
Textbox txt = (textbox)Repeater1.FindControl("txtone");

but i'm not getting CalendarExtender to find it in a repeater...

plzzz anyone can help me...


thanks
Posted

AjaxControlToolkit.CalendarExtender clndr = (AjaxControlToolkit.CalendarExtender)Repeater1.Items[index].FindControl("CalendarExtender1");
 
Share this answer
 
Comments
Member 13513917 7-Dec-17 9:31am    
what is index in the above code?
Each extender have behaviour ID first set it

after that you can find extender by BehaviourId as define in Solution 1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900