find control

  • Thread starter Thread starter Mr. SweatyFinger
  • Start date Start date
M

Mr. SweatyFinger

Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("insertitemtemplate.checkboxlist1")



this doesnt' work.

what's wrong



finding the control is even harder than finding help in this group
 
Mr. SweatyFinger said:
Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("insertitemtemplate.checkboxlist1")



this doesnt' work.

what's wrong



finding the control is even harder than finding help in this group

Hi

First switch the Formview's defaultmode to insertmode
and then try your code except you dont need to set the templete name
before your contro

''in page load
FormView1.DefaultMode = FormViewMode.Insert;

''where you want to find....
Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("icheckboxlist1")


Thanks

Masudur
Kaz Software Ltd.
www.kaz.com.bd
 
Back
Top