Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Datalist.FindControl() not working


Message #1 by "Pradeep Kini" <PradeepKini@h...> on Tue, 13 Aug 2002 21:36:50
I have a datalist on my page and I an trying to access the Textbox in the 
edittemplate of the datalist on a button outside the datalist.

Note: The button is not associated with any of the Datslist bound 
events , its a separate button.

The problem is Datlist1.FindControl ( "Textbox1" ) is not finding the 
Textbox1 control.


Exact Line of code 
Label1.Text = Ctype ( DatalList.FindCountrol("Textbox1"), TextBox).Text

Any help will be appreciated

  Return to Index