find control

  • Thread starter Mr. SweatyFinger
  • 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
 
M

Masudur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top