Dynamically creating controls [Resolved]

Posted by Nithyanandhini under ASP.NET on 3/27/2012 | Points: 10 | Views : 1703 | Status : [Member] | Replies : 10
I want to show the controls dynamically based on the user input. The scenario is " How many times the user clicks button that much time I should create a new row of controls in front end. I am using ASP.Net 4.0 with c#. Please help me for this...

Thanks & Regards
NIthya



Responses

Posted by: Sabarimahesh on: 3/28/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi NithayNandhini

Refer this linkhttp://geekswithblogs.net/dotNETvinz/archive/2009/06/04/adding-dynamic-rows-in-gridview-with-textboxes.aspx

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Balajikcp8 on: 3/27/2012 [Member] Starter | Points: 25

Up
0
Down
Where you want to add controls..?

This may help

http://msdn.microsoft.com/en-us/library/aa287574%28v=vs.71%29.aspx

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithyanandhini on: 3/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Balaji,
Thank you for your response. In my design I have one label, one textbox and a button. After entering input in textbox, the user will click button. Then in next row the same design should come(label,textbox,buton). Then again, after filling the second text box the user will hit second button. Then in next row the same design should come. I mean the controls should generate dynamically when the user hits the button.

Thanks & Regards
NIthya

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saisindura on: 3/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
for these you can create one usercontrol(in that having label,textbox,button).
this user control you can try to display dynamically into your page.


Thanks&Regards
srisai

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithyanandhini on: 3/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
I will try this and let you know the result. Thank you for ur immediate response

Thanks & Regards
NIthya

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saisindura on: 3/27/2012 [Member] Starter | Points: 25

Up
0
Down
welcome Nithya

Thanks&Regards
srisai

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Taanu51 on: 3/28/2012 [Member] Starter | Points: 25

Up
0
Down
HI,

We have so many ways to create dynamic controls..Check this link..it helps you a lot

http://www.developerscode.com/2012/03/another-way-to-create-dynamic-controls.html

let me Know...!

Tanisha Sayyad
.Net and Android Developer
INDIA(Andhra Pradesh)

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 3/28/2012 [Member] Bronze | Points: 25

Up
0
Down

Hi NithayNandhini

after You Got The answer?????

If May be my answer is useful...Click that Mark as Answer

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Amit.Jain on: 4/16/2012 [Member] Starter | Points: 25

Up
0
Down

Posted by: Sabarimahesh on: 4/16/2012 [Member] Bronze | Points: 25

Up
0
Down
Nithyanandhini

Thank You


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Nithyanandhini, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response