Code:
function clientbuild() as string
Dim ctrl
for each ctrl in placeholder.Controls
'call this place1
clientmessage &= ctrl.gettype.tostring() & "<BR>"
'call this place2
if ctrl.gettype.tostring() = "System.Web.UI.WebControls.TextBox"
'this works
dim name as string = ctrl.ID
'this does not pull what the USER has entered, ever.
dim value as string = ctype(ctrl, textbox).text
clientmessage &= name & value & "<br>"
end if
next
return clientmessage
end function
place1 returns things like this...
System.Web.UI.WebControls.DropDownList
System.Web.UI.WebControls.DropDownList
System.Web.UI.WebControls.Label
System.Web.UI.WebControls.Label
System.Web.UI.WebControls.TextBox
place2 ONLY returns items defined in the 'population' of placeholder
IE, a user enters in "Joe Bob" for client name, selects "public safety" for the first dropdown and "police" for the second. Click submit on the page which is suppost to grab that info (along with a lot of other stuff, but it works) but leaves them blank or gives whatever I enter in during the makeclientlist function. If I add box.text = "thisneverworks" to the makeclientlist function, it'll catch that and send it ...but never what the user enters