asp.net - How to use findcontrol in createuserwizard1 complete step ...? -


is right declaration of findcontrol complete step of createuserwizard1 ?

dim username textbox = createuserwizard1.createuserstep.contenttemplatecontainer.findcontrol("label11")

but when use shows error object expected !

what problem ?

you can't set value of textbox generic control (especially 1 label). plus forgot new keyword when initializing username. depending on you're trying do, may want try following...

'this set textbox's text label's text. dim username new textbox  username.text = ctype(createuserwizard1.createuserstep.contenttemplatecontainer.findcontrol("label11"), label).text 

or

'this cast label new label control define in code. dim username new label username = ctype(createuserwizard2.createuserstep.contenttemplatecontainer.findcontrol("label11"), label) 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -