Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have an ajax rating control inside the form view and i want to find that rating control on code behind at page load so how to find an ajax control from formview
Posted
Updated 15-Nov-13 21:01pm
v3
Comments
Er Daljeet Singh 18-Nov-13 0:57am    
you can simply find a control by using find control function.

Label id = (Label)FormView1.FindControl("Label1");

here i am finding a label from formview with the help of find control function.
you can directly find the control from forview because it display one record at a time..
Omprakash Kukana 19-Nov-13 3:12am    
yes its ok but here i hv rating controle of ajax
Er Daljeet Singh 19-Nov-13 4:24am    
not a problem we can also find the ajax control also.

AjaxControlToolkit.Rating id = (AjaxControlToolkit.Rating)FormView1.FindControl("ajaxRating1");

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