We help IT Professionals succeed at work.
Get Started

Dynamically adding controls on asp.net webform

Devildib
Devildib asked
on
106 Views
Last Modified: 2016-01-22
Hi experts,

I have a webform in which i am  displaying a label and a textbox in one section along with other controls.It looks like label above and textbox just below it.This combination of label and textbox is required by default.I need to dynamically give option to user for adding two more such label and textbox combinations just on the right of the default label and textbox.May be with two plus signs and some text written beside,clicking which will add the controls.Also some removal mechanism is required to remove the other two combinations of label and textboxes.On post, the controls should not be lost.
Please help.Better to have javascript and c# combination.The horizontal orientation of the controls is a must.
Comment
Watch Question
Software Architect
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE