getting the value of runtime created control

yaniv

Centurion
Joined
Apr 15, 2002
Messages
167
Location
israel
I use placeholder to hold runtime created controls that holds a user details (textboxes and dropdownlists).

How can I find the value of this textboxes in run time? Lets say the user clicked his private name in text box I called "priname", how can I know the value in click event of button on the page?
 
well, this was the logical way, but you get "text is not a member of system.web.ui.control"... error massage.
 
i done it like this (VB):
dim a as string = ctype(placeholder.findcontrol("priname"), textbox).text

thanks all...
 
VB'er...I've read enough of the VB posts on here to know this... don't use CType! It's a VB6 function! Can a VB'er out there help with the correct syntax to cast to (Web) TextBox control from (Web) Control?
 
Back
Top