FormView FindControl issue

B

Bryce

ASP.net 2.0, using Visual Studio 2005

Can't seem to figure out how to get a reference to a control in a FormView.

I have tried the following code:
Control list = ArticleDetailView.FindControl("IssueYearDropDown");

during several event handlers, including FormLoad,
ArticleDetailView_DataBinding, ArticleDetailView_ModeChanged
(ArticleDetailView is the FormView). It always returns null.

The Control is a DropDownList, and is specified in the InsertItemTemplate.

Thanks
 
B

Bryce

To answer my own question, I just searched for the control in the handler
that brought up the InsertItemTemplate, and it found it there..

Still trying to wrap my head around this stuff...
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top