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.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 1, 2013, 7:52 AM EDT
Please find the attached code
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 1, 2013, 10:02 AM EDT
Check the attached sample both in win form and asp.net.
Preeti AgrawallaRank #6,677 · 259 reputationPosted Aug 4, 2013, 12:05 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 4, 2013, 12:25 AM EDT
Regards,
Iftikar