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???
Thanks!!VB Code:
For each ctlWebFormControl in page.Controls If (ctlWebFormControl.GetType.ToString. Equals("System.Web.UI.WebControls.TextBox")) then If not(CType(ctlWebFormControl, _ System.Web.UI.WebControls.TextBox).Text = "")) then_ ' Something Here End if End If Next![]()




Reply With Quote