Create controls at runtime
I have one textbox and one button. I want that when i type 5 in textbox and click on button, then that no. of label(5 label ) controls in that page will be created. I want it both in asp and form based application.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 1, 2013, 11:52 AM
Please find the attached code
Regards,
Iftikar
Iftikar HussainPosted Aug 4, 2013, 4:25 AM
Regards,
Iftikar
Preeti AgrawallaPosted Aug 4, 2013, 4:05 AM
Sanjeeb LenkaPosted Aug 1, 2013, 2:02 PM
Check the attached sample both in win form and asp.net.