I've got this code to go through all textboxes on a webform & look to see if each of them have a blank value. How can I use something like this to go through all item textbox controls created in/by a datalist please???
VB Code:
  1. For each ctlWebFormControl in page.Controls
  2.     If (ctlWebFormControl.GetType.ToString.
  3.     Equals("System.Web.UI.WebControls.TextBox")) then
  4.         If not(CType(ctlWebFormControl, _
  5.         System.Web.UI.WebControls.TextBox).Text  = "")) then_
  6.             ' Something Here
  7.         End if
  8.     End If
  9. Next
Thanks!!